Bytes to MB Converter

Convert bytes to MB and see the matching MiB value next to it. Handy when a file size in bytes needs to be compared with what Windows or macOS shows.

Updated
Runs in your browser. Your data is not uploaded.
Megabytes (1 MB = 1,000,000 bytes)
–
Mebibytes (1 MiB = 1,048,576 bytes)
–
Convert other units

How to use the Bytes to MB Converter

  1. Enter the size in Bytes, for example from a file's properties window.
  2. Press Convert.
  3. Read the MB value first and the MiB value underneath. Copy either one with the copy button.

How it works

MB  = bytes ÷ 1,000,000
MiB = bytes ÷ 1,048,576
  • MB (megabyte): the SI unit, 1,000² = 1,000,000 bytes
  • MiB (mebibyte): the binary unit, 1,024² = 1,048,576 bytes

The two differ by about 4.9%, which is why the same file can show two different sizes.

Examples

  • 5,000,000 bytes = 5 MB = 4.768371582 MiB.
  • 1,048,576 bytes = 1.048576 MB = 1 MiB.

Bytes to MB conversion table

BytesMBMiB
1,0000.0010.0009536743164
100,0000.10.09536743164
500,0000.50.4768371582
1,000,00010.9536743164
1,048,5761.0485761
5,000,00054.768371582
10,000,000109.536743164
25,000,0002523.84185791
100,000,00010095.36743164
1,000,000,0001,000953.6743164

When to use megabytes

Megabytes are the everyday unit for single files. Phone photos, PDFs, songs, and app updates are usually a few MB each. An MP3 at 128 kbps uses just under 1 MB per minute of audio.

Email services cap attachments in MB, and the limits are often around 20 to 25 MB. When a file is close to a limit, check which unit the service uses: a limit of 25 MB (decimal) is smaller than 25 MiB.

Limitations

  • Negative values give an error.
  • Results are rounded to 10 significant digits for display.
  • A file's size on disk can be larger than its actual size, because disks store data in fixed-size blocks. This converter uses the actual size in bytes.

Frequently asked questions

How many bytes are in a megabyte?

1,000,000 in SI units. A mebibyte (MiB) is 1,048,576 bytes.

How do I convert bytes to MB?

Divide by 1,000,000 for MB, or by 1,048,576 for MiB.

Why is my file's size different in Windows and macOS?

macOS shows sizes in SI megabytes. Windows uses binary units but labels them "MB", so the same file shows a smaller number in Windows.

Often used together with the Bytes to MB.

  • Bytes to KB

    Converts bytes to kilobytes (KB) and kibibytes (KiB).

  • Bytes to GB

    Converts bytes to gigabytes (GB) and gibibytes (GiB).

  • Byte Converter

    Converts any data-size unit to all other units at once.