FitPixelKit
Menu

Is 1 KB 1000 or 1024 Bytes? Why Your Sizes Disagree

Two counting systems are in use. The difference is 2.4% per KB, and it is enough to get a file rejected.

You compress a photo to “20 KB”, your phone agrees, and the form says it is too large. Often neither is wrong: they count differently.

Two ways to count

  • Decimal: 1 KB = 1000 bytes, 1 MB = 1000 KB = 1,000,000 bytes. This is how storage makers label drives, and how macOS (since version 10.6) shows file sizes. Most phones show sizes this way too.
  • Binary: 1 KB = 1024 bytes, 1 MB = 1024 KB = 1,048,576 bytes. Windows File Explorer shows sizes this way, and so do many programs and websites. The official names for these units are KiB and MiB, but most software still writes KB and MB.

How much it matters

Size Decimal bytes Binary bytes Difference
20 KB 20,000 20,480 480 bytes
50 KB 50,000 51,200 1,200 bytes
100 KB 100,000 102,400 2,400 bytes
1 MB 1,000,000 1,048,576 48,576 bytes

A file of 20,300 bytes is 19.8 KB to Windows and 20.3 KB to a phone. If the form counts in 1000s, it is over the limit; if it counts in 1024s, it is under.

Which does a form use?

Forms almost never say. The safe approach is:

  • For a maximum, stay under the decimal value. 20 KB means at most 20,000 bytes.
  • For a minimum, stay above the binary value. 10 KB means at least 10,240 bytes.

That is what the “not sure” setting in our compressor does, with a further one percent of margin. A file made that way passes whichever way the form counts.

Reading the exact size

The exact byte count is the only number that cannot be misread. On Windows, right-click the file and choose Properties: the line “Size” shows both KB and the exact bytes. On a Mac, choose the file and use Get Info. On a phone, the file manager or gallery details usually show the size; the photo size guide has the steps. Our photo size checker shows all three numbers at once.

Note that Windows Explorer’s list view rounds sizes up to the next whole KB, so a 20,001-byte file is listed as 20 KB. The Properties window gives the exact figure.