LocalToolkit
HomeImage Tools › Compress Image to 20 KB

Compress an Image to Under 20 KB

A 20 KB ceiling, reached by searching quality rather than guessing it.

🔒 Runs in your browser. Nothing is uploaded — verify it in the network panel, or disconnect and try again.

Who asks for a 20 KB limit

Signature and photograph uploads on several national examination and recruitment portals, plus small avatar images.

What 20 KB buys you in pixels

A workable ceiling for a 20 KB photograph is around 420 pixels on the long edge at a quality that still looks like a photograph rather than a mosaic. That figure is empirical: it comes from how much high-frequency detail survives compression at that byte budget, and it moves up for images with large flat areas and down for images full of foliage, fabric or hair.

Long edgeWhat to expect at 20 KB
Under 252 pxComfortable — the quality search will settle in the high end of the range
252–420 pxWorkable — expect mid-range quality, check gradients for banding
Over 630 pxResize down first, or the target cannot be met without visible damage

20 KB is the cap that catches people out most often, because a phone photo starts near 4 MB. Resize to roughly 420 pixels on the long edge before you compress and the quality search will succeed on the first or second step.

The limit that catches phone photographs

A modern phone photo starts near 4 MB, which is about two hundred times this ceiling — so no amount of quality reduction alone will reach it. Resize to roughly 420 pixels on the long edge first and the arithmetic changes completely: you are then asking for about 50,000 pixels at around 3 bits each, which is an ordinary working range for JPEG rather than an extreme one.

Why this runs in your browser

The file is read from your disk by the browser, decoded with the browser's own codecs, and re-encoded in this tab. No upload request is made, nothing is queued on a server, and closing the tab leaves no copy anywhere. You can verify this in the network panel while it works.

How to use it

  1. Drop the image on the drop zone.
  2. Set the target size to 20 KB.
  3. Let the quality search run — it reports the quality level it settled on.
  4. Check the resulting file is at or under 20 KB, then download.

Worth knowing

  • Target 20 KB permits roughly 420 pixels on the long edge at photographic quality.
  • The quality search encodes repeatedly and keeps the highest quality that fits.
  • Image content, not just dimensions, determines how far the quality can be pushed.
  • Switching to WebP at the same 20 KB budget usually looks visibly better than JPEG.

Limitations

  • Very tight targets require resizing as well as compressing — compression alone has a floor.
  • Downscaling permanently discards pixels; keep the original as your archive copy.
  • Re-compressing an already-compressed file spends quality twice.
  • Some portals also check pixel dimensions and file format, not just the byte count.

Frequently asked questions

How do I get a photo under 20 KB?
Resize it so the long edge is no more than about 420 pixels, then compress with the target set to 20 KB. The quality search then has room to find a setting that works.
Will the image still look good at 20 KB?
At 420 pixels or below, yes — it reads as a normal photograph. Push the dimensions higher and you will start to see blocking in smooth areas and ringing around sharp edges.
Why does the tool re-encode several times?
Because file size is not a function of quality alone — it depends on the image content. The only reliable method is to encode, measure the actual byte count, and step down until it fits.
Is anything uploaded to a server?
No. The file is read from your disk by the browser, decoded and re-encoded in this tab. There is no upload request, no queue and no server-side copy — which you can confirm by watching the network panel while the tool runs.
Related tools
Image CompressorImage ResizerCompress Image to 10 KBCompress Image to 30 KBImage Format ConverterPassport Photo Maker
Keep reading
How browser-only processing worksAll Image Tools toolsEvery tool on the site