ExactSize

Compress an image to 20 KB

Pick a photo and get a JPG under 20 KB, at the best quality that fits. If your form also has a minimum size or exact pixels, set those too.

Target size
Exact pixels optional

What fits in 20 KB

20 KB is a small file. It's enough for a clear face photo or a signature, not for a detailed landscape. Most forms that ask for 20 KB expect a small passport-style photo or a scanned signature.

As a rough guide, a photo saved at 20 KB is usually somewhere around 300–500 pixels wide. Rough widths from our own tests: four sample photos saved as JPEG at quality 80. Busy, detailed photos need fewer pixels to fit; plain backgrounds fit more.

Getting a better result at 20 KB

  • Crop to the part that matters first. A tight crop of a face keeps more detail at 20 KB than a full-body shot.
  • A plain, light background compresses far better than a busy one.
  • If the form also gives pixel dimensions, enter them under Exact pixels so you get both right in one go.

How it works

The tool saves your photo as a JPG at high quality and checks the size. If it's too big, it searches for the highest quality that still fits. If even 60% quality is too big, it shrinks the pixel size a step at a time and searches again, so you don't end up with a blocky picture.

Questions

Is my photo uploaded anywhere?

No. The compression runs in your browser using your own device. The photo never leaves it, and nothing is stored once you close the tab.

Is 1 KB 1,000 bytes or 1,024 bytes?

Both are in use, and forms rarely say which. To be safe, the tool keeps the file under 20 × 1,000 bytes, which also passes if the site counts 1 KB as 1,024 bytes. For a minimum it does the opposite and uses 1,024.

Why does my photo look smaller in pixels afterwards?

Lowering JPEG quality only goes so far before the picture turns blocky. Past that point the tool keeps quality at 60% or above and reduces the pixel size instead, which looks better at the same file size.

What does padding to a minimum do?

Some forms reject files that are too small. Padding adds a hidden comment block inside the JPEG to bring it up to the minimum. Image viewers ignore it, so the picture looks exactly the same.

Can I use PNG or HEIC files?

You can start from JPG, PNG or WebP. The result is always a JPG, which most forms ask for. HEIC (iPhone photos) works only in browsers that can open it, such as Safari.

Other sizes