Binary Prefixes Table

IEC binary prefixes (kibi, mebi, gibi) vs SI prefixes for data sizes.

The binary prefixes used for computer memory and file sizes, from kibi to yobi, with the exact number of bytes in each and how much smaller the matching decimal prefix is. In 1998 the International Electrotechnical Commission (IEC) introduced these names to end a long confusion: “kilobyte” was used to mean both 1,000 bytes and 1,024 bytes. Now a kibibyte (KiB) is 2¹⁰ = 1,024 bytes, a mebibyte (MiB) is 2²⁰ = 1,048,576 bytes and a gibibyte (GiB) is 2³⁰ bytes, while kilobyte, megabyte and gigabyte keep their standard decimal meanings of 1,000, a million and a billion bytes. The gap grows with each step, from 2.4% at kilo to almost 21% at yotta, which is why a “1 TB” drive shows up as about 931 GB on a Windows PC: the drive maker counts 10¹² bytes, and Windows divides by 2³⁰ but still writes “GB”. The table follows IEC 80000-13. For other units, see the Unit Prefixes Table.

IEC binary prefixes

PrefixSymbolPower of twoBytes in 1 unitCompared with SI prefix
kibiKi2¹⁰1,024kilo (10³), 2.4% smaller
mebiMi2²⁰1,048,576mega (10⁶), 4.9% smaller
gibiGi2³⁰1,073,741,824giga (10⁹), 7.4% smaller
tebiTi2⁴⁰1,099,511,627,776tera (10¹²), 10.0% smaller
pebiPi2⁵⁰1,125,899,906,842,624peta (10¹⁵), 12.6% smaller
exbiEi2⁶⁰1,152,921,504,606,846,976exa (10¹⁸), 15.3% smaller
zebiZi2⁷⁰1,180,591,620,717,411,303,424zetta (10²¹), 18.1% smaller
yobiYi2⁸⁰1,208,925,819,614,629,174,706,176yotta (10²⁴), 20.9% smaller

Source: IEC 80000-13.

Common use cases

  • Understand why a new drive looks smaller than advertised
  • Convert between KiB, MiB, GiB and KB, MB, GB
  • Write file sizes and memory sizes correctly
  • Explain binary and decimal prefixes to students

How to use

  1. Find the prefix in the first column.
  2. Read its symbol, its power of two and the exact number of bytes.
  3. Use the last column to see how it compares with the decimal prefix.

FAQ

Why does my 1 TB drive show 931 GB?

The drive holds 1,000,000,000,000 bytes (10¹²). Windows divides that by 1,073,741,824 (2³⁰) and gets 931.3, but labels it GB. In IEC terms the drive is 931.3 GiB, which is the same amount of space. macOS uses decimal units, so it shows the drive as 1 TB.

Is a kilobyte 1,000 or 1,024 bytes?

By the international standard, a kilobyte (kB) is 1,000 bytes and a kibibyte (KiB) is 1,024 bytes. In practice, you'll still see KB used for 1,024 bytes in some software and in descriptions of RAM, so check which one is meant when it matters.

Which should I use?

Use KiB, MiB and GiB when you mean powers of two, such as memory sizes, and kB, MB and GB for powers of ten, such as storage capacity and network speeds. Being explicit avoids the mismatch above.