Storage units converter: GB vs. GiB

Convert between decimal units (KB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB) and see the exact byte count. It explains why a drive sold as 1 TB shows up as 931.32 GiB.

Enter a size

Pick the unit you were given, for example the capacity printed on a drive.

Same size, two unit families

Loading the calculator…

How to use it

  1. Type a value and choose its unit.
  2. Read the same size in decimal units (powers of 1,000) and in binary units (powers of 1,024).
  3. Check the note under the headline: it tells you how much smaller or larger the two units with similar names are.

The formula

bytes = value x bytes in one unit
value in another unit = bytes / bytes in that unit

1 KB = 1,000 bytes            1 KiB = 1,024 bytes
1 MB = 1,000,000 bytes        1 MiB = 1,048,576 bytes
1 GB = 1,000,000,000 bytes    1 GiB = 1,073,741,824 bytes
1 TB = 10^12 bytes            1 TiB = 1,099,511,627,776 bytes

The decimal prefixes (kilo, mega, giga, tera) mean powers of 1,000. The binary prefixes (kibi, mebi, gibi, tebi) mean powers of 1,024. Both families are defined by NIST.

Worked example

A drive sold as 1 TB holds 1 × 1,000,000,000,000 = 1,000,000,000,000 bytes. One GiB is 1,073,741,824 bytes, so 1,000,000,000,000 ÷ 1,073,741,824 = 931.32 GiB.

No space went missing. The label and the display use two different units. The same gap grows with each step up the scale: 1 KB is 2.34% smaller than 1 KiB, and 1 TB is 9.05% smaller than 1 TiB, because the ratio is (1,000 ÷ 1,024) raised to the power of the prefix level.

What it assumes

  • Decimal units use powers of 1,000 and binary units use powers of 1,024, as defined by NIST.
  • A byte is 8 bits.
  • All math is done in whole bytes. Results show up to six decimals.

Limits

  • This tool converts units. It does not say how much space a file system, formatting or hidden partitions use on a real drive.
  • A tool that shows storage in GB may be using either family of units. Check which one before comparing numbers.

This is an estimate. Results are exact conversions between units, but any real drive or file you apply them to is an estimate: actual usable space depends on how it is formatted.

Your numbers stay here

The math runs in your browser and nothing you type is sent to us. Your last calculation is saved in your browser (localStorage) so the calculator is filled in when you return. Press Reset to clear it. See the privacy policy.