Your file says 2 MB but the upload says too large: MB vs MiB explained
A megabyte has two definitions in everyday use: 1,000,000 bytes (MB, decimal) and 1,048,576 bytes (MiB, binary). A file that your device rounds to “2 MB” can be up to 97,152 bytes over a 2 MB limit that is counted the other way. Keep the file under 2,000,000 bytes with a little room to spare and it passes under both definitions.
Two definitions of a megabyte
Computers count in powers of two, and people count in powers of ten. Both habits ended up attached to the same word.
- Decimal: 1 megabyte (MB) = 1,000 × 1,000 = 1,000,000 bytes. This follows the metric system, where “mega” always means a million.
- Binary: 1 mebibyte (MiB) = 1,024 × 1,024 = 1,048,576 bytes. The name and the symbol MiB come from the International Electrotechnical Commission (IEC), which introduced separate prefixes for binary multiples in 1998 so that the two could be told apart.
The trouble is that the separate name never caught on with everyone. As the US standards institute NIST notes, “megabyte” is used with both meanings in practice. Plenty of software calculates in units of 1,048,576 bytes and labels the result “MB”.
What that means for a 2 MB limit
A “2 MB” limit is one of two numbers:
- 2 × 1,000,000 = 2,000,000 bytes, or
- 2 × 1,048,576 = 2,097,152 bytes.
The gap is 97,152 bytes, about 4.9% of the smaller figure. Any file between those two sizes is under the limit by one definition and over it by the other.
Here is how that goes wrong. Suppose your computer measures in binary units and your file is 2,050,000 bytes. That is 1.955 MiB, so the computer shows something like “1.96 MB”. The portal counts in decimal: 2,050,000 is more than 2,000,000, and the upload is refused. Both are doing the arithmetic correctly. They disagree about the unit.
How your device shows size
You cannot always tell from the screen which unit you are looking at, and it has changed over the years.
- Apple devices. Apple’s support article on storage capacity describes both systems and says that iOS 10 and earlier and OS X Leopard and earlier report storage capacity in binary. That implies decimal for later versions. The article is about storage capacity and does not spell out how the size of a single file is displayed, so we do not want to overstate it.
- Windows. Windows Explorer has traditionally used the binary calculation while labelling the result KB and MB. A Microsoft engineer explained in 2009 that Explorer follows the common practice of calling 1,024 bytes a kilobyte.
- Web forms. The limit is whatever the site’s programmer wrote. Both conventions are common, and the page almost never says which one it uses.
The practical answer is to stop reading megabytes and read bytes. Many systems can show the exact byte count in a file’s info or properties window. If yours does, use that number. A byte count is not open to interpretation: compare it with 2,000,000.
Rounding hides the problem
File sizes are usually shown with one or two decimal places. A file of 2,040,000 bytes is 2.04 MB in decimal units, and a display with one decimal place shows “2.0 MB”. It looks like an exact fit, and it is 40,000 bytes too big. Whenever a file is displayed as exactly the limit, assume it may be over.
The safe approach
- Assume the smaller definition. Treat “2 MB” as 2,000,000 bytes unless the portal explicitly says MiB or 2,048 KB.
- Leave a margin. Aim a few percent under the limit, for example 1.9 MB for a 2 MB limit. A file that fits 2,000,000 bytes also fits 2,097,152.
- Check the byte count of the final file, not the rounded figure.
If your file is over, the fix is ordinary compression: see how to compress a PDF to under 2 MB.
Other reasons a small-enough file is rejected
If your file is clearly under the limit in bytes and is still refused, the unit is not the cause. Check these:
- Wrong format. The slot accepts PDF and you sent a JPG or HEIC, or the other way round. Error messages are not always precise about the real cause.
- A total limit. Some forms cap the combined size of all files as well as each one.
- A different limit for this slot. A photo slot may have a much lower limit than a document slot. Read the text next to the button you are using.
- A limit in KB. “500 KB” is half a megabyte, not 5 MB.
- A slow or interrupted connection. A timeout can show the same error. Try once more on a stable connection before changing the file.
Quick reference
| Stated limit | Decimal (MB), bytes | Binary (MiB), bytes | Gap, bytes |
|---|---|---|---|
| 1 MB | 1,000,000 | 1,048,576 | 48,576 |
| 2 MB | 2,000,000 | 2,097,152 | 97,152 |
| 5 MB | 5,000,000 | 5,242,880 | 242,880 |
| 10 MB | 10,000,000 | 10,485,760 | 485,760 |
The gap is always the same share, about 4.9%, so it grows with the limit: nearly half a megabyte at 10 MB. Stay under the decimal column and you are safe either way.
Kilobytes work the same way one level down: 1 kB is 1,000 bytes and 1 KiB is 1,024 bytes. So “2 MB” can be written as 2,000 kB or as 2,048 KiB, and those are the two numbers in the 2 MB row above.
Common mistakes
- Trusting the rounded figure. “2.0 MB” is not proof of anything. Read the bytes.
- Aiming exactly at the limit. Even with the right unit, leave a few percent.
- Assuming the bigger definition because it gives you more room. If the portal uses the smaller one, you find out at upload time.
- Compressing again and again to shave off the last few kilobytes. Each pass damages the image. Go back to the original and export once with a slightly lower target.
- Blaming the unit when the format is wrong. If you are far under the limit and still refused, look at the other causes above.
Questions people ask
Is 2 MB 2000 KB or 2048 KB?
Both are in use. In decimal units 2 MB is 2,000 kB (2,000,000 bytes). In binary units it is 2,048 KiB (2,097,152 bytes), which is often written as “2048 KB”. If a form says “2048 KB”, it is using the binary meaning.
How many bytes are in 2 MB?
2,000,000 bytes by the decimal definition, or 2,097,152 bytes if the system really means 2 MiB. If you do not know which, stay under 2,000,000.
Which definition do upload forms use?
It varies from site to site and is rarely stated. That is why the safe approach is to assume 1 MB = 1,000,000 bytes and keep a small margin.
Why does the same file show different sizes on my phone and my computer?
Usually because one system divides the byte count by 1,000,000 and the other by 1,048,576, and both label the result “MB”. The number of bytes is the same on both.
Sources and date checked
- NIST, “Prefixes for binary multiples” (describes the IEC prefixes, first adopted in Amendment 2 to IEC 60027-2): https://physics.nist.gov/cuu/Units/binary.html. Checked on 2026-11-30. Used for: 1 MiB = 1,048,576 bytes; the SI prefixes mean powers of ten; “megabyte” is used with both meanings in practice. We could not open the IEC’s own page on this topic (it refused automated access), so the IEC standard is cited through NIST.
- Apple, “How storage capacity is measured on Apple devices”: https://support.apple.com/en-us/102119. Checked on 2026-11-30. Used for: the decimal and binary systems for capacity, and the statement that iOS 10 and earlier and OS X Leopard and earlier report storage capacity in binary. The article is about storage capacity; it does not discuss how individual file sizes are displayed.
- Raymond Chen (Microsoft), “Why does Explorer use the term KB instead of KiB?”, The Old New Thing, 11 June 2009: https://devblogs.microsoft.com/oldnewthing/20090611-00/?p=17933. Checked on 2026-11-30. Used for: Windows Explorer labels 1,024 bytes as a KB. This is a 2009 post; we did not test a current version of Windows.