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
| Name | Decimal | Binary |
|---|---|---|
| Byte | 1 B | 1 B |
| Kilobyte / Kibibyte | 1 KB = 1,000 B | 1 KiB = 1,024 B |
| Megabyte / Mebibyte | 1 MB = 1,000 KB | 1 MiB = 1,024 KiB |
| Gigabyte / Gibibyte | 1 GB = 1,000 MB | 1 GiB = 1,024 MiB |
| Terabyte / Tebibyte | 1 TB = 1,000 GB | 1 TiB = 1,024 GiB |
| Petabyte / Pebibyte | 1 PB = 1,000 TB | 1 PiB = 1,024 TiB |
| Exabyte / Exbibyte | 1 EB = 1,000 PB | 1 EiB = 1,024 PiB |