Image Compressor
Shrink a JPG, PNG or WebP by re-encoding it in your browser — nothing is uploaded.
Select an image to compress
JPG, PNG and WebP supported. The file never leaves your device.
This tool makes an image file smaller by re-encoding it on your own device. When you pick a photo or graphic, it is decoded into the page, redrawn onto an HTML canvas at its original pixel size, and saved back out at the quality and format you choose. Because the whole round trip happens locally, there is no upload wait and no copy of your picture is ever sent to a server.
What the tool changes — and what it leaves alone
Compression here works purely on how the image is encoded, not how big it is on screen. The pixel width and height stay exactly the same, so this is not a resizer — if you also need fewer pixels, resize first. The savings come from the encoder throwing away detail your eye is unlikely to miss. As you move the slider the tool re-encodes the picture and shows the resulting Compressed size next to the Original, with a badge showing the percentage saved so you can find the point where the file is small but still looks right.
Quality, format, and the PNG catch
JPEG and WebP are lossy formats, so the quality slider genuinely changes their output — lower quality means a smaller file and more visible artefacts. At a matching quality, WebP is typically around 25–35% smaller than JPEG. PNG is different: it is lossless, so the quality slider has no effect on it at all. If you load a PNG and want it smaller, switch the export format to JPEG or WebP. One more caveat: re-compressing a file that is already lossy (a JPEG saved again as JPEG) adds a fresh round of generation loss on top of the first, so compress from the highest-quality source you have.
Choosing a setting that looks good
For photographs, quality in the 70–85 range is usually the sweet spot: a large drop in file size with little visible change. Images with flat colour, sharp edges or text — logos, screenshots, diagrams — are less forgiving, because lossy encoders add a faint halo around hard edges; keep those higher, or leave them as PNG. Watch the two size readouts as you drag: if the saving flattens out while the picture starts to look muddy, you have gone one notch too far.
Frequently Asked Questions
Does compressing change the image dimensions?
No. The width and height in pixels are preserved exactly; only the way the image is encoded changes. This is a file-size optimiser, not a resizer — use an image resizer first if you also need fewer pixels.
Why does the quality slider do nothing to my PNG?
PNG is a lossless format, so it ignores a quality value — every pixel is stored exactly. To make a PNG smaller, change the export format to JPEG or WebP, which are lossy and respond to the slider.
Will re-saving a JPEG as JPEG lose more quality?
Yes. Each lossy save discards a little more detail, an effect called generation loss. For the best result, compress from the original high-quality file rather than from a copy that has already been compressed.
Are my images uploaded anywhere?
No. The file is decoded and redrawn on a canvas inside your browser, and the compressed copy is generated locally. Nothing is transmitted, and closing the tab clears the image from memory.