Kilobyte

Symbol: KBWorldwide

1 000B0,001MB0,000001GB0TB8 000bit

Qu'est-ce qu'un/une Kilobyte (KB) ?

Formal Definition

The kilobyte (symbol: KB) is a unit of digital information equal to 1,000 bytes in the decimal (SI) definition, or 1,024 bytes in the traditional binary computing convention. The International Electrotechnical Commission (IEC) introduced the term "kibibyte" (KiB) in 1998 to specifically denote 1,024 bytes, reserving "kilobyte" for the exact 1,000-byte meaning. However, in practice, both meanings persist depending on context.

The kilobyte represents the first step up from the byte in the hierarchy of data measurement units. It is a relatively small unit by modern standards — sufficient for a few paragraphs of plain text but far too small for images, audio, or video files. Despite its small size, the kilobyte remains relevant in computing for measuring configuration files, simple text documents, small code files, and network packet sizes.

Relationship to Other Data Units

In the decimal system: 1 KB = 1,000 bytes = 8,000 bits. In the binary system: 1 KiB = 1,024 bytes = 8,192 bits. Moving up the scale: 1,000 KB = 1 MB (megabyte), 1,000,000 KB = 1 GB (gigabyte), 1,000,000,000 KB = 1 TB (terabyte). In binary: 1,024 KiB = 1 MiB, 1,048,576 KiB = 1 GiB. The 2.4% difference between KB and KiB is small at the kilobyte level but compounds to a 10% discrepancy at the terabyte level.

Etymology

Construction of the Term

The word "kilobyte" combines the Greek-derived SI prefix "kilo-" (from Greek "chilioi," meaning thousand) with "byte." The prefix "kilo-" officially denotes a factor of exactly 1,000 in the SI system. However, in computing, "kilo-" was informally adopted to mean 1,024 (2¹⁰) because binary powers are more natural for computer memory architectures. This dual meaning has been a source of confusion since the early days of computing.

The abbreviation "KB" uses an uppercase K (unlike the SI convention of lowercase k for kilo-) and uppercase B for byte. This inconsistency with SI conventions — where "k" means 1,000 and "K" means kelvin — reflects the computing industry's independent development of terminology. Some style guides insist on "kB" for the decimal kilobyte, but "KB" is overwhelmingly dominant in practice.

The KiB Alternative

In 1998, the IEC introduced binary prefixes to resolve the ambiguity: kibi- (Ki) for 2¹⁰ = 1,024, mebi- (Mi) for 2²⁰, gibi- (Gi) for 2³⁰, and so on. Under this standard, 1,024 bytes is a kibibyte (KiB), not a kilobyte. While technically precise, the binary prefixes have seen limited adoption outside of certain Linux distributions, technical specifications, and scientific computing. Most consumers, developers, and media continue to use "kilobyte" ambiguously.

Histoire

Early Computing and the 1024 Convention

In the earliest computers, memory was organized in binary — powers of 2 were natural boundaries. A memory chip with 10 address lines could address 2¹⁰ = 1,024 locations. Engineers called this "1K" of memory because 1,024 was close to 1,000, and the Greek prefix kilo (thousand) was convenient shorthand. This conflation of 1,000 and 1,024 was established in the 1960s and 1970s and became deeply embedded in computing culture.

The Intel 1103 (1970), the first commercially successful DRAM chip, held 1,024 bits — described as "1K" of memory. The subsequent Intel 2102 SRAM chip held 1,024 bits as well. When chips grew to hold bytes rather than bits, "1KB" naturally meant 1,024 bytes. The convention was so ingrained that challenging it was nearly impossible.

The Confusion Era

Problems arose when storage manufacturers began using the SI definition (1 KB = 1,000 bytes) for marketing purposes while operating systems continued using the binary definition (1 KB = 1,024 bytes). A floppy disk labeled "1.44 MB" actually held 1,474,560 bytes — neither 1.44 × 1,000,000 (SI) nor 1.44 × 1,048,576 (binary). The 3.5-inch floppy's capacity used its own unique calculation, making the confusion even worse.

Modern Resolution Attempts

The IEC's 1998 introduction of binary prefixes (kibibyte, mebibyte, gibibyte) attempted to resolve the ambiguity. The IEEE and ISO also endorsed these prefixes. However, adoption has been slow. As of the 2020s, hard drive and SSD manufacturers use decimal prefixes (1 TB = 10¹² bytes), macOS uses decimal units for display, Windows uses binary units (showing a "1 TB" drive as approximately 931 GB), and Linux varies by distribution. The kilobyte remains ambiguous in common usage.

Utilisation actuelle

In Software Development

The kilobyte is a relevant unit in software development for measuring small files. A typical HTML page is 20-100 KB. A CSS stylesheet might be 10-50 KB. A minified JavaScript library ranges from a few KB to several hundred KB. Configuration files (JSON, YAML, XML) are typically 1-50 KB. Source code files average 5-30 KB each. Frontend developers monitor kilobyte-level file sizes because they directly affect page load times.

In Networking

Network packet sizes are measured in bytes and kilobytes. A standard Ethernet frame carries a maximum of 1,500 bytes (approximately 1.5 KB) of payload data. TCP/IP headers add 20-60 bytes per packet. Network throughput calculations involve converting between kilobits per second (network speed) and kilobytes per second (data volume), using the factor of 8 bits per byte.

In Email and Messaging

Simple text emails are measured in kilobytes — a short email might be 2-5 KB including headers. Email signatures, HTML formatting, and small inline images push emails into the 10-100 KB range. SMS text messages are limited to 140-160 bytes, well under 1 KB. These small-scale measurements keep the kilobyte relevant in everyday digital communication.

In Embedded Systems

Microcontrollers used in IoT devices, automotive systems, and consumer electronics often have memory measured in kilobytes. An Arduino Uno has 32 KB of flash memory and 2 KB of RAM. Small IoT sensors might have 64-256 KB of memory. In these constrained environments, every kilobyte matters, and programmers must carefully optimize code size to fit within kilobyte-level memory limits.

Everyday Use

Understanding Small File Sizes

When you create a simple text document — a shopping list, a short note, a recipe — the file is typically 1-10 KB. A Word document with a few pages of text (no images) might be 20-50 KB. A saved web page might be 50-200 KB. These small files take up negligible space on modern storage devices but add up when there are thousands of them.

Web Browsing

Every web page you visit involves transferring kilobytes of data. A simple text-heavy website might transfer 50-200 KB. A well-optimized modern website might transfer 500 KB to 2 MB including images, scripts, and styles. Each individual resource (HTML file, CSS file, small icon) is measured in kilobytes. Web developers work hard to minimize kilobyte counts because every KB affects loading speed, especially on mobile connections.

Smartphone Usage

Small data transfers on smartphones are measured in kilobytes. Loading a new email: 2-50 KB. Sending a text message: under 1 KB. Loading a social media post (text only): 5-20 KB. These kilobyte-level transactions happen hundreds of times per day and form the backbone of mobile data usage, though they are dwarfed by image and video transfers measured in megabytes.

Cache and Cookies

Browser cookies typically range from a few bytes to 4 KB per cookie. Local storage allocations in web browsers are measured in kilobytes per domain. Understanding these kilobyte-level limits helps web developers design efficient applications and helps users manage their browser data.

Interesting Facts

1

The famous '640 KB ought to be enough for anybody' quote, often attributed to Bill Gates in 1981, is almost certainly apocryphal. Gates has repeatedly denied saying it. However, the IBM PC's original 640 KB conventional memory limit did constrain DOS programs for over a decade.

2

A standard 3.5-inch floppy disk held 1,440 KB (1.44 MB) — a capacity that seemed generous in 1986 but cannot even hold a single modern smartphone photo today.

3

The entire source code of the Apollo 11 guidance computer — which navigated astronauts to the Moon and back — was approximately 73 KB, smaller than a typical webpage today.

4

The first commercial hard drive (IBM 350, 1956) held 5 MB — roughly 5,000 KB. It weighed over 900 kg and cost $3,200 per month to rent (approximately $35,000 per month in 2024 dollars).

5

The original Super Mario Bros. game (1985) for the Nintendo NES was only 40 KB — smaller than a typical email attachment today, yet it provided hours of entertainment and became one of the best-selling games in history.

6

A single pixel in a 24-bit color image requires 3 bytes. A 1 KB image at this color depth could contain only about 341 pixels — roughly an 18×19 pixel thumbnail, smaller than most app icons.

Conversion Table

UnitValue
Byte (B)1 000Convert
Megabyte (MB)0,001Convert
Gigabyte (GB)0,000001Convert
Terabyte (TB)0Convert
Bit (bit)8 000Convert

All Kilobyte Conversions

Frequently Asked Questions

Is a kilobyte 1,000 or 1,024 bytes?
Both definitions exist. The SI/decimal definition is 1 KB = 1,000 bytes, used by storage manufacturers and in scientific contexts. The binary/computing definition is 1 KB = 1,024 bytes (2¹⁰), used by many operating systems and programmers. The IEC standard uses 'kibibyte' (KiB) for 1,024 bytes to avoid ambiguity, but this terminology has limited adoption.
How many kilobytes are in a megabyte?
In the decimal definition: 1 MB = 1,000 KB. In the binary definition: 1 MiB = 1,024 KiB. The decimal definition is used by storage manufacturers and increasingly by operating systems (macOS uses decimal), while some systems (Windows) still use binary definitions.
How many kilobytes is a page of text?
A typical page of plain text contains about 2,000-3,000 characters, which equals approximately 2-3 KB in ASCII or UTF-8 encoding (for English text). A Word document with the same text will be larger (20-50 KB) because of formatting metadata. A PDF of the same page might be 50-200 KB.
What is the difference between KB and KiB?
KB (kilobyte) officially means 1,000 bytes in the SI system. KiB (kibibyte) means exactly 1,024 bytes in the IEC binary prefix system. The KiB notation was introduced in 1998 to eliminate the ambiguity of 'kilobyte,' which had been used for both 1,000 and 1,024 bytes. In practice, many people still use KB to mean 1,024 bytes.
How many kilobytes is an email?
A plain text email without attachments is typically 2-5 KB. An HTML-formatted email with styling is 10-50 KB. An email with a small image signature might be 50-200 KB. Attachments add their own size: a document attachment might add 50-500 KB, while a photo attachment adds 2-10 MB (2,000-10,000 KB).
Why does my file show different sizes in different programs?
Different programs may use different definitions of kilobyte. One program might report a 10,240-byte file as '10 KB' (using 1 KB = 1,024 bytes), while another reports it as '10.24 KB' (using 1 KB = 1,000 bytes). Additionally, operating systems may show 'size on disk' which includes wasted space from file system allocation blocks.
What is KB/s vs Kbps?
KB/s means kilobytes per second (data volume per unit time), while Kbps means kilobits per second (data transmission rate). Since 1 byte = 8 bits, 1 KB/s = 8 Kbps. Internet speeds are typically advertised in Mbps (megabits per second), while download progress is shown in MB/s (megabytes per second). To convert: divide Mbps by 8 to get MB/s.
How many kilobytes can a floppy disk hold?
The most common 3.5-inch HD floppy disk held 1,440 KB (1.44 MB). Older formats held less: the 5.25-inch DD floppy held 360 KB, and the 3.5-inch DD floppy held 720 KB. The original 8-inch floppy disk (1971) held only about 80 KB. These capacities seem tiny by modern standards but were sufficient for text documents and small programs.