Data Size Converter (MB, GB, MiB, GiB…)

Convert digital storage between bits, bytes, and decimal (kB, MB, GB, TB) and binary (KiB, MiB, GiB, TiB) units — one value into every unit, with a reference table.

Bit (bit)
Byte (B)
Kilobyte (decimal) (kB)
Megabyte (decimal) (MB)
Gigabyte (decimal) (GB)
Terabyte (decimal) (TB)
Kibibyte (binary) (KiB)
Mebibyte (binary) (MiB)
Gibibyte (binary) (GiB)
Tebibyte (binary) (TiB)

Data size reference

1 unitBMBMiBGB
1 bit0.1250.0000001250.0000001192090.000000000125
1 B10.0000010.0000009536740.000000001
1 kB1 0000.0010.0009536740.000001
1 MB1 000 00010.9536740.001
1 GB1 000 000 0001 000953.6741
1 TB1 000 000 000 0001 000 000953 6741 000
1 KiB1 0240.0010240.0009765630.000001024
1 MiB1 048 5801.0485810.00104858
1 GiB1 073 740 0001 073.741 0241.07374
1 TiB1 099 510 000 0001 099 5101 048 5801 099.51

Converting digital storage units

Digital storage is counted in bits and bytes (8 bits make a byte), but the larger units come in two flavours that are easy to mix up. This converter shows both and lets you move between them.

Decimal vs binary — the source of confusion

Decimal units step by 1000: 1 kB = 1000 B, 1 MB = 1 000 000 B, and so on. Binary units step by 1024 and are spelled with an "i": 1 KiB = 1024 B, 1 MiB = 1 048 576 B. Storage makers quote decimal (a "1 TB" drive is 10¹² bytes), while operating systems often report binary — which is why that 1 TB drive shows up as about 931 GiB and seems "smaller" than advertised. Nothing is missing; the two just count differently.

Worked example

A 500 GB SSD is 500 × 10⁹ = 5×10¹¹ bytes. In binary units that's 500×10⁹ / 1024³ ≈ 465.7 GiB — the figure your computer is likely to show. Network speeds, by contrast, are usually in bits: a "100 Mb/s" link moves 100 / 8 = 12.5 MB per second.

Related

Estimating a device's monthly cellular usage instead? See theIoT data usage calculator.

Common questions

Is a megabyte 1,000 or 1,024 kilobytes?
Both, depending on who is speaking — and that ambiguity is the entire problem. A megabyte (MB) is officially 1,000,000 bytes, using decimal prefixes like every other SI unit. A mebibyte (MiB) is 1,048,576 bytes, which is 2²⁰. Operating systems have historically shown the binary figure while labelling it MB, which is where the confusion comes from. This converter keeps the two families separate rather than pretending they are interchangeable.
Why does my 1 TB drive show as only 931 GB?
Nothing is missing — you are seeing the same number described two ways. The manufacturer sells 1 TB meaning 1,000,000,000,000 bytes. Your operating system divides that by 1024 three times and displays 931.3, but labels the result "GB" when it is really 931.3 GiB. The drive holds exactly what was advertised; only the label is inconsistent.
Why are internet speeds in megabits rather than megabytes?
Network speeds are quoted in bits per second and file sizes in bytes, and there are 8 bits to a byte. So a 100 Mbps connection downloads at roughly 12.5 MB/s at best. The convention is historical — data links have always been measured in bits — but it means the number on your broadband contract is about eight times larger than the download speed you will see, which is not an accident nobody noticed.
When should I use MiB rather than MB?
Use the binary units (KiB, MiB, GiB) when the quantity is genuinely a power of two — memory sizes, block sizes, buffer allocations. Use decimal units (KB, MB, GB) for storage capacity, file sizes and anything quoted commercially. If you are reading a figure someone else produced and it matters, check which one they meant; a 7% error at the gigabyte level compounds to 10% at terabyte scale.