How the compression works
Upload a JPG, PNG, WebP or GIF, choose a quality and an output format, and compare the before and after sizes. The image is re-encoded in your browser with the Canvas API, so it never leaves your device. If the re-encoded file would be larger than the original, the tool steps the quality down, and keeps the original if it still can't shrink it.
Which format to choose
- JPEG: best for photos. Quality around 70–85% usually looks the same as the original at a fraction of the size.
- WebP: usually 25–35% smaller than JPEG at similar quality and supports transparency; every current browser displays it.
- PNG: lossless, so it suits screenshots, diagrams and images with text or sharp edges. It's usually larger for photos.
Things to know
- JPEG can't store transparency, so transparent areas are filled with white. Choose PNG or WebP to keep transparency.
- Animated GIFs are converted from their first frame only.
- Re-encoding removes metadata such as camera details and GPS location, which is good for privacy when sharing photos.
- Compressing an already compressed JPEG again saves little and can add artefacts; start from the original where possible.
Resize first for the biggest saving
A 4000-pixel-wide photo shown 800 pixels wide on a website wastes most of its bytes. Resize to the display size (or twice that for sharp high-density screens) with the Image Resizer, then compress. For tiny icons, an inline data URL from Image to Base64 can save a request.