Byte Converter

Enter a quantity, choose its unit, then choose 1024 or 1000. The rows below are that same quantity from B through TB.

KB can mean 1000 bytes or 1024 bytes

The same letters, KB, MB, GB, and TB, are used for two different steps. Binary steps multiply by 1024, because 2^10 = 1024. Decimal steps multiply by 1000. A quantity is only unambiguous when the step is named.

IEC writes KiB, MiB, GiB, and TiB for the 1024 series, and leaves KB for 1000. Many screens still print KB for both. Other bases, such as hex, are a separate count: see the radix converter.

Which step the letters are using

Why one step is 1024 and the other is 1000

  1. 1024 is 2^10. Memory addresses and many file-size listings grow by that factor.
  2. 1000 is 10^3. Disk labels and SI prefixes grow by that factor.
  3. KB, MB, GB, and TB do not say which factor was used. The selected base does.
  4. KiB means 1024 bytes. A lowercase kB in SI means 1000 bytes. KB alone is the ambiguous spelling.

How many bytes each larger unit contains

  1. Binary: 1 KB = 1024 B, 1 MB = 1024 KB = 1,048,576 B, 1 GB = 1024 MB.
  2. Decimal: 1 KB = 1000 B, 1 MB = 1000 KB = 1,000,000 B, 1 GB = 1000 MB.
  3. One binary GB is 1,073,741,824 bytes, about 7.4% more than one decimal GB.
  4. Zero stays zero in every unit. A fraction such as 0.5 MB is half of that unit.

Why a drive labeled 1 TB looks smaller on a 1024 scale

  1. A disk labeled 1 TB is usually 10^12 bytes, the decimal terabyte.
  2. Dividing 10^12 by 1024^3 gives about 931.3. That is the same space printed with binary gigabytes.
  3. The difference is the step size, not missing sectors.
  4. The same gap appears between a decimal GB and a binary GB, only smaller.

Why megabits are not megabytes

  1. One byte is 8 bits. Storage quotes are almost always bytes.
  2. A link speed such as 100 Mbps counts megabits per second, usually with steps of 1000.
  3. 100 Mbps is 12.5 decimal megabytes per second: divide the bits by 8.
  4. Doing that division with a 1024 step instead of 1000 changes the MB figure again.

Where the two steps get mixed

Disk label versus the file listing

The label is often decimal. A listing that multiplies by 1024 and still prints GB shows a smaller number for the same bytes. 1 TB decimal is about 931 binary GB.

RAM and address width

A memory module sized as 8 GB is 8 × 1024^3 bytes. Address lines come in powers of two, so that capacity is not 8 × 1000^3.

Frequently asked questions

Is 1 KB 1024 bytes or 1000 bytes?
Both spellings exist. Binary uses 1024. Decimal uses 1000. The letters KB do not decide; the base does.
Why does a 1 TB drive show about 931 GB?
The label is usually 10^12 bytes. Printing that count with steps of 1024 yields about 931.3 GB. The bytes are still there.
What is the difference between KB and KiB?
KiB is the IEC name for 1024 bytes. KB is the everyday spelling and is used for both 1000 and 1024. SI writes kB, with a lowercase k, for 1000 bytes.
How many bytes are in 1 MB?
Binary: 1,048,576, which is 1024 × 1024. Decimal: 1,000,000. The two differ by 48,576 bytes.
Which is larger, a binary GB or a decimal GB?
The binary one. It is 1,073,741,824 bytes. The decimal one is 1,000,000,000 bytes.
Can Mbps be copied straight into MB?
No. Mbps counts bits. Divide by 8 to get bytes, then choose 1000 or 1024. 100 Mbps is 12.5 decimal MB per second.
Why is RAM counted by 1024?
An address is a string of bits, so capacities fall on powers of two. 8 GB of RAM is 8 × 1024^3 bytes, not 8 × 1000^3.
Does 0 or a fraction convert?
Zero is zero in every unit. 0.5 MB is half of one MB in the selected base: 512 KB binary, or 500 KB decimal.