Skip to content

Compress · 20 KB

Compress an image to exactly 20 KB

Shrink a JPG, PNG or WebP image down to 20 KB for strict portals and signature fields, at the best quality the size allows. Everything runs in your browser, so your photo is never uploaded.

Updated , written and tested by Rizwan Aslam

Compress your image to 20 KB

Preset to 20 KB. Change the number if your form asks for something else.

Nothing leaves this device
Quality strategy
Output format
Common targets
0 KBBefore
0 KBAfter
0 x 0Dimensions
100%Encoder quality

What compressing to 20 KB actually does

Twenty kilobytes is a strict limit, and honesty matters more than promises here: a big photo squeezed into 20 KB will show it. What saves the result is dimension discipline. At the small pixel sizes these forms actually display, 20 KB is workable; at full camera resolution, it never is.

The tool searches encoder quality downward until the file fits, then pads back to the exact byte. The measure behind the result is bits per pixel: file bits divided by pixel count. Here is what 20 KB gives you at three sizes.

Measured quality of a 20 KB file at three photo sizes
DimensionsPixelsBits per pixelResult
600 x 8000.48 MP0.34Heavy artifacts, clearly degraded
900 x 12001.08 MP0.15Heavy artifacts, clearly degraded
1800 x 24004.32 MP0.04Heavy artifacts, clearly degraded

The largest photo that still looks very good at 20 KB is around 390 by 520 pixels. That is why these limits pair with small dimension rules, and why signatures, which are small by nature, fit this size so well.

Getting a compressed 20 KB file accepted

  • Resize to the form's pixels first. At 20 KB this matters more than any other setting.
  • Prefer JPG for photos. PNG at large dimensions may not reach 20 KB at all; the tool offers JPG if the limit cannot be met.
  • For signatures, crop tight. Empty white margin wastes the few bytes you have; crop close to the ink.

The format behaviour described here follows the same rules set out in MDN's guide to image file types.

More rejection messages and what each one really means are in the guide to why forms reject photos.

Questions

How do I compress an image to 20KB?

Choose your image above, keep the target at 20 KB, and run the tool. It searches encoder quality downward until the file fits 20,480 bytes, then shows the exact result size before you download.

Why do forms ask for files as small as 20KB?

Older portals and high volume exam and application systems set tight limits to keep storage and bandwidth costs down. Twenty kilobytes is common for signature uploads and small photo fields, where the image is a record, not a portrait.

Will a photo still look acceptable at 20KB?

Only at small dimensions. At 600 by 800, 20 KB holds 0.34 bits per pixel, which shows artifacts. Resize to the small dimensions the form asks for, often a few hundred pixels, and the same 20 KB looks far better.

Can I compress a signature to 20KB?

Yes, and signatures are the easiest files at this size: mostly white background with dark ink compresses extremely well. The dedicated signature page covers the 10 KB to 20 KB range and the dimensions forms ask for.

Is 20KB exactly 20,480 bytes?

Yes when 1 KB means 1024 bytes, which is how this tool counts. For a strict maximum on a portal that counts 1000 bytes per KB, target 19 KB so the file passes under either reading.

Related tools