Image Compressor
Compress and resize JPG, PNG and WebP images in your browser. Drop an image, adjust the quality, optionally change the format or dimensions, and download the smaller file — everything runs locally, so nothing is uploaded. Last reviewed 2026-06-19.
Drop an image here, or browse
JPG, PNG, WebP, GIF, BMP — processed locally, never uploaded.
How it works
The tool draws your image onto an HTML <canvas> and re-encodes it with the
browser's native image encoder. For JPEG and WebP the quality
slider controls how aggressively detail is discarded — lower quality means a smaller file.
PNG is lossless, so the slider has no effect on it; you shrink a PNG by resizing
it or by switching it to WebP. Because the whole process happens in your browser, the picture is
never sent anywhere, and the re-encode strips EXIF/GPS metadata as a side effect.
JPEG vs WebP vs PNG
| Format | Compression | Transparency | Best for |
|---|---|---|---|
| JPEG | Lossy | No transparency | Photographs and complex images. The quality slider works — 70–80 is the usual sweet spot. |
| WebP | Lossy or lossless | Supports transparency | Modern web images. Typically 25–35% smaller than JPEG at the same quality. The quality slider works. |
| PNG | Lossless | Supports transparency | Logos, icons, screenshots and anything with sharp edges or transparency. The quality slider has no effect (PNG is lossless) — resize to shrink it. |
Tips for smaller images
- Resize first. A photo straight from a phone can be 4000 px wide; most web and social uses never need more than 1600–2048 px. Halving the width roughly quarters the file.
- Quality 70–85 is usually indistinguishable from the original for photographs while cutting the size dramatically.
- Prefer WebP for the web — it is typically 25–35% smaller than JPEG at the same visual quality and every current browser supports it.
- Keep PNG for graphics with sharp edges, text or transparency; convert photos out of PNG, which was never meant for them.
Good to know
- If the “compressed” file comes out larger than the original — common when re-saving an already-optimised JPEG at high quality — keep your original; the tool will say so.
- Animated GIFs and animated WebP are flattened to their first frame (canvas captures a single frame).
- Your original file is never modified; you always download a new copy.
Frequently asked questions
- Is my image uploaded to a server?
- No. The image is decoded and re-encoded entirely in your browser using the built-in Canvas API — it never leaves your device and is never logged or transmitted. It also works offline once the page has loaded, which is why it is safe to compress private photos, screenshots or scans.
- Does compressing reduce the image quality?
- For JPEG and WebP, yes — they are lossy, so a lower quality setting throws away more detail to make the file smaller. Around 70–85 is usually indistinguishable from the original for photos. PNG is lossless, so re-encoding it never loses quality; to make a PNG smaller you resize its dimensions or switch it to WebP.
- Which format should I choose for the web?
- WebP gives the smallest files for both photos and graphics and is supported by every current browser, so it is the best default for the web. Use JPEG for photos when you need maximum compatibility, and PNG only when you need lossless quality or transparency.
- Why is my compressed PNG not any smaller?
- PNG is already lossless and the canvas re-encoder cannot apply the palette/quantisation tricks dedicated PNG optimisers use, so re-saving a PNG at the same dimensions rarely shrinks it. To reduce a PNG, lower the "Resize" max width, or convert it to JPEG (if it has no transparency) or WebP — both will be far smaller.
- Is there a file-size or resolution limit?
- There is no fixed limit, but everything happens in your browser tab, so very large images (tens of megapixels) use more memory and take a moment to process. If a huge image is sluggish, set a "Resize" max width — most web and social uses never need more than 1600–2048 px wide.
- Does it remove EXIF / GPS metadata from my photo?
- Yes. Re-encoding through the canvas produces a clean image with no EXIF block, so camera model, date and GPS location are stripped automatically. That is a privacy bonus when sharing photos — though it also means you should keep your original if you want to preserve that metadata.