Bytes to MB Converter
Bytes to MB is a division, and the divisor is either 1,000,000 or 1,048,576 depending on which megabyte is meant. This page opens on the decimal one: Byte in the From box and Megabyte (MB) in the To box, 1,000,000 bytes to the MB, the decimal megabyte. External file-size and rate labels can use a different convention. So 1,500,000 bytes is 1.5 MB, 5,000,000 bytes is exactly 5 MB and 123,456,789 bytes is 123.456789 MB, each of them just the byte count with the decimal point moved six places. The binary megabyte, properly the mebibyte (MiB), is 1,048,576 bytes and it is never more than a glance away: it sits in the list under the headline, so 5,242,880 bytes reads 5.24288 MB and exactly 5 MiB on the same screen. For equal numeric counts, a MiB has 4.8576% more bytes than an MB. These two displayed numbers still express the same byte quantity. The swap button between the boxes reverses the pair into megabytes to bytes, and the input takes a pasted 5,242,880 or a typed 5e6 equally.
- Category
- Digital storage
- Base unit
- byte
kB, MB, GB and TB use powers of 1,000; KiB, MiB, GiB and TiB use powers of 1,024. One byte is eight bits; labels used by other software may differ.
Results round to 12 significant digits using the listed unit definitions. Input must have a finite numeric magnitude and at most 512 significant digits. Type a single decimal or scientific number; a matching From unit suffix is accepted. Commas and grouped spaces separate thousands; decimal commas, fractions and compound measurements are refused.
1 B in every digital storage unit
Selectable complete conversion
Common questions
- How many bytes are in a megabyte?
- A decimal megabyte (MB) is exactly 1,000,000 bytes; a binary mebibyte (MiB) is exactly 1,048,576 bytes. Both are named separately in the menus and result list. Some software uses an MB label for a binary count, while other software uses decimal units. A service’s exact byte count or documented convention determines what its external MB label means.
- Worked example: how many MB is 5,242,880 bytes?
- 5.24288 MB, and exactly 5 MiB. The rest of the list for that size fills in the picture: 41,943,040 bits, 5,242.88 kB, 5,120 KiB, 0.00524288 GB and 0.0048828125 GiB. Each row carries its own Copy button, and Copy result above the list copies the headline figure without the thousands separators it is displayed with.
- What is the formula for bytes to MB?
- MB = bytes / 1,000,000 for the decimal reading and MiB = bytes / 1,048,576 for the binary one. Reversed they are bytes = MB x 1,000,000 and bytes = MiB x 1,048,576, which is what the swap button sets up: 1 MB gives 1,000,000 bytes and 1 MiB gives 1,048,576. Changing To expresses the same input quantity in another unit. Changing From reinterprets the typed number in that unit, so it can change the byte quantity.
- Is a 10 MB upload limit 10,000,000 bytes or 10,485,760?
- An exact decimal 10 MB is 10,000,000 bytes, while 10 MiB is 10,485,760 bytes. Some services use an MB label for the latter, and this converter cannot determine a service’s limit convention; use its documentation or exact byte limit. The two candidates display here as 10 MB = 9.53674316406 MiB and 10 MiB = 10.48576 MB. Their difference is 485,760 bytes, or exactly 0.48576 MB.
- Why does a 1,000,000 byte file show up as 0.95 MB?
- If the display divides by 1,048,576 and labels the binary count MB, 1,000,000 bytes is 0.953674316406 MiB, or 0.95 when rounded to two decimal places. The decimal count is exactly 1 MB. This explanation compares one known byte quantity under two units; it does not infer whether a file changed. Similarly 10,000,000 bytes is 9.53674316406 MiB and 25,000,000 bytes is 25 MB.
- What is 1 byte in MB?
- 0.000001 MB, which is the smallest figure the page still writes out in full. Below a millionth it switches to exponential notation, so the same byte in GB reads 1e-9 and in GiB 9.31322574615e-10, while the kilobyte row stays as 0.001. Results are shown to twelve significant digits throughout, which is why a long tail such as 0.953674316406 stops where it does.
- How do I convert MB back to bytes?
- Press the swap button and the page becomes megabytes to bytes: 1 MB is 1,000,000, 25 MB is 25,000,000 and 1.5 MB is 1,500,000. To work in the binary unit instead, pick Mebibyte (MiB) in the From menu after swapping, where 1 MiB is 1,048,576 bytes and 10 MiB is 10,485,760. Both menus remain available, so the same figure also goes to kB, GB or bits.
- Can I paste a byte count with commas, or type 5e6?
- Yes, when thousands are properly grouped. The value 5,242,880 is accepted as 5242880, and 5e6 or 5000000 displays as 5 MB. A decimal comma such as 1,5 is refused; use 1.5 for decimals. A matching suffix such as 5,242,880 bytes is accepted when From is Byte. Fractions and compound measurements are not accepted, and invalid drafts do not replace saved settings.
- Why does the page open on bytes and megabytes when I last converted something else?
- This focused page opens on Byte and Megabyte, while preserving the main converter’s saved unit pair. When browser storage is usable, a saved value and uncommon-unit preference can travel between pages. The value’s suffix must still match the current From unit. Valid deliberate scalar edits can save those fields after a short delay; invalid or incomplete drafts do not overwrite the saved record. Unusable or conflicting records are kept with an explanation until you use Forget saved settings, which keeps the current conversion on screen.
- Does anything I type leave the browser?
- Your input and converted values are calculated in the browser and are not uploaded by the converter. The definitions arrive with the page, so conversion needs no external data lookup and keeps working offline after the page has loaded. The core conversion needs no account.
Results round to 12 significant digits using the listed unit conventions. Many factors are exact definitions; psi and parsec use rounded coefficients. Temperature includes scale offsets. Days and weeks are fixed-duration units, and unit conversion does not determine calendar dates, ambient pressure or a software label’s convention.