Home › File & PDF Tools › Compress Image to 20KB

Compress Image to 20KB

Twenty kilobytes is the harshest limit on the internet — the signature box on a bank form, the ID photo on an exam portal — and your crisp 2 MB scan does not stand a chance of passing it unchanged. This free tool compresses an image to 20 KB or under at the best quality that fits, with bigger targets (50, 100, 200 KB or your own number) one tap away, all in your browser.

Drop an image here or click to browse — JPG, PNG, WebP, GIF or BMP
Target size
If quality alone is not enough

No image selected yet
Choose an image and the tool will fit it under 20 KB — or the target you set.

Nothing leaves your device. All processing happens in your browser — your image is never uploaded to any server.

How it works

At 20 KB there is no slack, so this tool works like a careful human editor would, only faster: it encodes, measures the real file, and adjusts — never guessing a quality setting and hoping.

Encode as JPEG → measure → binary-search the quality for the best fit under the target → if still over, shrink dimensions step by step (×0.85, ×0.72, ×0.61…) and search again → report the true final size, always

The search spends quality only where the target forces it. A simple signature scan may fit at high quality right away and keep every crisp edge; a busy photograph gets its quality lowered step by step, and if even the lowest quality overflows 20 KB, the dimensions come down one step at a time until it fits. Two rules protect you from bad surprises. A PNG that already fits — many signature PNGs do — is returned completely untouched, transparency and all. And if an extreme target genuinely cannot be reached, the tool says so plainly and shows the smallest file it could make, instead of handing you a download that quietly misses the limit and gets your form rejected.

Everything is verified from the file's own bytes: the tool checks the opening bytes of what you drop, so a document renamed to .jpg is refused with a clear message rather than a broken result, and files are compressed on your device, never uploaded — worth remembering when the image is your signature or ID.

Worked example

A candidate scans her signature for an exam application: signature.png, 1,200 × 500 pixels and 148 KB, against a portal limit of 20 KB. She drops the file in — the box confirms "✓ Chosen: signature.png" — and the 20 KB preset is already selected. Because a signature is simple black ink on white, the search finds a fit quickly: high clarity survives even at this size, the spec table shows the final size beside the 20 KB target with the quality and dimensions used, and she downloads signature-20kb.jpg. The portal accepts it on the first try. (Your final size and quality are measured from your own image — a detailed color photo will land closer to the limit and look softer, which the preview shows you before you download.)

Getting a usable picture out of 20 KB

Start small. The less the tool has to shrink, the better the result: if the portal wants a small photo, crop tightly to the subject first and remove empty margins — blank border is cheap to compress, but a tighter crop puts more of the 20 KB into the part that matters.

Clean scans compress better. A signature photographed on a shadowy desk wastes bytes on gray noise. Scan on white, or photograph flat in even light, and the same 20 KB buys you noticeably sharper edges.

Read the portal's other rules. Size is only one gate; many forms also specify pixel dimensions or JPG format. Hit those first, then finish here — and keep your full-size original, because 20 KB is a one-way trip.

FAQ

Why do forms demand images under 20 KB?

The strictest caps — 20 KB is a common one for signatures and small ID photos on government, banking and exam portals — come from systems built to store millions of tiny uploads cheaply and load pages fast on slow connections. The cap is about their storage, not your picture, which is why hitting it precisely with a tool beats crushing the image blindly in an editor.

Can every image really be compressed to 20 KB?

Almost any image can be brought under 20 KB, but not at any size or quality: a large, detailed photograph squeezed into 20 KB comes out small and soft, because the information has to go somewhere. Simple images — a signature, a passport-style portrait, a scanned form — compress to 20 KB and stay perfectly usable. If a target truly cannot be reached, this tool says so and shows you the smallest result it could make instead of pretending.

Should my signature be a JPG or PNG at 20 KB?

For a signature, PNG usually looks cleaner at tiny sizes because the sharp black-on-white edges are exactly what JPEG blurs — and a simple signature PNG is often under 20 KB without any compression at all, in which case this tool keeps it untouched. If the portal insists on JPG, or the PNG is too big, the JPEG version at 20 KB is still perfectly legible for a signature.

Will the compressed image still be accepted by the portal?

Portals typically check the file size, the format, and sometimes the pixel dimensions and DPI stated in their instructions. This tool guarantees the size target and outputs a standard JPEG (or your original PNG when it already fits). Check the portal's dimension rules too — if it wants, say, 200 × 230 pixels, crop or resize to those dimensions first, then compress here.

Is my image uploaded to a server?

No. The compression happens in your browser, on your own machine — signatures and ID photos are exactly the files you should never hand to a stranger's server. Your image is never uploaded, stored, or shared; close the tab and it is gone.

Disclaimer: Files are processed in your browser and never uploaded. Compression re-encodes your image and is not reversible — keep the original, and check the compressed image (and the portal's full requirements) before submitting it anywhere official.