KB, kB and KiB: why a file under the limit still fails.
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.
Do it now
The units
| Name | Written | Bytes |
|---|---|---|
| Kilobyte | kB (often KB) | 1,000 |
| Kibibyte | KiB (often shown as KB) | 1,024 |
| Megabyte | MB | 1,000,000 |
| Mebibyte | MiB (often shown as MB) | 1,048,576 |
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
- Open the file's properties and read the size in bytes, not the rounded KB. Windows shows it in brackets after the KB figure.
- 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.
- Use the resize to KB tool. It counts 1000 bytes per KB, the stricter reading, and picks the best JPEG quality inside your range.
- Run the file through the checker for your form. It shows the real size and type.
Official sources
- Digital image requirements (U.S. Department of State)Checked 21 October 2026. Read through an Internet Archive copy captured 2026-01-09; the live page blocks automated browsers.
- Photo composition template (U.S. Department of State)Checked 21 October 2026. Internet Archive copy captured 2026-01-05.
- Photo requirements for U.S. visas (U.S. Department of State)Checked 22 October 2026. Internet Archive copy captured 2025-12-30.
- Online passport renewal photo requirements (U.S. Department of State)Checked 5 November 2026. Internet Archive copy captured 2026-05-16 (page "Last Updated: March 19, 2026"). The live page blocks automated browsers, so a change after that capture cannot be ruled out.
- Photos for passports (GOV.UK)Checked 22 October 2026. GOV.UK content last updated 2026-09-09.
- Passport photos (Government of Canada)Checked 21 October 2026.
- NZeTA: Visa and NZeTA photos (Immigration New Zealand)Checked 23 October 2026. The "Visa and NZeTA photos" panel on the NZeTA page.
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.