Data storage converter

There are two families of data units. Decimal (SI) prefixes step by 1,000: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes. Binary (IEC) prefixes step by 1,024: 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes. Drive makers and network speeds use decimal units; some operating systems report sizes in binary units while still printing "KB", "MB" or "GB", which is why a "1 TB" drive shows up as about 931 GB.

1 KB = 0.001 MB
MB = KB ÷ 1,000

Data storage conversion factors

How many base units (bytes) are in one of each unit. Multiply by the factor to convert into bytes; divide to convert back.

UnitSymbol1 unit in B1 unit in MB
Bitbit0.1250.000000125
ByteB10.000001
Kilobitkb1250.000125
MegabitMb125,0000.125
GigabitGb125,000,000125
KilobyteKB1,0000.001
MegabyteMB1,000,0001
GigabyteGB1,000,000,0001,000
TerabyteTB1,000,000,000,0001,000,000
PetabytePB1 × 10^151,000,000,000
KibibyteKiB1,0240.001024
MebibyteMiB1,048,5761.048576
GibibyteGiB1,073,741,8241,073.7418
TebibyteTiB1,099,511,627,7761,099,511.6

Decimal vs binary: why "GB" can mean two things

In the decimal system each step is 1,000. In the binary system each step is 1,024, and the official names are kibibyte (KiB), mebibyte (MiB), gibibyte (GiB) and tebibyte (TiB). The gap grows with each step:

Decimal unitBytesBinary unitBytesDifference
KB1,000KiB1,0242.4%
MB1,000,000MiB1,048,5764.86%
GB1,000,000,000GiB1,073,741,8247.37%
TB1,000,000,000,000TiB1,099,511,627,7769.95%

Network speeds are quoted in bits per second, not bytes: a 100 Mbps connection moves at most 12.5 MB per second, because one byte is 8 bits.

Data storage conversions

Frequently asked questions

What is the base unit of data storage here?
All data storage conversions go through the byte (B): the value is converted into bytes and then into the target unit, so any pair of units can be converted.