Skip to content
PocketDesk
Your files are processed on your device, never uploaded

Data size converter

Decimal and binary data units side by side, so the numbers finally add up.

  • Runs in your browser
  • No sign-up

How to convert data sizes

  1. Enter the value.
  2. Choose the From and To units. Decimal units (KB, MB, GB, TB, PB) and binary units (KiB, MiB, GiB, TiB) sit in the same list.
  3. Read the result, the factor both ways and a table with the size in every unit.

Decimal and binary, side by side

There are two systems, and mixing them is the cause of most confusion.

Decimal (SI) Bytes Binary (IEC) Bytes
1 KB 1,000 1 KiB 1,024
1 MB 1,000,000 1 MiB 1,048,576
1 GB 1,000,000,000 1 GiB 1,073,741,824
1 TB 10¹² 1 TiB 1,099,511,627,776

The gap grows with size: about 2.4% at KB, 4.9% at MB, 7.4% at GB and 10% at TB. Windows labels binary sizes as GB, while macOS and most storage makers use decimal.

Worked example

You buy a 512 GB phone. How much will a system that counts in binary units show?

  • 512 GB = 512 × 10⁹ bytes = 512,000,000,000 bytes.
  • In GiB: 512,000,000,000 ÷ 1,073,741,824 = 476.8 GiB.
  • The difference of 35 GB is not lost. It is the same bytes counted another way, before the system files take their share.

For a download, a 700 MB video is 0.7 GB or 667.6 MiB.

Bits and bytes

A byte is 8 bits. Internet providers sell speed in megabits per second (Mbit/s), while files are shown in megabytes. Divide the line speed by 8 to estimate download speed in megabytes.

The most searched conversions are MB to GB and GB to TB, each with a table of common values. For other measures, see the speed converter or the length converter.

Everything runs in your browser and nothing is uploaded.

Questions

How many MB are in a GB?

1,000 MB in one decimal GB, or 1,024 MiB in one binary GiB. Storage makers and networks use decimal, while some operating systems display binary.

What is the difference between KB and KiB?

KB is 1,000 bytes (SI) and KiB is 1,024 bytes (IEC binary). The same pattern holds for MB and MiB, GB and GiB, and TB and TiB.

Why does my 1 TB drive show about 931 GB?

The drive holds 1,000,000,000,000 bytes. A system that shows binary units divides by 1,024³ per GiB, so the same bytes read as 931 GiB. No space is missing.

How many bits are in a byte?

8. Network speeds are quoted in bits, so a 100 Mbit/s line moves at most 12.5 MB per second.

Which should I use?

Use decimal units for storage sold in shops and download sizes. Use binary units when a tool or file system reports them, such as memory sizes.

More calculators tools