📦
Image ToolsJuly 16, 20268 min readBy BrowseryTools Team

How to Compress an Image to 20KB (or Any Size) Without Losing Too Much Quality

Why forms cap photo uploads at 20-100KB, how honest target-size compression works, and a walkthrough of shrinking any image to an exact byte budget — free, in your browser, no upload.

compress image to 20kbimage compressiontarget sizereduce photo sizeapplication form photono upload

You have found the form. You have the photo ready. You click upload, and it comes back rejected: "File must be under 20 KB." Twenty kilobytes is smaller than most phone camera thumbnails, let alone a full photo — so now you are stuck resizing an image in some app you do not normally use, guessing at settings, and re-uploading over and over until the number finally comes in under the limit.

You can skip the guesswork. The Compress Image to 20KB tool does the searching for you: you drop in a photo, it tells you exactly how small it got it and how, and you download the result — all inside your browser tab, nothing uploaded to a server.

Why So Many Forms Cap Uploads at 20–100 KB

Strict size limits are not arbitrary. Government exam portals, visa and passport applications, job boards, and university admission systems process enormous volumes of submissions. A 20 KB cap on a photo (versus the 3–8 MB a modern phone camera produces by default) keeps storage and bandwidth costs predictable across millions of applicants, and it forces every submission into a consistent, quickly-loadable size for the reviewer's side.

The problem is that these portals rarely explain how to hit that number — they just reject the file and leave you to figure it out. That is the gap this tool closes.

How Target-Size Compression Actually Works

A normal image compressor asks you to pick a quality percentage and hope the resulting file happens to land under your limit. Target-size mode flips that around: you tell it the byte budget you need, and it works backward to find a setting that fits.

Under the hood, it runs a quality search at the image's current dimensions — encoding the photo at different JPEG/WebP quality levels and narrowing in on the highest quality that still stays under your target. If even the lowest usable quality is still too large at full resolution — which happens with very small targets like 20 KB on a high-megapixel photo — the tool steps the image's dimensions down and repeats the search at the smaller size. It keeps doing this until it finds a fit or runs out of room to shrink further.

Being honest about the edge case: on a very tiny target size like 20 KB combined with a very large or detail-heavy source photo, there is a floor to how small the tool will shrink the image (so a passport photo does not turn into a handful of blurry pixels). If that floor is hit before the byte target is, the tool gives you its best-effort result — the smallest, cleanest version it could produce — rather than silently producing something unusable. In practice, for typical phone photos, hitting 20–100 KB is easy; it is only extreme cases (huge originals, tiny targets) where you will see the best-effort fallback kick in.

Walkthrough: Getting a Photo Under 20 KB

Open the Compress Image to 20KB tool and drop in your photo — a JPG, PNG, or WebP, straight from your camera roll or a scan. The target size is already set to 20 KB, so there is nothing to configure. The tool decodes the image locally, runs the quality/dimension search described above, and shows you the resulting file size, dimensions, and the quality level it landed on.

If the preview looks acceptable, download the result and upload it to the form. If you need a different target — some portals ask for 50 KB, others for 200 KB — you do not need to fiddle with sliders; use the matching preset page instead, and it will run the exact same search logic against your new target.

The Whole Compress Family

Different portals cap uploads at different sizes, so there is a dedicated page for each common limit — each one is the same engine, pre-set to a different byte budget:

Compress Image to 20KB for the strictest exam and application portals, Compress Image to 50KB for job boards and email attachments, Compress Image to 100KB for most general upload limits, Compress Image to 200KB for CMS uploads and listings, Compress Image to 500KB when you want to keep more visible detail, and Compress Image to 1MB for high-resolution photos that just need to be reasonable for email or sharing.

If your source file is already a JPEG and you know that is what the destination wants, the JPEG-specific presets — Compress JPEG to 50KB, Compress JPEG to 100KB, and Compress JPEG to 200KB — skip the format decision and go straight to the size search.

Signatures deserve their own mention. Most application forms that ask for a scanned signature want a small file with a tight byte cap, but a signature scanned at full camera resolution can easily be several megabytes. The Compress Signature to 20KB page is tuned for exactly that case — resize and compress a signature photo down to the 10–20 KB range that most forms expect, without the strokes turning into mush.

Everything Stays on Your Device

Every one of these tools runs the compression in your browser using the Canvas API — your photo is decoded, resized, and re-encoded locally. It is never sent to a server, which matters for the exact kind of document you are usually compressing here: a passport photo, a signature, an ID scan, or another piece of identifying paperwork you would rather not hand to a third party just to shrink a file.

Try It Now

Open Compress Image to 20KB, drop in your photo, and download the result. If 20 KB is not your exact target, pick the matching preset from the list above — the same honest, on-device search runs every time.


🛠️

Try the Tools — 100% Free, No Sign-Up

Everything runs in your browser. No uploads. No accounts. No ads.

Explore All Tools →