Web & Dev

File Size Conversion Table

Binary vs decimal byte prefixes — KiB vs KB, MiB vs MB, and friends.

SI (decimal, 1000)

PrefixSymbolBytesShortform
kilobytekB10³ = 1 0001 kB
megabyteMB10⁶ = 1 000 0001 MB
gigabyteGB10⁹ = 1 000 000 0001 GB
terabyteTB10¹² = 1 × 10¹²1 TB
petabytePB10¹⁵1 PB
exabyteEB10¹⁸1 EB

IEC (binary, 1024)

PrefixSymbolBytesSI equivalent
kibibyteKiB2¹⁰ = 1 0241 000 × 1.024 kB
mebibyteMiB2²⁰ = 1 048 576~ 1.049 MB
gibibyteGiB2³⁰ = 1 073 741 824~ 1.074 GB
tebibyteTiB2⁴⁰~ 1.1 TB
pebibytePiB2⁵⁰~ 1.126 PB
exbibyteEiB2⁶⁰~ 1.153 EB

Bits vs bytes

1 byte8 bits
1 kbit/s1 000 bits/second (network)
1 KiB/s1 024 bytes/second
Disk manufacturer marketinguses SI (1 TB = 10¹² bytes)
OS reportingoften uses IEC (1 TiB = 2⁴⁰ bytes)

Notes

  • A 1 TB disk advertises 1 × 10¹² bytes. Your OS may display ~931 GiB — same bytes, different prefix.
  • Network speeds are in bits/s (Mbps). File transfers in bytes/s (MB/s). Divide Mbps by 8 for MB/s.
Was this article helpful?