Compress images online with the same encoder lineup that powers Squoosh: MozJPEG, WebP, AVIF, JPEG XL, OxiPNG, and QOI, each with per-format quality controls. The compressor is free and runs 100% in your browser via WebAssembly — files never leave your device, so there is no upload limit, no server queue, and no privacy trade-off. Upload a single image, a batch, or a whole ZIP, compare the compressed result against the original at any quality setting, and download everything in one click. Modern formats make a real difference: re-encoding a typical JPEG photo to AVIF or WebP at visually identical quality routinely cuts file size by half or more. The table below summarizes when each encoder is the right choice.
| Format | Type | Best for |
|---|---|---|
| MozJPEG | Lossy | Photos with maximum compatibility |
| WebP | Lossy/lossless | General web images, wide support |
| AVIF | Lossy | Smallest photos on modern browsers |
| JPEG XL | Lossy/lossless | High-fidelity photos, future-proof archives |
| OxiPNG | Lossless | Icons, screenshots, UI graphics |
| QOI | Lossless | Fast lossless interchange in tooling |
AVIF gives the smallest modern-web images (often 50% smaller than JPEG at equal quality). JPEG XL is the next-generation choice for photography with both lossy and lossless modes. MozJPEG remains the universal compatibility pick. OxiPNG produces true-lossless PNGs. WebP balances size and browser support. QOI is ultra-fast lossless when you need raw encode/decode speed. Pick Auto if you want the tool to preserve the source format.
Input: JPG/JPEG, PNG, WebP, AVIF, JPEG XL, BMP, GIF, TIFF. Output: MozJPEG, WebP (libwebp), AVIF (libavif/aom), JPEG XL (libjxl), OxiPNG (lossless), quantized PNG (UPNG palette), and QOI.
Every encoder is a WebAssembly port of the same library Squoosh uses. MozJPEG ships trellis quantization and optimized Huffman tables for ~20% smaller files at identical visual quality. libwebp powers WebP with method/SNS/filter controls. libavif (built on aom) handles AVIF with quality + speed + chroma subsampling. libjxl handles JPEG XL with effort and lossless modes. OxiPNG runs Rust-grade lossless PNG optimization. Each encoder loads on first use only — you only download the WASM for the formats you actually use.
MozJPEG is Mozilla's fork of libjpeg-turbo with trellis quantization, optimized Huffman coding, progressive scan, and smarter quantization tables. The output is fully compatible with every JPEG decoder but is ~20% smaller at the same visual quality. It's the same encoder TinyPNG, ImageOptim, and Squoosh use.
AVIF and JPEG XL are next-generation formats that trade encode time for smaller files. AVIF's Speed slider (0 = slowest/best, 10 = fastest) and JXL's Effort slider (1-9) let you tune that tradeoff. For batch jobs, the tool keeps the main thread responsive so the UI never freezes during compression.
AVIF is supported in Chrome 85+, Firefox 93+, Safari 16+ — most modern browsers. JPEG XL is only displayed natively in Safari 17+. When your browser cannot render the output format, the tool decodes the encoded bytes back into a bitmap so the Compare view still works — and the downloaded file is always the real encoded format.
Yes — drag in many files at once, upload a folder, or drop a ZIP archive (folder structure is preserved). All images are processed with the same encoder + advanced options and you can download them individually or as a single ZIP.
Lanczos3 is the default and the best general-purpose downscaler for photos. Mitchell is smoother (good for skin tones). Catmull-Rom is sharper (good for screenshots). Triangle is a fast bilinear-grade choice. Magic Kernel and Magic Kernel Sharp avoid the ringing artefacts Lanczos can produce on hard edges. hqx is for pixel art.
Absolutely. Every encoder runs locally in your browser as WebAssembly. Your images never touch a server — you can verify this by opening DevTools → Network and confirming no image upload happens.
When you set a target (e.g. 100 KB), the tool binary-searches the encoder's quality knob to find the highest quality that meets your size. For lossless formats (OxiPNG / QOI) which have no quality knob, it downscales the image dimensions instead until the size fits.
MozJPEG and WebP use a safe internal quality floor (60-100) so the lowest slider position still produces a visually clean image. AVIF, JPEG XL, OxiPNG, and QOI use the encoder's native quality scale via the Advanced panel. Set the encoder to lossless mode (AVIF/JXL/WebP) or pick OxiPNG/QOI for zero quality loss.
Every encoder is a WebAssembly port of the same reference library Google's Squoosh uses. MozJPEG (Mozilla libjpeg-turbo fork) handles JPEG with trellis quantization, optimized Huffman coding, and progressive scan. WebP runs through libwebp with method 0-6, spatial-noise-shaping, filter strength, and near-lossless modes. AVIF is encoded via libavif on top of aom with quality, speed 0-10, and chroma subsampling (YUV 4:0:0 / 4:2:0 / 4:2:2 / 4:4:4). JPEG XL is encoded via libjxl with effort 1-9 and lossless modes. OxiPNG runs Rust-grade lossless PNG optimisation (level 0-6) on top of a base PNG produced by @jsquash/png. QOI is encoded for ultra-fast lossless output. Quantized PNG uses UPNG with Wu colour quantization and Floyd-Steinberg dithering. Resize uses @jsquash/resize with Lanczos3 / Mitchell / Catmull-Rom / Triangle / Magic Kernel filters. Each encoder lazy-loads only on first use so users only download WASM for formats they actually pick. Size-targeting binary-searches quality and downscales dimensions to fit a budget. The full pipeline runs client-side — files never leave the browser.