How to compress an image to 20 KB
- Choose your JPG, PNG or WEBP above.
- The target is already set to 20 KB — adjust it if you need to.
- Press Compress to target and download. The result is guaranteed to be at or under 20 KB.
Why "exactly 20 KB" is hard elsewhere
Most compressors only give you a quality slider, so hitting a hard 20 KB limit becomes trial and error — export, check the size, adjust, repeat. PhotoFit runs a binary search on JPEG quality and, if quality alone can't get there, automatically reduces the dimensions until your file fits. You get the largest, sharpest image that still respects the 20 KB ceiling.
Is it private?
Yes. Compression happens entirely in your browser using the HTML Canvas API. Your photo is never uploaded to a server, stored, or seen by anyone — which also means it works offline once the page has loaded.
Tip: if it can't reach 20 KB
Very large photos may not reach a tiny target on quality alone. Set a max dimension (e.g. 600–1000 px) and it will downscale just enough to fit while staying crisp.