Image Compressor
Compress JPEG, PNG and WebP images with an adjustable quality slider and a live size comparison, all in your browser.
Loading tool…
Your image is decoded and re-encoded in your browser using the Canvas API. It is never uploaded, so there is no transfer wait and no copy on any server.
What the Image Compressor does
The image compressor on this page will compress JPEG, PNG and WebP images with an adjustable quality slider and a live size comparison, all in your browser. Everything runs inside this page, so the work happens on your own device rather than on a server. It is most often used for getting a photo under an upload size limit. More utilities in this area are collected on FreeToolsWorld.org.
How to use it
- Drop an image onto the file area or click to choose one.
- Adjust the quality slider and watch the resulting file size change.
- Optionally cap the maximum width to cut size further.
- Download when you are happy with the trade-off.
How it works
Compression works by re-encoding the image at a lower quality setting. For JPEG and WebP that means the encoder discards detail the eye is least likely to notice — fine texture and subtle colour variation — and the amount discarded is what the quality slider controls.
Quality 80 is the usual sweet spot for photographs: typically 60 to 80 per cent smaller than the original with differences that are hard to see at normal viewing size. Below about 60 the artefacts become visible, particularly around sharp edges and text.
WebP generally produces files 25 to 35 per cent smaller than JPEG at equivalent visual quality and is supported by every current browser, so it is usually the better choice for the web unless you need compatibility with old software.
Two caveats. JPEG compression is lossy and cumulative — compressing an already-compressed JPEG degrades it further, so always work from the original. And PNG is lossless, so converting a PNG photograph to JPEG or WebP will usually shrink it far more than any quality setting can.
When to use it
- Getting a photo under an upload size limit.
- Reducing page weight before publishing images to a website.
- Shrinking a batch of screenshots for a document or email.
Common mistakes to avoid
- Compressing a file that has already been compressed, which compounds the quality loss.
- Using JPEG for screenshots or graphics with text, where PNG or WebP is both smaller and sharper.
- Pushing quality below 60 for images that will be viewed at full size.
Frequently asked questions
How much can I compress without visible loss?
For photographs, quality 80 to 85 usually gives a large size reduction with differences that are hard to spot. Compare the preview against the original at full size before committing — the right setting depends on the image.
Does this reduce the dimensions too?
Only if you set a maximum width. By default the pixel dimensions are unchanged and only the encoding quality changes. Reducing dimensions is usually the bigger saving for web use.
Is quality loss reversible?
No. Lossy compression discards data permanently. Keep your original, and compress a copy.