Summery

MB - megabyte - uses base 10 (1,000), MiB - mebibyte - uses base 2 (1,024).

Computers naturally work in binary (base 2), while the metric system uses decimal (base 10).

Historically, computer memory measurements used powers of 1,024 because (2^{10}=1,024), and people called these kilobytes, megabytes, and gigabytes. This caused confusion because metric prefixes (kilo, mega, giga) officially mean multiples of 1,000.

In 1998, the IEC introduced binary prefixes: KiB, MiB, and GiB, to distinguish them from KB, MB, and GB.

Storage manufacturers typically use decimal units, while RAM and operating systems often use binary units.

Table

NameDecimalBinary
Byte1 B1 B
Kilobyte / Kibibyte1 KB = 1,000 B1 KiB = 1,024 B
Megabyte / Mebibyte1 MB = 1,000 KB1 MiB = 1,024 KiB
Gigabyte / Gibibyte1 GB = 1,000 MB1 GiB = 1,024 MiB
Terabyte / Tebibyte1 TB = 1,000 GB1 TiB = 1,024 GiB
Petabyte / Pebibyte1 PB = 1,000 TB1 PiB = 1,024 TiB
Exabyte / Exbibyte1 EB = 1,000 PB1 EiB = 1,024 PiB