What is the difference between a megabyte and a mebibyte?

A megabyte (MB) is the SI decimal unit of 1,000,000 bytes, while a mebibyte (MiB) is the IEC binary unit of 1,048,576 bytes (1024 × 1024).

Explanation

The two names exist because "mega-" in the International System of Units means 10^6, but computer memory was historically counted in powers of 1,024. A megabyte (MB) is 1,000,000 bytes (1000 × 1000). A mebibyte (MiB) is 1,048,576 bytes (1024 × 1024). The same split applies at other sizes: 1 gigabyte (GB) = 1,000,000,000 bytes, and 1 gibibyte (GiB) = 1,073,741,824 bytes, so 1 GiB = 1.073741824 GB exactly. Hard-drive and network capacities are usually advertised in SI decimal units (GB, TB). Operating systems and memory sizes are often reported in binary units, sometimes still labeled "GB" when GiB is meant, which is why a "1 TB" drive can appear as about 931 GiB. This site uses MB, GB, and TB only for SI decimal units, and MiB, GiB, and KiB for IEC binary units.

Steps

  1. Use MB for 1,000,000 bytes. A megabyte follows the SI prefix mega- and equals 10^6 bytes.
  2. Use MiB for 1,048,576 bytes. A mebibyte follows the IEC binary prefix and equals 1024² bytes.
  3. Do not mix the two systems. 1 GiB = 1.073741824 GB, which is why advertised decimal sizes and binary file-system sizes disagree.

Common queries

Related

Easier

None.

Harder

None.

Siblings

Sources