About CompressTo20KB
CompressTo20KB is a free, browser-based image compression tool built for developers, designers, and anyone who cares about page weight.
Our Mission
Images are still the heaviest thing most pages ship. We built CompressTo20KB to make size-targeted compression available to anyone with a browser — for free, and without asking anybody to hand their files to a server first.
How It Works
Everything runs in your browser using the Web APIs for decoding and encoding images. Your files are processed locally on your device — they never leave your computer, never touch our servers, and are never stored anywhere.
In Target KB Mode the tool runs a binary search over encoding quality, keeping the best result that still fits under your number. It can output WebP, AVIF, JPEG or PNG, and it caps the longest side at 4096 px while searching, so a very large master is downscaled as well as re-encoded.
What Makes It Different
- Truly private: zero server uploads — compression happens locally on your device
- Size as the control: type the KB number a form asks for instead of guessing at a slider
- Modern formats: WebP and AVIF output, not just JPEG/PNG
- Batch processing: up to 50 images in one run, with a ZIP download
- No account required: open the tool and start compressing
Built for Heavy Pages
Hero images and product grids are usually the largest elements above the fold, which makes them the first place to look when a page feels slow. Shrinking the files you ship is one input among several — scripts, hosting and themes matter too — so treat it as something you measure, not a trick that fixes a score by itself.
Frequently Asked Questions
What is CompressTo20KB?
A free image compressor that runs entirely in your browser. You give it a target size in kilobytes, it re-encodes the file at the highest quality that still fits under that number, and it hands the result back to you. Nothing is uploaded, so the images never leave your device.
Is CompressTo20KB really free?
The compressor itself is free: no account, no watermark, no queue and no upload quota. You can add up to 50 files in one batch and set any target between 5 and 5000 KB. Non-intrusive advertising pays for the site.
What makes it different from other compressors?
Two things. First, the processing is local: the image is decoded and re-encoded on your own machine, so there is no server copy of a passport photo or an ID to leak or retain. Second, the control you get is a file size rather than a quality slider - Target KB Mode searches the encoding until the output fits the number you typed, and a file that is already smaller than that number comes back unchanged.
Contact
Have questions, feedback, or a feature request? We would love to hear from you. Visit our Contact page.