Bytes To MB Converter

File sizes in bytes have many digits. Divide by 1,000,000 to see the MB.

Quick answer: multiply the size in B by 0.000001. For example, 1,000,000 B is 1 MB, 2,500,000 B is 2.5 MB and 5,000,000 B is 5 MB.

The B to MB formula

One MB is 1,000,000 bytes in the SI (Wikipedia: Byte).

So divide the bytes by 1,000,000 to get MB.

MB = B × 0.0000011,000,000 bytes = 1 MB

Take 1,000,000 B. Multiply by 0.000001. The answer is 1 MB.

Take 2,500,000 B. Multiply by 0.000001. The answer is 2.5 MB.

Bytes to megabytes

A byte is 8 bits. It is the base unit for file sizes (Wikipedia: Byte).

An MB is 1,000,000 bytes, or 1,000 KB (Wikipedia: Byte).

The factor 0.000001 joins the two.

1 MB1,000,000 bytes
1 MiB1,048,576 bytes
0.9537 MiB1,000,000 bytes
8 bits1 byte

How to convert B to MB step by step

  1. Write down the size in B.
  2. Multiply it by 0.000001.
  3. The answer is in MB.
  4. Check it against the chart above.

Example 1: 1,000,000 B

  1. Start with 1,000,000 B.
  2. 1,000,000 × 0.000001 = 1.
  3. The size is 1 MB.

1,000,000 B = 1 MB

Example 2: 2,500,000 B

  1. Start with 2,500,000 B.
  2. 2,500,000 × 0.000001 = 2.5.
  3. The size is 2.5 MB.

2,500,000 B = 2.5 MB

Example 3: 5,000,000 B

  1. Start with 5,000,000 B.
  2. 5,000,000 × 0.000001 = 5.
  3. The size is 5 MB.

5,000,000 B = 5 MB

SI prefixes step by 1,000. A KB is 1,000 bytes and a GB is 10⁹ bytes (Wikipedia: Byte).

B to MB conversion table

B MB MiB
1,000 B 0.001 MB 0.000954 MiB
100,000 B 0.1 MB 0.0954 MiB
500,000 B 0.5 MB 0.4768 MiB
1,000,000 B 1 MB 0.9537 MiB
2,500,000 B 2.5 MB 2.384 MiB
5,000,000 B 5 MB 4.768 MiB
25,000,000 B 25 MB 23.842 MiB
100,000,000 B 100 MB 95.367 MiB

The highlighted row, 1,000,000 B, is the default of the converter. The last column gives MiB.

A quick mental shortcut for B to MB

Count three zeros at a time. Two steps make an MB. So 2,500,000 bytes is 2.5 MB.

Or move the decimal six places left.

What B measures

A byte is 8 bits. It is the base unit for file sizes (Wikipedia: Byte).

Files and memory are counted in bytes.

What MB measures

An MB is 1,000,000 bytes, or 1,000 KB (Wikipedia: Byte).

Photos and songs are counted in MB.

Long byte counts

A count of 2,500,000 bytes is 2.5 MB. A count of 25,000,000 bytes is 25 MB.

Each group of three zeros is one SI step.

Decimal and binary

The SI prefixes step by 1,000. The IEC binary prefixes step by 1,024, such as KiB, MiB and GiB (Wikipedia: Byte).

A GiB is about 7.4 percent larger than a GB (Wikipedia: Binary prefix).

Drive labels

Drive makers use decimal units. A 500 GB drive holds 500 billion bytes (Wikipedia: Gigabyte).

Windows may show such a drive in binary units, so a 400 GB drive can appear as 372 GB (Wikipedia: Gigabyte).

MB and MiB

An MB is 1,000,000 bytes. A MiB is 1,048,576 bytes (Wikipedia: Binary prefix).

So 5,000,000 bytes is 5 MB, or 4.768 MiB.

Why divide by a million

An MB is 1,000,000 bytes (Wikipedia: Byte).

So a million bytes make one MB.

Going the other way

To go back, multiply the MB by 1,000,000. Or move the decimal six places right.

So 2.5 MB is 2,500,000 bytes.

Check your answer

Your MB number should be a million times smaller than the byte count.

Multiply it by 1,000,000 and you should get your first number.

More values at a glance

0.5 bytes is 5 × 10⁻⁷ megabytes. 2 bytes is 2 × 10⁻⁶ megabytes. 5 bytes is 5 × 10⁻⁶ megabytes.

10 bytes is 1 × 10⁻⁵ megabytes. 25 bytes is 2.5 × 10⁻⁵ megabytes. 100 bytes is 1 × 10⁻⁴ megabytes.

Each answer is the input times 1 × 10⁻⁶. You can use the same factor for any value that is not listed here.

The unit sizes

One of the bytes equals 1 × 10⁻⁶ megabytes. One of the megabytes equals 1,000,000 bytes.

If a result looks very large or very small, compare it with these sizes before you use it.

Checking in reverse

Take 1 × 10⁻⁵ megabytes and divide by 1 × 10⁻⁶. You get back 10 bytes. If you do not, one of the numbers was typed or rounded wrongly.

Quick conversion answers

Conversion Result
100,000 B 0.1 MB
1,000,000 B 1 MB
2,500,000 B 2.5 MB
5,000,000 B 5 MB
25,000,000 B 25 MB
100,000,000 B 100 MB

More examples

A size of 3,500,000 B is 3.5 MB, and 750,000 B is 0.75 MB.

A size of 1,048,576 B is 1.0486 MB, which is exactly 1 MiB.

This page counts a MB as 1,000,000 bytes (Wikipedia: Byte).

MB and MiB

A MiB is 1,048,576 bytes, a little more than a MB.

Some tools use MB for both, so a file can show two slightly different sizes.

For small files the gap is tiny, but it grows with the size.

Everyday file sizes

A photo of 4,200,000 B is 4.2 MB, and a song of 3,800,000 B is 3.8 MB.

A document of 250,000 B is 0.25 MB.

Move the decimal point six places to the left each time.

Where this conversion is used

File sizes are counted in bytes.

Photos, songs and downloads are sized in megabytes.

Common mistakes to avoid

  • Mixing MB and MiB. A MiB is about 4.9 percent bigger than a MB.
  • Using the wrong direction. Here 100,000 B is 0.1 MB, so a correct answer comes out smaller than the number you start with.
  • Mixing B and b. A capital B is a byte and a lowercase b is a bit, so 1 GB is 8 Gb.
  • Mixing MB and MiB. A size of 1,048,576 B is exactly 1 MiB, but it is 1.0486 MB.

Related converters

A song file

A file of 4,000,000 bytes is 4 MB.

In MiB that is 3.815.

A photo

A file of 3,500,000 bytes is 3.5 MB.

In MiB that is 3.338.

Frequently asked questions

How do I convert bytes to MB?

Divide the bytes by 1,000,000.

How many MB is 2,500,000 bytes?

2.5 MB.

How many bytes is 1 MB?

1,000,000 bytes.

How many bytes is 1 MiB?

1,048,576 bytes.

How many MiB is 1,000,000 bytes?

About 0.9537 MiB.

How many MB is 25,000,000 bytes?

25 MB.

Sources

  • Wikipedia: Byte (en.wikipedia.org)
  • Wikipedia: Binary prefix (en.wikipedia.org)
  • Wikipedia: Gigabyte (en.wikipedia.org)
Stephen, author at WETFLAG Calculator

Written by

Stephen

Founder & Lead Content Developer, WETFLAG Calculator

Stephen built WETFLAG Calculator to give clinicians and caregivers a fast, reliable way to work through paediatric emergency drug dosing and lab-value conversions. He has spent over a decade developing clinical reference tools and medical calculators, with a focus on sourcing every formula and conversion factor from established clinical references and cross-checking the output against published reference ranges before it goes live.

crvideos111@gmail.com