How to compress an image to a target size
- Drop your image above — JPG, PNG, WebP, and most browser-readable formats work.
- Pick an output format and a target like "Under 500 KB" (or a custom KB).
- Click Compress image and download the optimized file.
Exact-size compression, done locally
SumoSquash binary-searches the encoder quality until your image lands just under the size you chose, using the
same MozJPEG/WebP/PNG codecs as Google's Squoosh — compiled to WebAssembly and run entirely in your browser.
No upload, no watermark, no account.
Which format should I pick?
- WebP — smallest files at good quality, supports transparency. Best default.
- JPEG — universal compatibility for photos.
- PNG — lossless; best for graphics/screenshots where sharpness matters.
Which format should I choose?
WebP for the smallest size, JPEG for compatibility, PNG for lossless graphics.
How does "compress to a size" work?
It searches encoder quality until the result is just under your target KB.
Are my images private?
Yes — everything runs in your browser. Images are never uploaded.
Runs locally with mediabunny (WebCodecs), wavesurfer.js & jSquash. No upload, no account.