How to convert bytes to MB or MiB
For decimal megabytes, divide the number of bytes by 1,000,000. The prefix mega means one million, so 1 MB is exactly 1,000,000 bytes.
For binary mebibytes, divide the number of bytes by 1,048,576. This is 2 to the power of 20, so 1 MiB is exactly 1,048,576 bytes.
Use the unit stated by the app, storage label or upload limit you are checking. Converting units does not compress the file, change its contents or measure your connection speed.
- Enter the file size as a whole number of bytes.
- Choose decimal MB or binary MiB.
- Read the result and copy it if needed.
Examples you can check
| Bytes | Decimal MB | Binary MiB |
|---|---|---|
| 1000000 | 1 | 0.95367431640625 |
| 1048576 | 1.048576 | 1 |
| 250000000 | 250 | 238.4185791015625 |
A 1,000,000-byte file is exactly 1 MB, but less than 1 MiB.
A 1,048,576-byte file is exactly 1 MiB, or 1.048576 MB.
A download listed as 250,000,000 bytes is 250 MB. Its byte count stays the same when expressed in MiB.
Exact units, rounded displays
The MB and MiB definitions are exact. A shortened decimal display may be rounded; it does not change the underlying byte count. For an upload limit, compare the exact byte counts when they are available.
Bytes to MB: common questions
Is 1 MB equal to 1,000,000 or 1,048,576 bytes?
In decimal units, 1 MB is 1,000,000 bytes. The binary unit for 1,048,576 bytes is 1 MiB. Some apps label binary values as MB, so check their documentation when the distinction matters.
How many MB is 1,048,576 bytes?
It is exactly 1.048576 MB in decimal units, or exactly 1 MiB in binary units.
Are MB and Mb the same?
No. MB means megabytes; Mb means megabits. One byte contains eight bits, so 1 MB is 8 Mb. Internet plans commonly use Mbps, which is a rate rather than a file size.
Why do two apps show different sizes for the same file?
They may use decimal or binary units, round differently, or show different measurements such as file size and size on disk. Compare the byte counts and the meaning of each label first.
Can this tell me how long the file will take to download?
A size conversion alone cannot predict download time. Use the download-time calculator with the file size and an estimated transfer speed. Real transfers can also be affected by overhead, other traffic and the server.