Image Compressor
Compress JPG, PNG and WEBP images in your browser without losing visible quality. The image compressor uses smart encoder settings and optional resizing to shrink files by up to 80%, helping your website pass Core Web Vitals, your email attachments stay under 25 MB and your portfolio load instantly on a phone in the subway. Privacy is built in — files never touch a server.
How to use
- 1
Drop your images
Add one or many files to the queue. Supported formats: JPG, PNG, WEBP.
- 2
Pick quality and width
Choose a quality (60–100) and an optional max width in pixels. The aspect ratio is preserved.
- 3
Download compressed files
Each file is listed with its old and new size. Download individually or in bulk.
Technical details
Image compression reduces file size by removing data the human eye is unlikely to notice. There are two flavours: lossy (JPG, WEBP, AVIF) — which discards high-frequency detail — and lossless (PNG, lossless WEBP) — which only rearranges existing bytes. The right choice depends on the content: photographs tolerate lossy compression beautifully, while screenshots and line art deserve lossless treatment.
Under the hood the compressor decodes each file with the browser, optionally resizes the bitmap on a canvas, and re-encodes it with `toBlob` using a tuned quality setting. The default 80% quality is the sweet spot recommended by Google PageSpeed Insights: it eliminates the visual cliff at ~70% while still delivering 5–10× savings on most photos.
For best results, resize the image to its actual display width before compressing. A 4000-pixel photo served at 800 pixels wide is 25× larger than it needs to be — and no encoder can compensate for that. The tool exposes a width input so you can do both steps in one pass.
Compressing already-compressed JPGs is safe as long as the new quality is equal to or higher than the original. Re-saving at a lower quality stacks losses (generation loss) and produces visible blocking artefacts after 4–5 passes.
Frequently asked questions
Will the image quality drop?
Does the tool work offline?
Can I compress without resizing?
How much smaller will my files be?
Is EXIF metadata preserved?
This tool was tested and calibrated by our engineering team. All processing happens locally in your browser — your files and data never leave your device.