Compress an Image to 20 KB
Hit exactly 20 KB or smaller, in your browser. The tool scales and then binary-searches the JPEG quality so the file lands under the limit instead of roughly near it.
Drop an image here or click to choose a file
Target: under 20 KB · processed in your browser, never uploaded
Why 20 KB?
Government and exam portals in several countries cap uploads at 20 KB, which usually means a small passport-style photo.
A single compression pass rarely lands on a specific size, because file size depends on image detail as much as on quality. This tool encodes repeatedly, narrowing the quality range each time, until the result is under 20 KB — then it stops, so you keep as much quality as the limit allows.
How it gets there
- Load — the image is decoded in the browser from the file you chose.
- Scale if needed — if the pixels alone cannot get under 20 KB, the longest edge is reduced step by step.
- Search the quality — JPEG quality is tested between 0.2 and 0.95 until the file fits.
- Download — the result is generated on your machine. Nothing was ever sent anywhere.
Other sizes
Compress an Image to 20 KB — FAQ
Will the quality be badly damaged?
What if my image cannot get that small?
Is the output a JPEG?
Is my image uploaded?
More image tools
All 12 other tools in this collection — free, no sign-up, nothing uploaded.