Skip to main content

Compress an Image to 20 KB

Bring an image under 20 KB (20,480 bytes). This is a very small budget, so it works best for signatures, small ID photos and thumbnails rather than full-size photos.

Upload an image to compress

Drag and drop files here, or click to browse

Your images are processed in your browser and are not uploaded to Image York.
You retain full ownership of your images. Image York does not store or claim rights. View License

What fits in 20 KB

Twenty kilobytes is 163,840 bits. Divide that by the number of pixels and you get the average number of bits the encoder can spend on each pixel:

DimensionsPixelsBits available per pixel
200 x 80 (signature)16,00010.2
300 x 400 (small photo)120,0001.37
600 x 600360,0000.46
1200 x 12001,440,0000.11

The fewer bits each pixel gets, the more blocky and smeared a JPG looks. That is why a signature fits easily, a passport-size photo usually fits with acceptable quality, and a full phone photo has to be shrunk heavily.

How the tool gets under 20 KB

The tool first draws your image at full size (anything longer than 4096 pixels on its long side is reduced to 4096 px) and encodes it at quality 0.8. If that file is already at or under the target (and not larger than your original), you get it straight away. If not, it repeats up to 10 times. On each pass it multiplies the quality by 0.95 (0.85 for PNG) and, because the first attempt was too big, also shrinks the width and height to 95% of the previous pass.

Ten passes is the limit. After all ten, the width and height have dropped to about 60% of where they started and the quality setting to about 0.48. If the file is still too big at that point, you get the last attempt and a note saying the target was not reached.

Tips for signatures and ID photos

  • Crop tightly. White margins around a signature still cost bytes. Use the Crop tool first.
  • Use the dimensions the form asks for. Many forms specify both size and pixels (for example a fixed width and height). Set those with the Image Resizer, then compress here.
  • Pick JPG if the form says JPG. WebP fits more detail in 20 KB, but a form that only accepts JPG will reject it.
  • Scan or photograph on plain white. Paper texture and shadows are detail the encoder has to store.

If it ends up over 20 KB

Large photos can still be above 20 KB after ten attempts. The tool tells you when that happens. Resize to a few hundred pixels wide and run it again; at that size 20 KB is usually enough. If you need a bit more room, the 50 KB page uses the same method with a larger budget.

Where the processing happens

Compression runs in your browser. Signatures and ID photos are not uploaded to Image York.

Questions about this tool

Can I get a full-resolution phone photo under 20 KB?

Not with acceptable quality. The tool will shrink it as part of its attempts, but resizing to the dimensions you actually need first gives a cleaner result.

My signature scan is too big for the form. How do I get it under 20 KB?

Crop the signature tightly first with the Crop tool so no empty paper is left, then open it here and press Compress Image. A signature usually fits under 20 KB easily once the margins are gone.

My photo looks very blurry at 20 KB. Can I fix that?

Twenty kilobytes is a very small budget for a photo. Resize it to the pixel size the form asks for, often a few hundred pixels wide, then compress. If the form allows more, try the 50 KB page.

The form asks for exact pixel dimensions and under 20 KB. In which order do I do it?

Resize to the exact dimensions first with the Image Resizer, then compress here. That way the tool only has to lower the quality, and your dimensions stay as the form wants.

The form only accepts JPG. Which format should I choose?

Choose JPG in the output format menu. WebP can fit a little more detail into the same size, but a form that only accepts JPG will reject a WebP file.