KB vs KiB vs MB vs MiB

Differences, use cases, and when to use each

KB (kilobyte) officially means 1,000 bytes (SI prefix). KiB (kibibyte) means 1,024 bytes (binary prefix). MB means 1,000,000 bytes; MiB means 1,048,576 bytes. Storage manufacturers use SI (KB); operating systems use binary (KiB) but label it KB, causing the '1TB hard drive appears as 931 GB' confusion.

Quick Comparison

FeatureKB vs KiBMB vs MiB
KB Definition1,000 bytes (SI standard)1,024 bytes (traditional binary)
MB Definition1,000,000 bytes1,048,576 bytes
Used ByStorage manufacturers, SI standardOperating systems (mislabeled)
ConfusionWindows shows GiB but labels it GB
StandardIEC 80000-13 (KiB, MiB, GiB)Historical computing convention

When to Use Each

When to Use KB vs KiB

Use SI units (KB = 1,000 bytes) when following the IEC standard or communicating storage capacity in hard drives, SSDs, and flash storage per manufacturer specs.

When to Use MB vs MiB

Use binary units (KiB = 1,024 bytes) when discussing RAM sizes, file system blocks, and the values that operating systems actually compute, using the correct KiB/MiB/GiB labels.

Pros & Cons

KB vs KiB

International SI standard
Used by storage hardware manufacturers
Unambiguous
Creates appearance of smaller storage than OS shows

MB vs MiB

Accurately represents binary computation
Matches actual OS calculations
Mislabeled as KB/MB/GB in most OSes (should be KiB/MiB/GiB)

Verdict

The confusion is real and widespread. A 1 TB (SI) drive appears as ~931 GiB in your OS. Use KiB/MiB/GiB labels when precision matters; understand that OS 'GB' actually means GiB.

Try the Tools

Frequently Asked Questions