Bytes to Megabytes and Megabytes to Bytes: How Many Bytes in a Megabyte? (mb)

Convert bytes to megabytes or the other way round. Every result uses the exact definition of each unit.

To 0.000001

1 B = 0.000001 MB

Show this value in every data storage unit
Bits bit
8
Bytes B
1
Kilobytes kB
0.001
Megabytes MB
0.000001
Gigabytes GB
1 × 10⁻⁹
Terabytes TB
1 × 10⁻¹²
Petabytes PB
1 × 10⁻¹⁵
Kibibytes KiB
0.000976563
Mebibytes MiB
0.000000953674
Gibibytes GiB
9.31323 × 10⁻¹⁰
Tebibytes TiB
9.09495 × 10⁻¹³
Pebibytes PiB
8.88178 × 10⁻¹⁶
Exabytes EB
1 × 10⁻¹⁸
Kilobits kbit
0.008
Megabits Mbit
0.000008
Gigabits Gbit
8 × 10⁻⁹
Nibbles nibble
2

Quick answer

  • 1 B = 0.000001 MB
  • 1 MB = 1,000,000 B

Bytes to Megabytes formula, and back

megabytes = bytes ÷ 1,000,000

Divide the number of bytes by 1,000,000.

bytes = megabytes × 1,000,000

Multiply the number of megabytes by 1,000,000.

Where the factor comes from: one byte is 1 and one megabyte is 1,000,000 of the reference unit (bytes). Dividing the first by the second gives 0.000001.

Worked examples

  1. Convert 5 bytes to megabytes.

    5 B ÷ 1,000,000 = 0.000005 MB

  2. Convert 12.5 bytes to megabytes.

    12.5 B ÷ 1,000,000 = 0.0000125 MB

  3. Convert 250 bytes to megabytes.

    250 B ÷ 1,000,000 = 0.00025 MB

  4. Convert 5 megabytes to bytes.

    5 MB × 1,000,000 = 5,000,000 B

  5. Convert 12.5 megabytes to bytes.

    12.5 MB × 1,000,000 = 12,500,000 B

  6. Convert 250 megabytes to bytes.

    250 MB × 1,000,000 = 250,000,000 B

Conversion tables

Common values in both directions, calculated with the same engine as the converter above.

Bytes to Megabytes conversion table
Bytes (B)Megabytes (MB)
1 B0.000001 MB
2 B0.000002 MB
3 B0.000003 MB
5 B0.000005 MB
10 B0.00001 MB
15 B0.000015 MB
20 B0.00002 MB
25 B0.000025 MB
50 B0.00005 MB
75 B0.000075 MB
100 B0.0001 MB
250 B0.00025 MB
500 B0.0005 MB
1000 B0.001 MB
Megabytes to Bytes conversion table
Megabytes (MB)Bytes (B)
1 MB1,000,000 B
2 MB2,000,000 B
3 MB3,000,000 B
5 MB5,000,000 B
10 MB10,000,000 B
15 MB15,000,000 B
20 MB20,000,000 B
25 MB25,000,000 B
50 MB50,000,000 B
75 MB75,000,000 B
100 MB100,000,000 B
250 MB250,000,000 B
500 MB500,000,000 B
1000 MB1,000,000,000 B

When this conversion is useful

Bytes are used for file sizes, while megabytes are used for photos, songs and downloads. Converting between them comes up whenever a value from one of those settings has to be read in the other, so this page works in both directions: press the swap button above to turn bytes to megabytes into megabytes to bytes.

The units

What is a byte?

A byte is 8 bits, enough to store one character of basic text. File and memory sizes are counted in bytes and their multiples.

What is a megabyte?

A megabyte is one million bytes. A typical phone photo is 2 to 5 megabytes and a minute of MP3 audio is about one.

Bytes compared with megabytes

A megabyte is the larger unit: one megabyte equals 1,000,000 bytes.

Accuracy and precision

Results are calculated from the exact definition of each unit and rounded to 6 significant figures for display, or 12 when "More decimal places" is switched on. Round your final answer to match the precision of the measurement you started with.

Kilobytes, megabytes, gigabytes, terabytes and petabytes here are decimal (powers of 1,000). Kibibytes, mebibytes and gibibytes are binary (powers of 1,024).

Frequently asked questions

How many bytes are in a megabyte?

One megabyte equals 1,000,000 bytes.

How do I convert bytes to megabytes?

Divide the number of bytes by 1,000,000. For example, 5 B ÷ 1,000,000 = 0.000005 MB.

How do I convert megabytes to bytes?

Multiply the number of megabytes by 1,000,000. For example, 5 MB × 1,000,000 = 5,000,000 B.

Which is larger, a byte or a megabyte?

A megabyte is larger. One megabyte is 1,000,000 bytes.

Is this converter exact?

Yes, within display rounding. Both units are defined exactly in terms of the same reference unit, and the converter uses those definitions directly.

Learn more

Think a conversion is incorrect? Email contact@sjwebtechwork.com with the page address, the value you entered, the result you saw and the result you expected.