All tools

KB vs KiB: why file size limits don’t always add up

A form says “maximum 200 KB”. Your file is 203 KB in one program and 198 KB in another, and the form rejects it anyway. Nobody is lying: the same letters mean two different quantities, and different software picks different ones. This guide explains where the confusion comes from, what the standards say, and a simple rule that keeps you safe whichever definition a form uses.

The two meanings

Computers count in powers of two, and 1,024 is very close to 1,000. Early programmers borrowed “kilo” for 1,024 because it was close enough, and for a while it did no harm. As files grew, the gap grew too: it is 2.4% at the kilobyte level, 4.9% at the megabyte level and 7.4% at the gigabyte level.

What the standards say

The International Electrotechnical Commission (IEC) approved names and symbols for binary prefixes in 1998 for use in data processing and data transmission: kibi (Ki), mebi (Mi), gibi (Gi) and so on. The US National Institute of Standards and Technology (NIST) publishes them and notes that they were first adopted as an amendment to IEC 60027-2 and incorporated in its second edition of 2000-11. NIST is explicit that the binary prefixes are not part of the International System of Units (SI): the SI prefixes keep their decimal meaning. NIST’s examples: 1 MB is 10 to the 6th power, or 1,000,000 bytes, while 1 MiB is 2 to the 20th power, or 1,048,576 bytes.

NIST also describes how messy things had become. Memory makers used megabyte to mean 1,048,576 bytes, storage makers used it to mean 1,000,000, and the familiar “1.44 MB” floppy diskette used a third definition entirely: 1,024,000 bytes. The IEEE decided that its standards would use the SI meanings, so mega means 1,000,000. This is the root of the confusion: three industries, three meanings, one set of letters.

Who uses which

What the difference costs you

The table shows common limits both ways. The last column is the gap: the file that is fine under one definition and rejected under the other.

Limit on the formIf KB means 1,000 (bytes)If KB means 1,024 (bytes)Difference (bytes)
20 KB20,00020,480480
50 KB50,00051,2001,200
100 KB100,000102,4002,400
200 KB200,000204,8004,800
500 KB500,000512,00012,000
1 MB1,000,0001,048,57648,576
2 MB2,000,0002,097,15297,152
25 MB25,000,00026,214,4001,214,400

At 20 KB the gap is only 480 bytes, but a 20,300-byte file would still be refused by a form that counts decimal. At 25 MB the gap is more than 1.2 million bytes. Which brings us to the rule.

The safe rule: round against yourself

This is exactly what ReduceThis does. Its exact-size tools keep results under N × 1,000 bytes for maximums and above N × 1,024 bytes for minimums, such as the 54 KB minimum on the US passport photo page. The sizes the tools display use the decimal convention as well, so a result shown as 99.8 KB is 99,800 bytes. If you want to see which definition your own system uses, create a file of known size and compare what each program reports.

Bits and bytes: a second trap

A byte is 8 bits (NIST lists 1 B = 2 to the 3rd power bits = 8 bits). File sizes are normally quoted in bytes, with a capital B: KB, MB, GB. Connection speeds are normally quoted in bits, with a lowercase b: kbit/s, Mbit/s, or Mbps. So a 100 Mbps connection moves at most 12.5 MB per second, and a 25 MB attachment is 200 megabits of data. NIST also notes that telecommunications engineers always use megabit per second to mean 1,000,000 bits per second, so network speeds are decimal.

Worked examples

  1. A visa form allows 240 KB. Aim for under 240,000 bytes. That is what the US visa photo tool does, so the result passes whichever definition the portal uses.
  2. A job site says “PDF up to 2 MB”. Aim under 2,000,000 bytes with the PDF under 2 MB tool. Anything between 2,000,000 and 2,097,152 bytes is a gamble.
  3. An email limit of 25 MB. The exact meaning of “MB” hardly matters here; email encoding adds about a third, so work with the figures in our guide to compressing PDFs for email.
  4. A file is “100 KB” in one program and “97.7 KB” in another. It is the same file: 100,000 bytes counted by 1,000s and by 1,024s. 100,000 ÷ 1,024 = 97.66.

Quick reference

Sources

Checked 6 December 2026. Software behaviour differs between versions; confirm the exact byte count where it matters.

Frequently asked questions

Is 1 KB 1,000 or 1,024 bytes?

Both are used. In the metric (SI) sense it is 1,000 bytes. The binary unit, properly written KiB, is 1,024 bytes. Software often uses the label KB for either.

What does KiB stand for?

Kibibyte: the IEC name for 1,024 bytes, from “kilobinary”. The IEC approved the binary prefixes (Ki, Mi, Gi) in 1998.

How do I stay under a limit if I don’t know which one the form means?

For a maximum, use the smaller (decimal) number of bytes. For a minimum, use the larger (binary) number. A file inside both stays valid either way.

Why does my 1 TB drive show less than 1 TB?

The maker counts in decimal (1 TB = 1 trillion bytes) while some operating systems report the same bytes in binary units. Apple notes that some systems report capacity in the binary system.