BYTETOOLS

Megabytes to Bytes (MB to B) Converter

1 megabyte equals 1,000,000 bytes — multiply the number of megabytes by 1,000,000 to convert. This uses the decimal (SI) standard, where 1 MB is defined as exactly one million bytes.

The formula

To convert megabytes to bytes, multiply by 1,000,000:

B = MB × 1000000

For example, 2 MB × 1000000 = 2,000,000 bytes. To reverse it, divide by 1,000,000.

Conversion table

Megabytes (MB)Bytes (B)
11,000,000
22,000,000
55,000,000
1010,000,000
2525,000,000
5050,000,000
100100,000,000
500500,000,000
1,0001,000,000,000

How to convert online

  1. Type the number of megabytes into the first box.
  2. Read the equivalent value in bytes instantly in the second box.
  3. Enter a byte value to convert back to megabytes.

Use the Megabyte to Byte Converter — free and instant in your browser.

Where this conversion is used

Megabytes-to-bytes conversions come up in programming, file-size calculations, storage quotas and API limits, where a size shown in megabytes must be expressed in the exact bytes a system reports or enforces.

FAQ

How many bytes are in a megabyte?

One megabyte equals 1,000,000 bytes under the decimal standard. So 10 MB equals 10,000,000 bytes.

What is the formula to convert megabytes to bytes?

Multiply the megabyte value by 1,000,000: B = MB × 1000000. For example, 5 MB = 5,000,000 bytes.

How do I convert bytes back to megabytes?

Divide by 1,000,000. So 2,000,000 bytes = 2 MB.

Why not 1,048,576 bytes?

That value uses the binary mebibyte (MiB). This converter uses the decimal megabyte (1 MB = 1,000,000 bytes), the SI and storage-industry standard.

Related converters

Built by ByteVancer

ByteTools is a free product of ByteVancer, a software and web development studio. If you need custom web apps, tools or automation for your business, ByteVancer can help — explore our services to get started.