Compress an image to 20 KB

Drop images here

or click to choose - JPG, PNG, WebP, GIF or BMP. Batch supported.

Your images are processed on your own device and never uploaded to a server.

Getting a photo under 20 KB

  1. Drop the file in. 20 KB is already selected, so there is nothing else to configure.
  2. Read the dimensions in the result line, not just the percentage. If the pixel size dropped, that is the price of 20 KB rather than a fault.
  3. If the form only accepts JPG, convert a PNG to JPG first. Anything that is not already JPEG comes out of this tool as WebP, and many government portals refuse that extension.

20 KB is a hard number, and it is worth knowing exactly what it buys. 20 KB is 163,840 bits. A photograph that still reads as a photograph needs roughly one to two bits per pixel, so the entire budget covers somewhere in the region of 100,000 to 160,000 pixels - a frame around 400 by 300. No encoder setting keeps a twelve-megapixel photo at twelve megapixels for 20 KB. The information has to come from somewhere.

That is why the tool does two things rather than one. It first searches for the highest encoder quality that fits; if nothing fits at full resolution, it steps the dimensions down - 80%, 65%, 50%, 40%, 32% - and searches again at each step. So the number to watch in the result is the pixel size, not only the percentage saved.

Where 20 KB actually turns up: visa and passport photo portals, some civil-service and university application forms, a few job boards, and the avatar limits on older forum software. These are hard caps enforced by the receiving server, not style guidance. If the form accepts 50 KB, use 50 KB - the difference in how the photo reads is large, and nothing is awarded for submitting less than the ceiling.

If 20 KB is destroying the image

Related tools

Frequently asked questions

Why did the pixel dimensions shrink as well as the quality?
Because 20 KB cannot hold a large photo at any usable quality. When no encoder setting fits the budget at full resolution, the tool reduces the dimensions and searches again. A 4000 px photo may come back at 500 px; that step is the only way to reach 20 KB without the image dissolving into mush.
What file format do I get back?
JPEG input stays JPEG. PNG, GIF and BMP input comes out as WebP, which holds far more quality per byte. Watch out for forms that only accept .jpg: a WebP renamed to .jpg is still rejected when the server reads the file header. If the form demands JPG, convert to JPG first, then compress.
Can a 20 KB image still be printed?
Not really. At that size you are typically looking at a few hundred pixels across, which is fine for an on-screen thumbnail and poor on paper - a 25 mm photo at 300 dpi alone needs about 300 px. If the destination is print, 20 KB is the wrong target.
Does compressing remove the location data?
Yes. Re-encoding through the canvas writes a fresh file with no EXIF block, so GPS coordinates, device model and capture timestamp from the original are gone. For an identity document going to a portal you do not control, that is normally what you want.
Should I use 20 KB if the form allows more?
No. Every one of these targets is a ceiling, not a goal. If the limit is 100 KB, compressing to 20 KB throws away four fifths of the quality budget for nothing. Pick the largest value the receiving system accepts.