How to Compress an Image to 20KB for Online Forms (Without Making It Unreadable)

If an online form has ever rejected your photo with an error like "file must be less than 20KB", you know the frustration loop: resize, save, upload, rejected, repeat. Exam portals, visa applications, job sites and government forms are the usual culprits — and most of them won't tell you how to get there.

Here is the reliable way to hit an exact size target, and how to do it without turning your photo into a smudge.

Why 20KB is hard

A 20KB budget is tiny. A typical phone photo is 3–8MB — 150 to 400 times too big. Getting under the limit takes two levers working together:

  1. Dimensions — a 4000×3000 photo can't fit in 20KB at any quality. It has to be scaled down first. For a passport-style photo, something like 300×400 pixels is plenty for what the form actually needs.
  2. Compression quality — JPEG quality can be lowered until the file fits, but lower it too far and text or faces become blocky.

The trick is balancing the two: shrink dimensions enough that the compressor doesn't have to butcher the quality. Doing this by hand in an editor is guesswork — you save, check the size, adjust, save again.

The direct way: set the target size, let the tool solve it

Our free image compressor does the balancing automatically: you type 20KB (or any target), and it searches for the best combination of quality settings that lands under your limit — using MozJPEG, the same encoder class the big paid tools use. You see the result and its exact file size before downloading.

A few things worth knowing:

  • It runs entirely in your browser. Your photo — often an ID photo or a signature, exactly the kind of image you shouldn't hand to a random website — is never uploaded anywhere. There's no server on the other end.
  • No watermark, no sign-up, no daily limit.
  • It handles batches too, so a photo + signature + ID scan can be done in one go.

If your form wants a different limit, the same tool covers 30KB, 40KB, 150KB and any custom number.

Step by step

  1. Open the compress-to-20KB tool.
  2. Drop in your photo (JPG, PNG, HEIC and WebP all work).
  3. The 20KB target is pre-filled — adjust it if your form says otherwise.
  4. Compare the preview against the original. If the result looks too soft, crop the image tighter first (less area = more quality per kilobyte).
  5. Download and upload to your form.

Common form requirements, decoded

The form says What it usually means
"Photo: 10–20KB, JPG" ~200×230px portrait, JPEG, plain background
"Signature: 10–20KB" Sign on white paper, photograph it, crop tight, compress
"Max 100KB document scan" Scan at 150 DPI instead of 300, then compress
"Dimensions 300×400" Resize/crop to exactly that before compressing

When a form specifies both dimensions and a size cap, satisfy the dimensions first — the size target is then much easier to hit cleanly.

FAQ

Will compressing to 20KB ruin my photo? At sensible dimensions (around 300×400 for a portrait), 20KB keeps a face clearly recognizable. What ruins photos is compressing without resizing — forcing a huge image under a tiny cap is what creates the blocky mess.

JPG or PNG for small file sizes? JPG, almost always. PNG is lossless and can't reach aggressive targets for photos. Use PNG only when the form explicitly demands it or for line art like signatures — and even then, a high-quality JPG usually passes.

Is it safe to compress an ID photo online? Only if the tool doesn't upload it. Most "free online compressors" send your image to their server, and you can't know what happens to it afterwards. This one processes everything locally in your browser — you can even switch off your internet after the page loads and it still works.

The form rejected my 19KB file — why? Some portals check dimensions, format or even filename length as well as size. Re-read the error message; it's usually one of those three, not the kilobytes.