Why Your File Is Always Bigger Than the Limit Says It Should Be
Decimal and binary units quietly disagree about what a megabyte is, and knowing which one an app uses saves you a round of guessing when you compress.
Marcus Chen· November 9, 2026

File size confusion starts with math. Your computer counts in base 2, multiplying by 1,024 each step. The rest of the world counts in base 10, multiplying by 1,000. The word kilobyte gets used for both, which is why the same file can appear to be different sizes depending on where you look. When you are trying to compress something to fit a limit, knowing which system the app uses helps you pick the right compression level on the first try instead of guessing five times.
Why file sizes look inconsistent
A kilobyte in the decimal sense is 1,000 bytes. A megabyte is 1,000,000 bytes. A gigabyte is 1,000,000,000 bytes. That is the system everyday people see on product boxes and in casual conversation. But inside your computer's file system, the step size is 1,024, not 1,000. So a kibibyte is 1,024 bytes, a mebibyte is 1,048,576 bytes, and a gibibyte is 1,073,741,824 bytes.
The difference stays small at the lower end. A kilobyte off by 24 bytes does not matter much. But the gap grows fast. A hard drive marketed as 1 terabyte in decimal math is only about 931.3 gibibytes when your operating system reports it in binary units. That is why a new drive feels smaller than the box promised. The manufacturer counted one way, and your system counts another.
This split happens because storage makers sell in base 10 to make their numbers sound bigger. Operating systems report in base 2 because that is how memory and bits naturally divide. Neither side is wrong, just counting in a different language.
Reading the unit an app shows you
The International Electrotechnical Commission settled this in 1998 by approving official binary names: kibibyte, mebibyte, gibibyte, tebibyte, pebibyte, and exbibyte, with symbols Ki, Mi, Gi, Ti, Pi, and Ei. When you see those letters with the 'i', you are looking at base 2. A plain MB or GB usually means base 10, though not every app follows that rule.
Many tools and websites do not use the binary names at all. They label everything in kilobytes and megabytes without telling you which system they mean. When you cannot tell which one an app is using, assume a margin of a few percent and aim your target a little below the limit you actually need. That cushion covers the gap between the two counting systems.
One more wrinkle: bits and bytes are different. One byte equals 8 bits. If a platform limits you to 5 megabits per upload, divide by 8 to get the byte limit before you compare it with a file size shown in bytes. These mismatches are rarer but they catch people off guard.
Turning your limit into a target size
Start by writing down the maximum size allowed, and note the exact unit shown. Convert that number to bytes first. If it says 10 MB, multiply by 1,000,000. If it says 10 MiB, multiply by 1,048,576. Then set your actual target a little under that result, maybe 5 to 10 percent lower, so the file fits even if the system counts differently than you expect.
Next, check your original file's size in the same unit system. If the original is already below your target, compression may not be needed at all. If it is well above, you know you need a stronger compression setting. Divide the target by the original size to see the reduction ratio. If your target is 5 MB and the original is 50 MB, you need to shrink it by about 10 times, which means maximum compression. If the original is 8 MB and the target is 5 MB, a light compression might work.
Compression tools offer preset levels, not exact output sizes. The math mainly tells you which level to try first. Save a test copy at that level, check the result, and adjust up or down by one level if needed. One round of testing usually gets you close.
Choosing a level and checking the result
Every compression tool behaves differently, so measured results beat guesses. Save a copy at one level, read the file size in the same unit your limit uses, and note whether it fits. If it does not, try a stronger level. If it fits with plenty of room, you can go lighter and preserve more quality. Repeat until the file fits with some breathing room.
Keep your original file untouched while you test. Compressing a copy means you can go back and try a different level without losing data. This matters most for photos, scanned documents, and video, where squeezing an already compressed file a second time stacks the damage and degrades quality fast.
Once you know which unit an app uses, write it down for next time. A quick conversion at the start usually saves several rounds of trial and error on later files. You learn which level works for your photos, which level works for your PDFs, and which one to reach for in a hurry.

Quick conversion reference
Bookmark this. When a platform says your file must be under 25 MB, multiply 25 by 1,000,000 to get 25,000,000 bytes. When it says 25 MiB, multiply by 1,048,576 to get 26,214,400 bytes. Then aim for about 90 percent of that number as your real target. Test your compression at that level, check the output size, and tweak if needed. That process works the same way whether you are uploading a photo, a video, or a scanned document. The unit system is the only thing that changes, and now you know how to read it.
Sources
- Metric Prefixes and SI Units - SparkFun Learn
- Definitions of the SI units: The binary prefixes
- Metric (SI) Prefixes | NIST
- Choose the correct level of compression | Articles | web.dev
- Minify and compress network payloads with brotli | Articles | web.dev
- All the way up to 11: Serve Brotli from origin and Introducing Compression Rules | Cloudflare Blog
- Results of experimenting with Brotli for dynamic web content | Cloudflare Blog
- Invoking guix publish (GNU Guix Reference Manual)