Image Compressor
Drag & drop images here, or click to select
Supports JPG, PNG, WebP, AVIF. Max 50MB per file.
Higher = better quality, larger file
px (0 = keep)
About This Tool
Compress images fully in your browser. Supports two modes: adjust by quality slider, or set a target file size (auto-tunes via binary search). Uses MozJPEG / WebP / AVIF WebAssembly codecs in a Web Worker. Files never leave your device.
- EXIF orientation is preserved by rotating pixels (best-effort; full metadata is stripped by the canvas pipeline).
- Target Size mode finds the best quality to match your desired file size (±5% tolerance, max 8 iterations).
- JPEG uses MozJPEG for 10–20% smaller files at the same quality.
- If a WASM codec fails to load, it silently falls back to native Canvas encoding.