Image Compressor
Compress JPEG, PNG and WebP images in your browser to reduce file size, with controls for quality, output format and dimensions.
Privacy: This tool runs entirely in your browser. Your data never leaves your device and is never uploaded to any server.
How to use this image compressor
- Drop in one or more JPEG, PNG or WebP files.
- Lower the quality slider to shrink lossy formats.
- Reduce the maximum dimensions when the image is displayed smaller than its original size.
- Download the result — your images never leave the browser.
Which format should you export?
The format often matters more than the quality slider. This is how the three main formats compare.
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPEG | Lossy | No | Photographs and large hero images |
| PNG | Lossless | Yes | Screenshots, logos, text and sharp edges |
| WebP | Lossy or lossless | Yes | Almost everything on the web today |
| GIF | Lossless, 256 colours | 1-bit only | Short animations, and little else |
Lossy and lossless are different games
JPEG and WebP are lossy: they discard detail the eye is unlikely to notice, and the quality slider controls how much. PNG is lossless, so every pixel is preserved exactly and a quality setting has nothing to work with.
That is why a stubborn PNG needs a different approach — either reduce its dimensions, or convert it to WebP or JPEG, which is often the largest single win available.
Reduce quality before dimensions
For photographs, dropping quality from 100 to around 75 typically halves the file size with no visible difference. Resizing, by contrast, is destructive in a way you cannot undo. Reach for the quality slider first and treat dimension changes as the last resort.
What to check afterwards
- Open the result at 100% and look at gradients and fine texture, where artefacts appear first.
- Check text and sharp edges — lossy compression blurs them before anything else.
- Compare actual file sizes rather than trusting a percentage shown in the UI.
- Keep the original; lossy compression cannot be reversed.
Frequently asked questions
How does the image compressor work?
Your image is decoded and re-encoded locally with the browser Canvas API. Lower the quality or the dimensions to shrink the file size.
Are my images uploaded to a server?
No. The whole process runs in your browser. Your images never leave your device and are never uploaded.
Why is my PNG not getting smaller?
PNG is a lossless format, so the quality slider does not apply. Reduce the max dimensions or switch the output to WebP or JPEG to shrink it.
How much can I compress an image without it looking worse?
A typical photograph holds up fine between quality 70 and 80; below about 60 you start to see blocking around edges. Screenshots and graphics usually do better as WebP or PNG.
Does compressing twice make the file smaller?
No, it makes it worse. Lossy compression is cumulative and each pass discards more detail. Always re-export from the original instead of re-compressing a compressed file.
Is metadata such as GPS location kept?
Usually not. Re-encoding through the canvas drops most metadata, including EXIF. That is good for privacy, but keep the original file if you rely on EXIF data.
More Image tools
Image Format Converter
Convert images between PNG, JPEG and WebP in your browser, with a quality control for the lossy formats.
Image Cropper
Crop images online by dragging a selection, with free and fixed aspect ratios. Runs entirely in your browser.
Image to PDF
Combine one or more images into a single PDF document, one image per page, right in your browser.
PDF to Image
Convert each page of a PDF into a high-quality PNG image, entirely client-side in your browser.