You have a compliant photo, you go to upload it, and the portal refuses it for being 380 KB when the maximum is 240 KB. This is one of the most common last-mile failures on a digital application, and it is entirely mechanical — nothing is wrong with the photograph.
Some limits look absurdly low because they were set when the forms were built and never revised. The Chinese COVA form's 40–120 KB window and the DS-160's 240 KB ceiling both date from an era of much smaller uploads. They are still enforced.
The published limits
| Portal | File size | Also note |
|---|---|---|
| U.S. visa (DS-160) | Under 240 KB | 600 x 600 to 1200 x 1200 px, JPEG, colour |
| U.S. online passport renewal | 54 KB to 10 MB | 600 x 600 px minimum; must be an unedited original |
| UK passport (online) | 50 KB to 10 MB | At least 600 x 750 px |
| Chinese visa (COVA) | 40 KB to 120 KB | 354–420 x 472–560 px — a maximum resolution as well as a minimum |
Note the minimums. They exist to catch photos so heavily compressed that detail is gone, and they mean you cannot simply crush the file until it fits: a 30 KB file fails the UK's 50 KB floor even though it is comfortably under the ceiling. You are aiming into a window, not under a bar.
How to shrink a photo without wrecking it
In order of what to try. The first costs you almost nothing; the last is a real quality loss.
- Lower the JPEG quality, not the pixel count. JPEG quality is a dial, and the range between about 95 and 80 is nearly invisible on a portrait while often halving the file. This is the correct first move and usually the only one needed.
- Export at 300 DPI instead of 600. If the portal's minimum is 600 x 600 px, a 600 DPI export at 2 x 2 inches gives 1200 x 1200 — four times the pixels and roughly four times the bytes, for no benefit if you are not printing it. Halving the resolution to the portal's actual requirement is free.
- Check you are not carrying a huge original. Some cameras embed a full-size preview and extensive metadata. Re-exporting the crop rather than editing the original file discards that.
- Reduce pixel dimensions to the portal's minimum — but not below it, and only after the first two steps. Going to the floor leaves no margin if the portal recompresses.
- Do not convert to PNG. A PNG of a photograph is typically several times larger than the equivalent JPEG, and most portals require JPEG anyway.
What not to do: run the file through a generic "image compressor" that also resizes, sharpens or strips colour, and never use a tool that retouches while compressing. For U.S. online renewal in particular, an edited photo is refused, and heavy-handed compression artefacts can themselves read as a quality failure.
The 40 to 120 KB case
China's COVA window is the tightest in common use, and it is a genuine squeeze: the resolution ceiling of 420 x 560 px caps how much detail you can carry, while the 40 KB floor means you cannot compress freely either. The workable approach is to export at the middle of the pixel range — around 390 x 520 px, close to 33 x 48 mm at 300 DPI — at JPEG quality in the high eighties, then check the resulting size and adjust the quality up or down. Aim for the middle of the KB window, near 80 KB, so a portal that recompresses on receipt does not push you out of range.
Doing it automatically
Where an authority publishes numeric limits, they are applied on export: U.S. online renewal produces a file inside the 54 KB–10 MB range, and the resolution follows what the portal will accept rather than the largest number available. Choose the document rather than a generic size and the file-size question mostly stops existing.
Frequently asked questions
What file size should a passport photo be?
It depends on the portal, and the limits are windows rather than ceilings. The DS-160 requires under 240 KB; U.S. online passport renewal accepts 54 KB to 10 MB; UK online applications 50 KB to 10 MB; the Chinese COVA form only 40 KB to 120 KB. A file that is too small fails just as surely as one that is too large.
How do I reduce my passport photo to under 240 KB?
Lower the JPEG quality rather than the pixel count — going from quality 95 to about 85 is visually near-identical on a portrait and often halves the file. If you exported at 600 DPI, re-export at 300 DPI, which cuts the pixel count fourfold. Only reduce pixel dimensions after that, and never below the portal's stated minimum.
Why does a portal have a minimum file size?
To reject photos compressed so heavily that facial detail is lost, which defeats biometric comparison. It is why you cannot simply compress a file until it fits — the UK's 50 KB floor and China's 40 KB floor both refuse an over-compressed image.
Should I convert my photo to PNG to improve quality?
No. For a photograph, PNG produces a much larger file than JPEG at equivalent visual quality, and most portals require JPEG specifically. Keep it as a JPEG and control the size with the quality setting.
Does compressing the photo count as editing it?
No — resizing and JPEG compression are expected of you and are not what the editing bans target. Those bans, such as the U.S. rule for online renewal, target altering the image content: replacing the background, retouching skin, reshaping features or generating the photo. Compress freely; do not retouch.