Compress Image to 20KB, 100KB or Any Size
Compress a JPG, PNG, or WebP to 20KB, 100KB, or any exact kilobyte size — free, in your browser, with nothing uploaded. Instead of dragging a quality slider and re-checking the result, you type the limit a form demands and the engine searches the quality range automatically until the image fits at or under it.
How to compress an image to a target size with Allypdf
- Load the JPG, PNG, or WebP images that need to meet a size limit.
- Tap the 20KB or 100KB preset, or type any exact kilobyte target.
- Run the compression — a quality search finds the best fidelity that fits the target.
- Download the result (single file, or a ZIP for batches) and check the achieved sizes.
Why "no upload" matters here
Images with hard kilobyte caps are almost always identity images: passport photos for visa portals, signatures for exam registrations, ID scans for verification systems. Uploading those to an unknown compression service to satisfy a 20KB rule is exactly backwards. Allypdf runs the whole encode-measure-repeat loop on your own device — the photo that finally fits the form never left your browser.
Common uses
- Shrink a passport photo to the 20KB cap an exam or visa registration form enforces.
- Compress a scanned signature under 20KB for banking and government portals.
- Get product or listing photos under a marketplace's 100KB image limit.
- Reduce email signature images or web thumbnails to an exact performance budget.
Frequently asked questions
How do I compress an image to 20KB?
Load your image, click the 20 KB preset, and press Compress. The engine binary-searches the quality range — encoding and measuring locally — until it finds the highest quality that fits at or under 20KB, stepping the resolution down automatically only if quality alone cannot get there.
How do I compress a photo to 100KB without visible quality loss?
Use the 100 KB preset. Because the search always picks the highest quality that satisfies the target, a typical photo lands at 100KB with little to no visible degradation. The result screen confirms the exact final size.
Why won't my PNG shrink to 20KB?
PNG is lossless — it has no quality setting — so a PNG can only get smaller by reducing resolution. For aggressive targets, switch the output format to JPEG or WebP: photographic content compresses far better there, and the tool renames the file extension for you.
Which formats can I compress to an exact size?
JPEG, PNG, and WebP are accepted as input, and you can keep the original format or convert the output to JPEG or WebP. Those are the formats browsers can re-encode with precise quality control, which is what exact-size targeting requires.
Are my photos uploaded during compression?
No. Every encode and measurement runs in your browser via the HTML5 Canvas engine. ID photos and signatures never travel to a server, and closing the tab removes every trace.
Can I compress multiple images to the same target at once?
Yes. Add several files and each one gets its own independent quality search against the same kilobyte target, so a screenshot and a photo both land under the limit. Batches download as a single ZIP. Anonymous visitors have a daily free allowance; a free account removes the cap.
Related tools
- Compress Image — Reduce image file size free without visible quality loss. Compression runs in your browser — photos never leave your device.
- Compress PDF to 500KB (or Any Target Size) — Shrink a PDF to 500KB — or any KB target you type — free. Quality is auto-tuned 100% in your browser, so your file is never uploaded. No sign-up, no watermark.
- Resize Image — Resize images to exact pixels or percentages free. Runs in your browser so photos are never uploaded — fast and private.
- Convert Image to WebP — Convert JPG or PNG to WebP free for faster websites. In-browser conversion, no upload, no quality tricks.