WebAssembly and jSquash codecs — fast, private, in-browser compression for JPEG, PNG, WebP, and AVIF.
jSquash Codecs
A collection of industry-standard image compression libraries compiled to WebAssembly — the same engines powering Squoosh.
WebAssembly Runtime
Near-native performance in the browser with SIMD acceleration — runs at ~95% of native C++ speed.
Compression pipeline
1
Image Input
Decode input image data
2
Preprocess
Normalize and prepare pixels
3
Compress
Apply jSquash codecs
4
Optimize
Balance size and quality
5
Encode Output
Generate optimized file
Format comparison
| Format | Compression | Quality | Speed | Best for |
|---|---|---|---|---|
| JPEG (MozJPEG) | High | Very good | Fast | Photos, web images |
| PNG (Oxipng) | Moderate | Perfect | Moderate | Graphics, transparency |
| WebP | Very high | Excellent | Fast | Modern web, animation |
| AVIF | Highest | Excellent | Slower | Next-gen web images |
Technical specifications
jSquash codecs
The same WebAssembly codecs powering Google Squoosh — MozJPEG, Oxipng, WebP, and AVIF encoders.
Works offline
Once the 5–10 MB WASM module is cached, compression runs without any internet connection.
Completely free
No subscriptions, no limits. Compress unlimited images using open-source jSquash libraries forever.