Data storage converter

Mebibytes to megabytes converter (MiB to MB)

1 mebibyte (MiB) equals exactly 1.048576 megabytes (MB). To convert mebibytes to megabytes, multiply by 1.048576: MB = MiB × 1.048576.

MiB

1 mebibyte equals

1.048576megabytes

MB = MiB × 1.048576

Exact conversion factor1 MiB = 1.048576 MB1 MB = 0.95367431640625 MiB

So 100 MiB is 104.8576 MB and 512 MiB is 536.870912 MB. A mebibyte is about 4.9% larger than a megabyte.

By Hira Noor, mathematicianLast reviewed Report a problem

Mebibytes to megabytes formula

Formula

MB = MiB × 1.048576

Multiply a value in mebibytes by 1.048576 to get megabytes. To go the other way, divide by 1.048576. The factor is exact, because both units are defined exactly.

Worked examples

  1. Convert 1 MiB to MB

    1,048,576 B ÷ 1,000,000 B = 1.048576 MB

    A mebibyte is 2²⁰ bytes and a megabyte is 10⁶ bytes, so the factor is exact and every MiB to MB answer ends after a few decimal places.

  2. Convert 100 MiB to MB

    100 MiB × 1.048576 = 104.8576 MB

    Every 100 MiB is about 104.86 MB, which shows the 4.9% gap directly.

  3. Convert 512 MiB to MB

    512 MiB × 1.048576 = 536.870912 MB

    512 MiB is half a gibibyte, a common size for swap files, cloud function memory and container limits.

  4. Convert 1,024 MiB to MB

    1,024 MiB × 1.048576 = 1,073.741824 MB

    1,024 MiB is exactly 1 GiB, which is 1.073741824 GB. For larger sizes, use the gibibytes to gigabytes converter.

  5. A file Windows shows as 250 MB, on a Mac

    250 MiB × 1.048576 = 262.144 MB

    Windows File Explorer divides by 1,024² but prints "MB", while macOS Finder counts in decimal MB, so the same file shows as about 262.1 MB on a Mac. No data changed.

  6. Convert a 128Mi Kubernetes memory limit to MB

    128 MiB × 1.048576 = 134.217728 MB

    Kubernetes reads 128Mi as 134,217,728 bytes and 128M as 128,000,000 bytes, so the Mi limit is about 6.2 MB larger.

Same size in MiB and MB

Windows, RAM, Linux tools and Kubernetes Mi limits count in binary mebibytes. macOS, iOS, drive makers and network tools count in decimal megabytes. Each row is the same number of bytes, written both ways.
Where you see itMebibytes (MiB)Megabytes (MB)
File Windows shows as 10 MB1010.48576
File Windows shows as 250 MB250262.144
Kubernetes memory limit 256Mi256268.435456
512 MiB swap file or cloud function memory512536.870912
1 GiB of RAM (1,024 MiB)1,0241,073.741824
4 GiB of RAM (4,096 MiB)4,0964,294.967296
File a Mac shows as 100 MB95.36743164100
File a Mac shows as 1 GB (1,000 MB)953.67431641,000

What are mebibytes and megabytes?

Mebibyte (MiB)

A mebibyte is 1,048,576 bytes (2²⁰ B), exactly 1.048576 MB. RAM sizes and many Linux and Windows tools count in mebibytes.

Megabyte (MB)

A megabyte is 1,000,000 bytes (10⁶ B). Drive makers, network tools and macOS use this decimal meaning; the binary counterpart of 1,048,576 bytes is the mebibyte (MiB).

The mebibyte uses the binary prefix mebi, defined by the IEC in 1998 and now part of IEC 80000-13, so 1 MiB = 2²⁰ = 1,048,576 bytes. The megabyte uses the SI prefix mega, so 1 MB = 10⁶ = 1,000,000 bytes. Dividing the two gives 1,048,576 ÷ 1,000,000 = 1.048576, an exact factor. The reverse, 1,000,000 ÷ 1,048,576, is exactly 0.95367431640625, so 1 MB is about 0.9537 MiB. One mebibyte is also 1,024 KiB, 1,048.576 kB or 8,388,608 bits.

A mebibyte is 48,576 bytes larger than a megabyte, a gap of about 4.9%. It matters when two programs show the same file. Windows File Explorer and Linux tools such as ls -lh and du -h divide by 1,024², and Windows still prints "MB". macOS since Snow Leopard and iOS since iOS 11 count in decimal MB. So a file that Windows lists as 250 MB appears as about 262.1 MB on a Mac, with no data lost or added.

Memory, swap and container limits are binary sizes. A "512 MB" swap file or cloud function setting is usually 512 MiB, and Kubernetes reads 256Mi as 268,435,456 bytes but 256M as 256,000,000 bytes. Transfer speeds follow the same rule: 50 MiB/s is 52.4288 MB/s, and the data transfer rate converter handles the bit and byte versions. To go the other way, use the megabytes to mebibytes converter. Watch the case of the b: Mib is a mebibit, one eighth of a mebibyte, so 1 Mib = 0.131072 MB.

Binary prefixes are powers of 2: a gibibyte is 2³⁰ bytes. The binary calculator and the number base converter work in base 2 and base 16. For download times, use the data transfer rate converter.

Practice problems

Convert 64 MiB to megabytes.

64 × 1.048576 = 67.108864 MB, about 67.11 MB.

Linux du -h reports a folder as 750M. About how big is it in decimal MB?

du -h counts in MiB, so 750 × 1.048576 = 786.432 MB, about 786 MB.

An upload limit is 100 MB. Does a file Windows shows as 96 MB fit?

Windows shows MiB, so 96 × 1.048576 = 100.66 MB. It is just over the limit and will not fit.

Frequently asked questions

How many megabytes are in 1 mebibyte?

Exactly 1.048576 MB. A mebibyte is 1,048,576 bytes and a megabyte is 1,000,000 bytes, so 1 MiB = 1,048,576 ÷ 10⁶ = 1.048576 MB.

Is a MiB the same as a MB?

No. 1 MiB is 1,048,576 bytes and 1 MB is 1,000,000 bytes, so a mebibyte is about 4.9% larger. Windows and RAM packaging label mebibytes as "MB", which is why the two are often mixed up.

Is MiB 1,024 or 1,000?

A MiB is based on 1,024: 1 MiB = 1,024 KiB = 1,024 × 1,024 = 1,048,576 bytes. A MB is based on 1,000: 1 MB = 1,000 kB = 1,000,000 bytes.

Is a mebibyte bigger than a megabyte?

Yes. A mebibyte is 48,576 bytes bigger, about 4.9%. So any number of MiB is a larger number of MB, and 1 MB is only 0.95367431640625 MiB.

How do I convert MiB to MB?

Multiply the value in mebibytes by 1.048576. For example, 64 MiB × 1.048576 = 67.108864 MB and 300 MiB × 1.048576 = 314.5728 MB.

What is 100 MiB in MB?

100 MiB × 1.048576 = 104.8576 MB, about 104.86 MB.

What is 512 MiB in MB?

512 MiB × 1.048576 = 536.870912 MB, about 536.87 MB. 512 MiB is half a gibibyte.

What is 1,024 MiB in MB?

1,024 MiB × 1.048576 = 1,073.741824 MB. 1,024 MiB is exactly 1 GiB, which is 1.073741824 GB.

Why does a file show a different size on Windows and Mac?

Windows divides by 1,024² and labels the result MB, so it is really showing MiB. macOS counts in decimal MB. Multiply the Windows figure by 1.048576 to get the Mac figure: 250 "MB" in Windows is about 262.1 MB on a Mac.

How do I convert MiB/s to MB/s?

Use the same factor: multiply by 1.048576. So 50 MiB/s = 52.4288 MB/s and 100 MiB/s = 104.8576 MB/s. Download tools that count in binary units often show MiB/s.

How many MB/s is 1 Mbps?

1 Mbps (megabit per second) is 0.125 MB/s, because a byte is 8 bits. So a 100 Mbps connection moves at most 12.5 MB/s, which is about 11.92 MiB/s. Use the data transfer rate converter for other speeds.

How many gigabytes are in a mebibyte?

1 MiB = 0.001048576 GB exactly, and 1,024 MiB = 1 GiB = 1.073741824 GB. To convert larger binary sizes, use the gibibytes to gigabytes converter or convert MiB to GB directly.

How do I convert MB back to MiB?

Divide by 1.048576, or multiply by 0.95367431640625. For example, 100 MB ÷ 1.048576 = 95.367431640625 MiB, about 95.37 MiB.

Sources and further reading

  1. Prefixes for binary multiples (opens in a new tab), National Institute of Standards and Technology
  2. IEC 80000-13: Quantities and units, Part 13: Information science and technology, International Electrotechnical Commission
  3. The International System of Units (SI Brochure), 9th edition (opens in a new tab), Bureau International des Poids et Mesures
  4. How storage capacity is measured on Apple devices (opens in a new tab), Apple
  5. Resource Management for Pods and Containers: memory units (opens in a new tab), The Kubernetes Authors
  6. GNU Coreutils manual: Block size (opens in a new tab), Free Software Foundation