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) |
|---|---|
| 1 | 1,000,000 |
| 2 | 2,000,000 |
| 5 | 5,000,000 |
| 10 | 10,000,000 |
| 25 | 25,000,000 |
| 50 | 50,000,000 |
| 100 | 100,000,000 |
| 500 | 500,000,000 |
| 1,000 | 1,000,000,000 |
How to convert online
- Type the number of megabytes into the first box.
- Read the equivalent value in bytes instantly in the second box.
- 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
- Byte to Megabyte Converter
- Megabyte to Bit Converter
- Megabyte to Kilobyte Converter
- Megabyte to Gigabyte Converter
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.
Recommended reading
Terabyte to Petabyte Converter (TB to PB)
1 terabyte equals 0.001 petabytes. See the TB to PB formula, a table of common values, and convert instantly in your browser.
Terabyte to Megabyte Converter (TB to MB)
1 terabyte equals 1,000,000 megabytes. See the TB to MB formula, a table of common values, and convert instantly in your browser.
Terabyte to Kilobyte Converter (TB to KB)
1 terabyte equals 1,000,000,000 kilobytes. See the TB to KB formula, a table of common values, and convert instantly in your browser.
Terabyte to Gigabyte Converter (TB to GB)
1 terabyte equals 1000 gigabytes. Learn the TB to GB formula, a conversion table of common values, and convert instantly in your browser.