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.

Updated 30 November 20265 min readHow-to

“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.

LimitTry these dimensionsFormatNotes
20 KB200 × 230 pxJPEGSmall; check the form’s minimum dimensions
50 KB300 × 400 pxJPEGGood for small ID uploads
100 KB413 × 531 pxJPEG35 × 45 mm at 300 DPI
200 KB600 × 600 pxJPEGUS passport / visa square
500 KB1200 × 1200 pxJPEGRoom 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

  1. Open the photo resizer and compressor.
  2. Add your photo. It stays in your browser.
  3. Enter the width and height from the form. Pick the unit the form uses.
  4. Choose Target KB and enter 100 (or the limit).
  5. 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.

Frequently asked

Why does my image get rejected even when it is under 100 KB?
The portal may also check pixel dimensions, aspect ratio, file format, or the exact number of bytes. Some portals treat 100 KB as 100,000 bytes while others mean 102,400 bytes. Leave a small margin and match the pixel size exactly.
Should I lower the quality or the dimensions?
Lower the dimensions first if the form allows it. A smaller image at good quality usually looks better than a large image at minimum quality. If the form demands a specific pixel size, lower the JPEG quality instead and check the result.
Is PNG better for a 100 KB limit?
Usually no. PNG is lossless, so photos stay large. Use JPEG for photos and only use PNG when the form requires it or when you need transparency.
Can I just rename a PNG to JPG?
No. Renaming a file does not change its format. The portal will either reject it or fail to read it. Re-encode the image to JPEG.
What does DPI have to do with file size?
DPI changes how many pixels a physical size maps to. At 300 DPI, 35 × 45 mm is about 413 × 531 px. At 150 DPI it is about 207 × 266 px, which compresses much smaller. For screen uploads, the pixel dimensions are what matter.