Compression
Resize an image to 100 KB.
A file-size limit is not a quality setting. Here is how to hit it without making the photo useless.
“Photo must be under 100 KB.” It is one of the most common lines on a government form, and one of the most annoying. The number has nothing to do with how the photo looks. It is the size of the compressed file on disk.
You can hit almost any KB limit if you are willing to ruin the photo. The goal is to hit it while keeping the face recognisable and the required dimensions intact.
File size is a product of three things
- Pixel dimensions — a 4000 × 3000 px photo has far more data than a 413 × 531 px photo.
- Compression quality — JPEG quality trades detail for size. Quality 90 is much larger than quality 60.
- Format — JPEG is efficient for photos. PNG is lossless and usually much larger. WebP can be smaller than JPEG but is not always accepted.
DPI is a conversion factor between physical size and pixels. It does not magically change the file size on its own; it changes how many pixels you get for a given millimetre size.
Starting points for common limits
These are practical starting points for a portrait photo. The actual result depends on the image content: a busy background compresses worse than a plain one.
| Limit | Try these dimensions | Format | Notes |
|---|---|---|---|
| 20 KB | 200 × 230 px | JPEG | Small; check the form’s minimum dimensions |
| 50 KB | 300 × 400 px | JPEG | Good for small ID uploads |
| 100 KB | 413 × 531 px | JPEG | 35 × 45 mm at 300 DPI |
| 200 KB | 600 × 600 px | JPEG | US passport / visa square |
| 500 KB | 1200 × 1200 px | JPEG | Room for a high-quality crop |
If the form gives exact dimensions, use those instead of the table. The table is only for cases where the form gives a KB limit but no pixel size.
Do it in OnDiv
- Open the photo resizer and compressor.
- Add your photo. It stays in your browser.
- Enter the width and height from the form. Pick the unit the form uses.
- Choose Target KB and enter 100 (or the limit).
- Use Fit so the face is not cropped, then process and download.
The tool searches for the highest JPEG quality that fits under the target. If it cannot reach the target at the requested dimensions, it says so instead of silently producing a file that will be rejected.
If it is still rejected
- Check the exact pixel size. Many portals reject a photo that is 413 × 532 instead of 413 × 531.
- Check the format. Some portals say “JPEG” and reject WebP or PNG even if the extension looks right.
- Check the KB definition. 100 KB can mean 100,000 bytes or 102,400 bytes. Aim a little lower.
- Check the filename. Avoid spaces, brackets, and non-English characters. Use a short name like
photo.jpg. - Check the content rules. Background, head size, glasses, and recency can fail independently of the file size.
What not to do
Do not rename a PNG to JPG, zip a JPEG, or screenshot the photo to “compress” it. Those tricks either do not change the format or add another generation of quality loss. Re-encode the image properly, at the dimensions the form asks for.
A good rule: if the face is still clearly recognisable at 100% zoom and the file is under the limit, you are probably fine. If the face looks blocky, the dimensions are too large for that KB target.