Illustration of 1 gigabyte with an arrow to 0.93 gibibytes

Calculators & everyday math

KB vs. KiB, MB vs. MiB, GB vs. GiB Explained

Storage sizes use two sets of prefixes that look almost identical. Decimal (SI) prefixes — kilo, mega, giga — step by 1,000. Binary (IEC) prefixes — kibi, mebi, gibi — step by 1,024. The gap starts small and grows with every step, which is why the same file or drive can show two different sizes.

Ready to try the tool this guide describes?

The two systems side by side

The two systems side by side comparison
Decimal (SI)BytesBinary (IEC)BytesBinary is bigger by
1 KB1,0001 KiB1,0242.4%
1 MB1,000,0001 MiB1,048,5764.858%
1 GB1,000,000,0001 GiB1,073,741,8247.374%
1 TB1,000,000,000,0001 TiB1,099,511,627,7769.951%
1 PB1,000,000,000,000,0001 PiB1,125,899,906,842,62412.59%

Why there are two systems

Computer memory is addressed in powers of two, so early engineers borrowed “kilo” for 1,024 because it was close to 1,000. As sizes grew into megabytes and gigabytes, the error grew with them. In 1998 the International Electrotechnical Commission introduced kibi (Ki), mebi (Mi), gibi (Gi), and so on for the binary values, leaving kilo, mega, and giga with their SI meaning of 1,000, 1,000,000, and 1,000,000,000.

Who uses which

  • Drive, SSD, and memory-card makers: decimal — a 1 TB drive holds 1,000,000,000,000 bytes.
  • Memory (RAM) sizes: binary — “16 GB” of RAM is really 16 GiB.
  • Windows File Explorer: binary values, but labeled KB, MB, and GB.
  • macOS (since Mac OS X 10.6): decimal values labeled KB, MB, and GB.
  • Command-line tools often offer both, for example GNU df -h (powers of 1,024) and df -H (powers of 1,000).

Reading an ambiguous label

If a size says KiB, MiB, or GiB, it is binary. If it says KB, MB, or GB, it could be either, depending on the software. Checking one known value helps: if a file of 1,048,576 bytes shows as “1 MB”, that program is using binary units.

KB vs. KiB, GB vs. GiB FAQ

Is 1 GB 1,000 MB or 1,024 MB?
In SI units, 1 GB is 1,000 MB. In binary units, 1 GiB is 1,024 MiB. Software that writes “GB” for binary values means 1,024.
How many GiB are in 1 TB?
About 931.3225746 GiB.
What does the “i” in KiB mean?
Binary. Kibi is short for kilo binary, mebi for mega binary, and gibi for giga binary.
Why is RAM measured in binary units?
Memory chips are built and addressed in powers of two, so their sizes land naturally on values like 1,024³ bytes.
Which one is correct?
Both, as long as they are labeled correctly. 1 GB and 1 GiB are different, valid units — the trouble only comes when a binary value is shown with a decimal label.

Related guides

Open the tool

Jump into Data Storage Converter when you are ready to process your files.

← Back to all guides

More from Looty

Explore Looty’s Ecosystem

Discover more ways Looty can help you learn, organize, create, and make an impact.