Compress image to 20 KB

20 KB is one of the quick buttons and is already selected. Add your image and the tool finds the highest quality that fits.

or drop an image hereYou can also paste with Ctrl+V or ⌘V. JPG, PNG, WebP, BMP, GIF, HEIC or AVIF.
Target size

1 KB = 1,000 bytes, so results also fit sites that count 1 KB as 1,024 bytes.

Keeps JPG and WebP. A PNG without transparency is saved as JPG.

Your result will appear here. Nothing is uploaded: the file stays on your device.

Steps to a 20 KB file

  1. Add the image: drop it on the box, choose it, or paste it with Ctrl+V or ⌘V.
  2. Check that 20 KB is highlighted.
  3. Choose a format under Save as (see the guide below).
  4. Press Compress image. The old and new size and dimensions appear under the preview.

Photo or graphic? Pick the format first

Keeping the same width and height

Need a fixed pixel size and a small file? Resize first with the image resizer, then untick Allow smaller dimensions if needed here. The tool will only lower quality, going below 50% with a warning if it must; a tighter crop or WebP may then help.

Settings explained

Target size
20 KB is on. Other buttons give 50, 100 and 200 KB; Custom takes any number in KB or MB.
Save as
Auto, Same as original, JPG, WebP or PNG. Auto leaves JPG and WebP alone and saves a PNG with no transparent pixels as JPG.
Allow smaller dimensions if needed
On by default. Quality is tried down to 50% first; only then is the picture scaled down, step by step.
Background for transparent areas
Shows up when transparent pixels are about to be saved as JPG. White by default.

Limits

  • When the tool reports success, the file is never over 20 KB. It aims for 18 to 20 KB.
  • A file already under 20 KB in the format you picked is handed back untouched.
  • Animated GIFs lose their animation; only one frame is saved.

Questions

My photo is now much smaller in pixels. Why?

At 50% quality it was still over 20 KB, so the width and height were reduced too.

Should I pick JPG or WebP for 20 KB?

Try both and compare the previews. If the place you upload to only takes JPG, use JPG.

Does compressing to 20 KB remove location data?

Yes. The new file does not carry over camera details or GPS position.

Can I get a 20 KB PNG with a clear background?

Often, for simple graphics: choose PNG. A photo-like PNG with transparency may fit better as WebP.

Where is the 50 KB option?

50 KB is one of the buttons in this tool, and it has its own page: compress image to 50 KB.