Squeeze
Recompress an image with the Squoosh WebAssembly codecs — AVIF, WebP and MozJPEG — and watch the file size fall against the original.
The browser's own `toBlob` gives you a JPEG or WebP, but not a good one — the encoders it ships are tuned for speed, not size. This uses the same codecs Squoosh does, compiled to WebAssembly: MozJPEG, WebP and AVIF, which routinely halve a file at a quality you cannot tell apart. Pick a format and a quality, optionally cap the longest side, and the compressed size is shown next to the original with the saving worked out.
The encoders run entirely in your browser and only load when you compress something, so the page stays light until you use it. The image is decoded, re-encoded and offered back for download without ever being uploaded — which is the whole point of doing it here instead of on a site that keeps a copy.
What people open it for
- Shrinking a photo to AVIF or WebP before putting it on a site
- Comparing formats and qualities to find the smallest acceptable file
- Capping an image's dimensions while re-encoding it
- Compressing a picture without uploading it anywhere