Skip to content
TNToolsNexus

Compress an image to an exact size

Get a photo under 20 KB, 50 KB, 100 KB, or any exact cap — best quality that fits, with every attempt shown. Free and private.

Drop a JPG, PNG, or WebP here, or

Output is a JPG at the best quality that fits your size cap

Your image never leaves your browser — the size search runs on your device.

Give it a number — 20 KB, 50 KB, 100 KB, anything — and get your photo back just under it, at the best quality that fits: the tool walks a quality-then-dimensions ladder, shows every attempt, and never pretends an impossible target succeeded.

How to compress an image to a KB target

  1. Drop your image (JPG, PNG, or WebP — output is always JPG).
  2. Set the target or tap a preset: 20 / 50 / 100 KB.
  3. Compress, check the attempt log, download the verified file.

The passport-photo problem

These caps live on the forms that matter most: exam registrations wanting a photo “20 KB to 50 KB”, visa portals capping documents at 100 KB, job sites rejecting anything over 200 KB. A phone camera produces 3–8 MB — a hundred times over budget — and guessing your way down with a generic compressor means upload, reject, retry. This tool aims at the number directly: quality drops first (photos tolerate a lot before it shows), dimensions shrink only when quality alone can’t get there, and the search stops the moment the file fits.

Reading the attempt log

Every rung it tried is listed with the size it produced — “quality 70% → 84 KB, quality 60% at 90% dimensions → 47 KB ✓”. That’s your receipt that the result is the best your cap allows, and your diagnosis when a target is genuinely out of reach (the fix is usually to crop to just the subject first, which spends your KB budget on what the form actually needs). No hard target? The plain compressor with its live slider is simpler; exact pixel dimensions instead of file size is the resizer’s job.

Common size caps

Three caps cover most upload forms. Once your image is loaded, tap a preset — or open the tool with one already selected: 20 KB, 50 KB, 100 KB.

20 KB — photo and signature pairs

The tightest cap real forms enforce: exam registrations and government portals that want a photo and a signature, each under a hard per-file limit. Those forms display images at a few hundred pixels, and a 400 px JPG at moderate quality lands well inside the budget — the rejection loop comes from feeding in a 4000 px camera photo and hoping quality reduction alone will do it. Signatures are the easy half: white paper and pen strokes are what JPEG compresses best, so crop tightly and spend nothing on margins. A detailed document scan can’t survive 20 KB; if that’s what you have, the portal almost certainly meant its photo field.

50 KB — passport, visa, and ID photos

The number visa portals, ID applications, and registration systems ask for most. Crop first: a head-and-shoulders crop puts the budget into your face rather than the background — the biggest quality win available. Direct digital photos beat photographed prints, plain backgrounds beat busy ones, and even lighting compresses better than harsh shadows. Phone portraits start at 3–8 MB, so expect the search to step dimensions down toward the few hundred pixels portals actually display.

100 KB — profile photos, listings, page speed

The generous end: roughly a 1000 px image at good JPEG quality, larger than a profile slot, a marketplace thumbnail, or an email signature will ever render — so the ladder usually stops at its first or second rung with dimensions untouched. It is also a sensible per-image budget for fast web pages; for a whole folder, the bulk resizer handles the dimension side in batch.

Private by design

ID photos, signatures, and document scans are exactly what these portals ask for — and exactly what shouldn’t transit anyone’s server. Every attempt in the search runs on your device; nothing is uploaded or kept.

Last updated:

Frequently asked questions

How does it hit the target without ruining the photo?
It tries settings from gentlest to strongest — first lowering JPEG quality alone, then progressively reducing dimensions too — and stops at the FIRST setting that fits. You always get the best quality your cap allows, and the attempt log shows exactly what it took.
Why is the output always JPG?
Because size-capped uploaders are photo pipelines: passport photos, signatures, scanned documents. JPG is the format they all accept and the one that compresses photos hardest. PNG or WebP inputs are converted automatically (transparency becomes white).
What are these tiny caps for anyway?
Application portals: exam registrations and government forms commonly demand photos under 20–50 KB and signatures under 10–20 KB; job and university systems often cap at 100–200 KB. The limits are legacy, but the rejection message is real.
What if the target is impossible?
For extreme cases (a huge panorama to 5 KB) the tool reports the smallest readable result it could reach instead of pretending. Usually cropping the image to just the needed area first makes tight targets easy.
Is my photo uploaded anywhere?
No — the entire search runs in a background thread in your browser. Passport photos and signatures never touch a server.

Related tools

Image Compressor

Shrink JPG, PNG, and WebP file sizes with a live quality slider — see the new size before you download. Nothing is uploaded.

Image Resizer

Resize images to exact pixel dimensions or by percentage — lock the aspect ratio, pick the output format, and download. Free, private, in your browser.

PNG to JPG

Convert PNG images to JPG in your browser — pick the quality, see the size drop, and download. Transparency becomes white.