Image Compressor

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.

Which image format to choose

FormatTypeBest for
MozJPEGLossyPhotos with maximum compatibility
WebPLossy/losslessGeneral web images, wide support
AVIFLossySmallest photos on modern browsers
JPEG XLLossy/losslessHigh-fidelity photos, future-proof archives
OxiPNGLosslessIcons, screenshots, UI graphics
QOILosslessFast lossless interchange in tooling

When to use it

  1. Shrink hero and product images to pass Core Web Vitals without visible quality loss.
  2. Convert legacy JPEG/PNG assets to WebP or AVIF for a faster site.
  3. Compress a folder of photos to fit an email attachment or upload limit.
  4. Losslessly squeeze PNG icons and screenshots with OxiPNG before committing them to a repo.
  5. Batch-compress a ZIP of images and re-download the optimized set as a ZIP.

How to Use

  1. Upload one or more images by clicking the upload area, dragging and dropping files, dropping a folder, or uploading a ZIP archive (folder structure preserved).
  2. Adjust the Quality slider or set a Maximum File Size target — the tool auto-tunes encoder settings to meet your budget.
  3. Pick an output format: Auto, MozJPEG, WebP, AVIF, JPEG XL, OxiPNG (lossless), Quantized PNG, or QOI.
  4. Open Advanced Options to tune chroma subsampling (MozJPEG), speed/effort (AVIF, JXL), filter strength (WebP), or optimisation level (OxiPNG).
  5. Pick a Resize filter (Lanczos3, Mitchell, Catmull-Rom, Triangle, Magic Kernel) if you enabled Resize on Compress.
  6. Click 'Start Processing' to process every image with your settings.
  7. Compare original and compressed sizes, then download images individually or as a ZIP archive.

Features

  1. MozJPEG encoder (Mozilla libjpeg fork) — trellis quantization, progressive scan, optimized Huffman coding, ~20% smaller than standard JPEG
  2. WebP encoder (libwebp) — method 0-6, filter strength, SNS, near-lossless mode, lossless mode
  3. AVIF encoder (libavif + aom) — up to 50% smaller than JPEG at equal quality, speed 0-10 trade-off, YUV 4:0:0 / 4:2:0 / 4:2:2 / 4:4:4 subsampling, lossless mode
  4. JPEG XL encoder (libjxl) — next-gen format with effort 1-9, progressive, lossy and lossless modes, lossy palette / modular options
  5. OxiPNG encoder (Rust) — true lossless PNG optimisation, level 0-6, Adam7 interlace, alpha optimisation
  6. QOI encoder — ultra-fast lossless format, 5-10× faster encode/decode than PNG
  7. Quantized PNG (UPNG, Wu + Floyd-Steinberg) — tiny files for graphics with limited colours, no banding on gradients
  8. High-quality resize filters via @jsquash/resize — Lanczos3, Mitchell, Catmull-Rom, Triangle, hqx, Magic Kernel, Magic Kernel Sharp
  9. Collapsible Advanced Options panel per format — 8-15 expert knobs each, defaults match Squoosh exactly
  10. Per-format settings persist in localStorage — power users keep their tuning between visits
  11. Smart size targeting — downscales dimensions then binary-searches quality to meet a Maximum File Size budget for every format
  12. Safe quality floor for MozJPEG and WebP — even the lowest slider position never produces visibly damaged output
  13. EXIF / IPTC / XMP / Adobe metadata stripping for JPEG and WebP
  14. Batch compression with multi-file, folder, and ZIP upload (folder structure preserved in the output ZIP)
  15. Decode-back preview for non-natively-renderable formats (JXL on most browsers, QOI everywhere) so the Compare view always works
  16. 100% client-side — every encoder runs as WebAssembly in your browser, your images never touch a server

FAQs

Which output format should I use?

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.

What image formats are supported?

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.

How does the compression work?

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.

What's the difference between MozJPEG and standard JPEG?

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.

Why is AVIF or JPEG XL encoding slow?

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.

Does my browser support AVIF and JPEG XL display?

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.

Can I compress multiple images at once?

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.

What resize filter should I pick?

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.

Is my data safe?

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.

What does 'Maximum File Size' do?

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.

Will compression reduce image quality?

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.

Technical Details

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.

From the Blog

  • Resize Images Online Instantly (Free, Bulk & Secure)
  • Compress Images Online Free — Reduce File Size Without Losing Quality
  • 10 Image Tools Every Designer Needs in Their Workflow

Image Tools

Image Tools

  • Image Converter
  • PNG to WebP
  • WebP to JPG
  • Image Cropper
  • Image Rotator
  • Favicon Generator
  • Bulk Image Renamer
  • Bulk Video Renamer