Fairsize

KB, kB and KiB: why a file under the limit still fails.

Updated 5 November 2026. Every number links to its official source below.

The short answer

A kilobyte is 1000 bytes. A kibibyte (KiB) is 1024 bytes. Many systems write "KB" for either one. A form that says 240 kB means 240,000 bytes, but a file your computer shows as 235 KB can be 240,640 bytes, which is over. Check the byte count, and stay a little under the limit.

The units

NameWrittenBytes
KilobytekB (often KB)1,000
KibibyteKiB (often shown as KB)1,024
MegabyteMB1,000,000
MebibyteMiB (often shown as MB)1,048,576

The gap is about 2.4% at KB and 4.9% at MB (our arithmetic). It matters when a file sits close to the limit.

An example

The State Department's digital image page says a visa photo must be 240 kB or less. That is 240,000 bytes. A tool that counts 1024 per KB shows a 240,000-byte file as 234.4 KB. A file shown as 235 KB is 240,640 bytes (235 × 1024), which is over the limit even though 235 is less than 240.

Other reasons a file under the limit fails

  • It is under a smallest size. The US online renewal wants at least 54 KB, the UK 50 KB, Canada 200 KB, and the NZeTA 512 KB.
  • The US visa has a compression rule of 20:1, which sets a floor of 54,000 bytes at 600 × 600 pixels (our arithmetic).
  • The file type is wrong. A portal that asks for JPEG may refuse a PNG, even with a .jpg name.
  • The shape or pixel size is wrong. A square is needed for several forms.

How to stay safe

  1. Open the file's properties and read the size in bytes, not the rounded KB. Windows shows it in brackets after the KB figure.
  2. Compare it with the limit in bytes: 1 kB or KB is 1,000 bytes and 1 MB is 1,000,000. If the file is within about 5% of the limit, shrink it a little more.
  3. Use the resize to KB tool. It counts 1000 bytes per KB, the stricter reading, and picks the best JPEG quality inside your range.
  4. Run the file through the checker for your form. It shows the real size and type.

Official sources

Rules change. If the official page differs from this summary, follow the official page, and tell us so we can fix it. Every check is listed in the rules log.

Questions

Is 1 KB 1000 or 1024 bytes?

Both are used. The standard prefix kilo means 1000, and KiB means 1024. Windows labels 1024 bytes as KB. We count 1000 bytes per KB.

Why does my phone show a different size than my computer?

Different systems round the number and may use different units. The size in bytes is the same in both places, so compare that.

How far under the limit should I aim?

About 5% under is enough to pass whichever way the form counts. Stay above any smallest size too.