Compress an image
Cut the file size of a JPG, WebP or PNG with a quality slider, or ask for a specific target file size. Compare the original with the result and download - nothing is uploaded.
Compression happens entirely in your browser using the Canvas API - your photo is never sent anywhere.
Choose an image
Compression options
PNG is lossless - the quality slider does not apply. This re-encodes the PNG cleanly without removing any image detail.
JPG and WebP stay in their format. GIF and BMP sources are exported as PNG because browsers cannot re-encode those formats directly.
How it works
The browser decodes your image onto a canvas and re-encodes it with a chosen quality level. JPG and WebP are lossy, so lowering quality discards detail the eye rarely notices and produces a smaller file. PNG is lossless: the tool re-encodes it cleanly at full quality, which mainly helps tidy up bloated files rather than shrink them dramatically.
Tips for smaller files
- Photos compress best as JPG at 0.7–0.8 - usually a fraction of the original size.
- Need to go smaller? WebP often beats JPG at the same quality. Try the convert tool.
- Screenshots and graphics stay sharper as PNG, but resize them first if they are huge.
- For a strict limit, use the target size option and let the tool find the quality for you.
Frequently asked questions
Why is my PNG barely getting smaller?
PNG is a lossless format, so this tool re-encodes it without losing quality but cannot remove the detail the file must store. For real size savings on photos, convert to JPG or WebP instead.
How much can I compress a JPG before it looks bad?
It depends on the image, but quality around 0.7–0.8 usually looks close to the original while cutting file size dramatically. Very busy areas (sky gradients, foliage) show artefacts first.
What does compress-to-target do?
It repeatedly re-encodes your image, automatically tuning the quality so the final file lands at or just under the file size you asked for. Only available for JPG and WebP.
Is the image uploaded while compressing?
No. Everything happens in your browser with the Canvas API. Your photo never leaves your device.