MEASUREMENT & METHODS

Kibibytes (binary) (KiB): data unit guide

The KiB selection uses the binary kibibyte convention.

Measurement basis

A kibibyte corresponds to 1,024 bytes.

Definition conventions

Decimal steps use powers of 1,000; binary steps use powers of 1,024. The byte-to-bit relationship stays eight bits per byte.

Conversion method

Multiply KiB by 1,024 to read B. Select other binary or decimal targets with their full definitions.

Reference equivalent of KiB

1 KiB = approximately 1024 B.

Recorded scale factors: 1024 for KiB; 1 for B.

Worked example

Known input: 10 KiB. Reference equivalent: 10240 B. The return conversion gives approximately 10 KiB.

The worked KiB amount demonstrates the binary factor and retains the i in its symbol.

Common reference values

Input (KiB)Reference equivalent (B)
11024
55120
1010240
2525600
5051200
100102400

Compare one KiB with other units

Target unitEquivalent of 1 KiBDefinition guide
Bytes (B)1024Read definition
Kilobytes (decimal) (kB)1.024Read definition
Megabytes (decimal) (MB)0.001024Read definition
Mebibytes (binary) (MiB)0.0009765625Read definition
Bits (bit)8192Read definition
Gigabytes (decimal) (GB)0.000001024Read definition
Terabytes (decimal) (TB)1.024e-9Read definition
Gibibytes (binary) (GiB)9.53674316406e-7Read definition

A binary kilobyte with its own name

A kibibyte, KiB, is 1,024 bytes, which equals 2¹⁰ bytes. The name combines the binary prefix kibi with byte and was standardized by the International Electrotechnical Commission in an amendment published in 1999 to IEC 60027-2, with later coverage in ISO/IEC 80000-13. The aim was to remove the ambiguity of the word kilobyte, which had been used for both 1,000 and 1,024 bytes. The kibi prefix stands for kilo binary, and it is written with a capital K in KiB, while the decimal kilobyte is kB with a lowercase k. In bits, one kibibyte is 8,192 bits. The converter on this site links it to bits, bytes, kilobytes, megabytes, gigabytes and the larger binary units.

Why computers like 1,024

Memory and addressing are built from binary digits, so natural block sizes are powers of two. A chip with 10 address lines reaches 2¹⁰ = 1,024 locations, which made 1,024 a practical stand-in for 1,000 in early computing, and people called it a kilobyte. The mismatch was small at that scale, 2.4 percent, but it widened with each larger prefix: the mebibyte is 4.86 percent larger than the megabyte and the gibibyte 7.37 percent larger than the gigabyte. By the 1990s the differences mattered for storage claims, which prompted the creation of binary prefixes. The convention reflects how hardware is organized, and not any measurement of size, so memory is still sold in power-of-two modules.

Conversions with kilobytes and bytes

One KiB is 1,024 B, 1.024 kB, 0.001024 MB and 8,192 bits. In the other direction, one kilobyte is 0.9765625 KiB, and one megabyte is 976.5625 KiB. A file of 1,000,000 bytes is 976.5625 KiB, and 64 KiB is 65,536 bytes, which is 65.536 kB. A 4 KiB block holds 4,096 bytes and a 512 B disk sector is 0.5 KiB. The larger binary units follow the same pattern: 1 MiB is 1,024 KiB, which is 1,048,576 bytes, and 1 GiB is 1,048,576 KiB. The converter's factor from KiB to gibibytes is 9.53674316406 × 10⁻⁷, so 1,000,000 KiB is about 0.954 GiB.

Page sizes, sectors and cache lines

Hardware sizes tend to be powers of two, so KiB is the natural unit. Memory pages on most x86 and ARM systems are 4 KiB, which is 4,096 bytes, and some architectures use 16 KiB or 64 KiB pages. Traditional hard-disk sectors were 512 bytes, 0.5 KiB, and Advanced Format drives use 4 KiB sectors. A first-level processor cache is often 32 KiB per core, and a cache line is 64 bytes, so such a cache holds 512 lines. Operating-system tools and file systems report allocations in multiples of the cluster size, so a 1 byte file may occupy a 4 KiB cluster on disk. These values explain why file sizes and sizes on disk differ.

The 1.44 MB floppy and other oddities

The standard high-density 3.5 inch floppy disk held 1,474,560 bytes, which was marketed as 1.44 MB. That label mixes the two conventions, because 1,474,560 bytes is 1,440 KiB, and 1,440 × 1,024 = 1,474,560. In pure decimal it would be 1.47456 MB, and in pure binary 1.40625 MiB. A hard drive sold as 1 TB holds 10¹² bytes, which is 976,562,500 KiB or 931.32 GiB, and the operating system that reports in binary units will show about 931 GB, a number that has caused many support calls. Neither figure is wrong. They use different prefixes for the same count of bytes.

Who uses KiB, and who does not

The Linux kernel documentation, many command line tools such as ls with human-readable options in some modes, and file managers on several platforms use binary prefixes with the i spelled out. Windows has long used KB, MB and GB to mean powers of 1,024, while macOS has used decimal units since 2009 for file sizes. The JEDEC memory standards still define KB as 1,024 bytes for memory. Storage manufacturers use decimal units, and network speeds are decimal as well. So the same number of bytes can appear as different numbers in different tools. When precision matters, check whether a tool's K means 1,000 or 1,024, and prefer the KiB spelling in your own documents.

Arrays, buffers and memory budgets

Programmers meet the kibibyte when budgeting memory. A buffer of 16 KiB holds 16,384 bytes, so a packet of 1,500 bytes fits ten times with 1,384 bytes spare, and an embedded controller with 64 KiB of flash has 65,536 bytes of program space. An array of 1,000 32-bit integers takes 4,000 bytes, which is 3.906 KiB, and rounding up to the next 4 KiB page means the allocation costs 4 KiB. Network protocols and file formats usually count in bytes, so conversion to KiB is needed only for reporting. Reading a memory map in hexadecimal also helps: 0x400 is 1,024, one KiB, and 0x1000 is 4,096, so addresses that step in multiples of 0x400 mark kibibyte boundaries.

Dealing with transfer sizes and rates

When file sizes are in KiB and speeds are in kB/s, mixing them adds a 2.4 percent error to a time estimate. Sending 5,000 KiB at 500 kB/s takes 5,120,000 ÷ 500,000 = 10.24 seconds, not 10. The error is small for one file and large when summed across a library. A rate in KiB/s is 1.024 times the same number in kB/s. Network links use decimal prefixes, so a 100 Mbit/s link carries about 12,207 KiB/s at most, because 12.5 MB/s is 12,500 kB/s and 12,500 ÷ 1.024 is 12,207. A transfer window that shows KiB/s therefore reads a few percent lower than the same transfer shown in kB/s.

Writing KiB correctly

The symbol KiB has a capital K, a lowercase i and a capital B, and it is separated from the number by a space, as in 32 KiB. Writing Kib, kib or KIB changes the meaning or is not recognized, and Kib would normally denote kibibits. The prefix names are kibi, mebi, gibi, tebi, pebi, exbi, zebi and yobi, for 2¹⁰ through 2⁸⁰. The decimal prefix kilo uses a lowercase k, so kB means 1,000 bytes. In everyday writing, many people still write KB for 1,024 bytes, which is why a careful document defines the convention at first use or states the byte count directly. Spreadsheet formulas and scripts that divide a byte count by 1,024 produce KiB, while dividing by 1,000 produces kB, so the divisor in the code settles which unit the label must carry. Labels such as 12.5 KiB (12,800 bytes) leave no doubt at all.

Precision and checking

  • Keep the complete KiB label.
  • Binary steps use powers of 1,024 rather than decimal thousands.

Reference numbers are displayed with up to twelve significant digits. That display does not add precision to a rounded measurement. Keep source and target quantities compatible, confirm symbol case and regional conventions, and round the final result to precision justified by the input. Factors involving π or repeating fractions use finite numerical precision.

Use a working converter

Source and verification scope

The reference values and examples use the versioned unit definitions shared with the linked converters. Source dates identify the stated access or verification scope. A reverse calculation checks arithmetic and direction, but it does not independently verify a definition. Computandum is independent of the cited organizations, and the citations do not imply endorsement of this guide or a real application.

Sources

Read the calculation and sourcing methodology →