UltraConvert
Image Tools

Image Compressor

Reduce image file sizes dramatically while maintaining visual quality using best-in-class compression codecs. MozJPEG for JPEG, OxiPNG for PNG, WebP, and AVIF encoding all run directly in your browser via WebAssembly. Perfect for web optimization, email attachments, social media, and storage savings. Batch process multiple images simultaneously with automatic ZIP download.

What does this tool do?

The Image Compressor reduces image file sizes using professional-grade encoding libraries compiled to WebAssembly for browser execution. MozJPEG provides superior JPEG compression with trellis quantization and progressive encoding. OxiPNG optimizes PNG files losslessly through better DEFLATE compression and palette optimization. WebP and AVIF formats offer modern compression significantly better than JPEG/PNG. You control quality settings via slider or target file size, with optional pre-resize to reduce dimensions for additional savings. Batch mode processes multiple files with results auto-zipped for download.

How it works

Images are processed locally using WebAssembly-compiled codecs. For JPEG: decoding via libjpeg-turbo, re-encoding with mozjpeg at specified quality with advanced features enabled. For PNG: OxiPNG analyzes and applies best compression strategy (filter selection, palette reduction if applicable). For WebP/AVIF: encoding via libwebp/libaom with quality settings. Optional pre-resize uses Lanczos resampling before encoding for massive size reduction on high-resolution photos. Processing runs in Web Workers to keep the main thread responsive. All compression happens client-side — images are never uploaded to any server.

Features

How to use

  1. 1

    Drop one or more images

    JPEG, PNG, WebP, AVIF — up to ~50 MB each on a typical laptop. Select multiple files for batch processing.

  2. 2

    Pick output format

    Auto keeps input format. WebP/AVIF are usually 25-50% smaller than JPEG at same visual quality.

  3. 3

    Set quality or target size

    Quality 75-85 is the sweet spot for photos. Target size auto-tunes quality to hit your desired file size.

  4. 4

    Enable pre-resize if needed

    If source images are huge (e.g., 4000×3000 phone photos), resize to 2048 or 1024 long side for massive additional savings.

  5. 5

    Compress and download

    Click Compress; download individual files or a single .zip for batch. Compare before/after sizes.

Common use cases

Website optimization

Compress images for faster page loads, better Core Web Vitals scores, and reduced bandwidth costs.

Email attachments

Shrink photos to fit within email size limits while maintaining quality viewable by recipients.

Social media uploads

Pre-compress images before uploading to social platforms that re-compress anyway — start with smaller files.

Storage optimization

Reduce space used by photo collections, backups, and archives without perceptible quality loss.

Tips & best practices

Frequently asked questions

Is this lossless?
PNG compression is always lossless. JPEG/WebP/AVIF are lossy by design — that's how they achieve compression. The Lossless mode (PNG only) re-runs oxipng for further win without changing pixels.
How is this better than standard browser compression?
Uses advanced codecs: mozjpeg with trellis quantization, oxipng with best filter search, libaom AVIF. These achieve significantly better compression than built-in browser methods at same visual quality.
Why is AVIF slow?
libaom prioritizes compression over speed. Effort 4 (default) is slow but yields smallest files. Lower effort (0-2) is faster but larger. The Web Worker keeps your page responsive during encoding.
Are huge files supported?
Up to what fits in browser memory — typically 100+ megapixel images on desktop. Decoding runs in a worker so the page stays responsive.

Related tools