Convert megabytes to bytes. One megabyte is exactly 1000000 bytes.
Byte to Megabyte Converter
Convert bytes to megabytes. One byte is exactly 0.000001 megabytes, or 1/1000000 as a fraction.
- Free
- No sign-up
- Runs in your browser
Input
The quantity to convert, in bytes (B).
How many significant digits to display. The calculation is always carried out exactly; this only affects the output.
Try an example
Fill in Value in bytes to continue.
Enter your input to see the result
Everything happens on this device. No upload, no account, no network request.
How to use this tool
- 1
Type the number of bytes into the value box. Decimals and scientific notation such as 1.5e3 both work.
- 2
Read the result in megabytes. Raise the precision setting if you need more significant digits; the calculation itself is carried out exactly and only the display is rounded.
- 3
Use the reference table below the result to see the same quantity in the other digital storage units, or follow a related converter to switch direction.
Limits and caveats
Published up front rather than buried, because knowing where a tool stops is part of being able to trust it.
- Decimal (SI) megabyte = 1 000 000 bytes. For 1024^2 use the mebibyte (MiB).
- The conversion factor is exact by definition. Displayed results are rounded to the precision you select, using half-up rounding.
Questions about Byte to Megabyte Converter
How many megabytes are in a byte?
One byte is 0.000001 megabytes (exactly 1/1000000 as a fraction). Going the other way, one megabyte is 1000000 bytes.
What is the formula to convert bytes to megabytes?
Multiply the number of bytes by 0.000001. This tool does the multiplication as an exact fraction rather than a rounded decimal, so the only rounding happens when the answer is displayed.
Is this conversion exact?
Yes. Both Byte and Megabyte are defined exactly, so the ratio between them is an exact fraction. 8 bits (one octet). SI decimal prefix: 1000^2 bytes.
How do I convert megabytes back to bytes?
Multiply the other way: one megabyte is 1000000 bytes, so multiply your megabytes figure by 1000000 to get bytes. The Megabyte to Byte converter does this for you and is linked under related tools.
How precise is the Byte to Megabyte result?
The conversion is carried internally as an exact fraction and is only rounded when it is shown, so the figures you see are accurate and large or very small values do not drift. Round the displayed answer to the number of decimals your work actually needs.
Related tools
Other tools you might reach for next.
Convert bytes to bits. One byte is exactly 8 bits.
Convert bytes to kilobits. One byte is exactly 0.008 kilobits, or 1/125 as a fraction.
Convert bytes to megabits. One byte is exactly 0.000008 megabits, or 1/125000 as a fraction.
Convert bytes to gigabits. One byte is exactly 8e-9 gigabits, or 1/125000000 as a fraction.
Convert bytes to kilobytes. One byte is exactly 0.001 kilobytes, or 1/1000 as a fraction.
Convert bits to bytes. One bit is exactly 0.125 bytes, or 1/8 as a fraction.
Convert bits to kilobits. One bit is exactly 0.001 kilobits, or 1/1000 as a fraction.