bytes to MB
Type any number of bytes and see it in megabytes straight away; the converter below starts with 5,000,000 B.
What you type stays in your browser
5,000,000 B = 5 MB
5,000,000 B in other units
Results show up to six significant figures; the calculation uses exact unit definitions.
In short
1 byte equals 0.000001 megabytes. To convert bytes to megabytes, multiply by 0.000001: 5,000,000 B × 0.000001 = 5 MB.
bytes to MB formula
The formula is megabytes = bytes × 0.000001, so every byte adds 0.000001 megabytes to the result.
Written as a single factor, 1 B = 0.000001 MB; the converter keeps the full precision of that factor and rounds only the final result.
Going back, 1 megabyte = 1,000,000 bytes, so multiply by 1,000,000 to turn megabytes into bytes.
As a reference point, 100 bytes make 0.0001 MB, while 100 megabytes make 100,000,000 B.
Example: 5,000,000 B to megabytes
This is the conversion of 5,000,000 B to megabytes, worked through step by step.
- Multiply by 0.000001: 5,000,000 × 0.000001 = 5.
- Rounded for everyday use, 5,000,000 B = 5 MB.
bytes to MB conversion chart
| bytes | megabytes |
|---|---|
| 1,000,000 B | 1 MB |
| 2,000,000 B | 2 MB |
| 3,000,000 B | 3 MB |
| 4,000,000 B | 4 MB |
| 5,000,000 B | 5 MB |
| 6,000,000 B | 6 MB |
| 7,000,000 B | 7 MB |
| 8,000,000 B | 8 MB |
| 9,000,000 B | 9 MB |
| 10,000,000 B | 10 MB |
| 12,000,000 B | 12 MB |
| 15,000,000 B | 15 MB |
| 20,000,000 B | 20 MB |
| 25,000,000 B | 25 MB |
| 30,000,000 B | 30 MB |
| 40,000,000 B | 40 MB |
| 50,000,000 B | 50 MB |
| 60,000,000 B | 60 MB |
| 75,000,000 B | 75 MB |
| 100,000,000 B | 100 MB |
Frequently asked questions
How many megabytes are in a byte?
One byte is 0.000001 MB. Turned around, one megabyte is 1,000,000 B; the two factors multiply to exactly 1.
How many bytes are in a megabyte?
One megabyte contains 1,000,000 B. To turn a number of megabytes into bytes, multiply by 1,000,000; the calculation on this page simply runs it the other way.
How do I convert megabytes to bytes?
Reverse the rule: multiply by 1,000,000. For example, 5 MB is 5,000,000 B.
What is 20,000,000 bytes in megabytes?
20,000,000 B is exactly 20 MB.
Is the bytes to MB conversion exact?
Yes. Both units have exact definitions, so the factor is exactly 0.000001 and any difference you see comes only from rounding the result.
What are bytes and megabytes?
A byte is 8 bits, enough to store one character of plain text. File sizes and memory are counted in bytes and their multiples.
A megabyte is 1,000,000 bytes in decimal units. Photos, songs and email attachment limits are usually stated in MB.
How your files stay private
This tool runs with JavaScript inside your browser tab. What you type, the settings you choose and the results stay in the page's memory and disappear when you close it. Nothing is sent to a server; a few display settings may be remembered in your own browser.
Related conversions
All data size conversions
Unit converter All unit converters
Last updated Nov 20, 2026