How to use it
- Choose or drop a JPEG, PNG, WebP, GIF, BMP or AVIF image (up to 25 MB).
- Pick an output format and move the quality slider. Around 70–80% is a good starting point for photos.
- Optionally enter a maximum width or height to scale large photos down.
- Compare the before and after previews and the size saved, then download the compressed file.
How it works
The image is decoded by your browser, drawn onto a canvas and encoded again at the quality you choose. Lower quality removes more fine detail and produces a smaller file. The size and the percentage saved are measured from the actual file that will be downloaded.
JPEG is the most compatible choice for photos but has no transparency. WebP is supported by all current browsers and is typically 25–35% smaller than JPEG at similar visual quality, and it keeps transparency. AVIF can be smaller still, but only some browsers can create it from a canvas, so the option appears only when your browser supports it. PNG is lossless: it keeps every pixel exactly and suits screenshots, logos and graphics with flat colours, but it rarely makes photos smaller.
Scaling down usually saves more than lowering quality. A 4000 px wide phone photo shown at 1200 px on a website carries about eleven times more pixels than it needs.
Re-encoding removes metadata such as EXIF camera data and GPS location, and the colour profile is converted to the browser's standard sRGB output. Animated GIFs become a still image of their first frame. If the result is larger than the original, the tool tells you so that you can keep the original.
Examples
Phone photo for a blog post
A 4032 × 3024 JPEG of 3.8 MB, set to WebP at 75% with a maximum width of 1600 px, typically ends up between 150 and 400 KB depending on the detail in the scene.
Screenshot to send by email
A full-screen PNG screenshot with text is best kept as PNG with a smaller maximum width, or converted to WebP at a high quality such as 90%, so the text stays sharp.
Image that will not shrink
A JPEG already saved at a low quality may grow when re-encoded at 90%. The tool shows the increase and suggests keeping the original or choosing a lower quality.
Frequently asked questions
What quality setting should I use?
For photos, 70–80% usually looks the same as the original at normal viewing size while saving a lot of space. Go higher for images with fine text or sharp edges, and check the after preview at full size before downloading.
Why did my PNG barely get smaller?
PNG is lossless, so the browser cannot throw away detail to save space, and its built-in PNG encoder is not tuned for maximum compression. Reduce the dimensions, or convert to WebP or JPEG if you do not need pixel-exact output.
Does compression remove EXIF data and location?
Yes. The image is redrawn on a canvas, so EXIF data such as camera model, date and GPS location is not copied into the new file. The rotation stored in EXIF is applied to the pixels before saving.
Can I compress an animated GIF?
Not as an animation. Browsers only draw the first frame of a GIF on a canvas, so the result is a still image.
Why is AVIF not in the list?
AVIF output depends on your browser being able to encode it from a canvas, which many browsers cannot do yet. The tool tests this and only lists formats that will really be produced.
Privacy
The image is decoded, compressed and previewed entirely in your browser. It is not uploaded, stored or included in analytics; only an anonymous event that the tool was used is counted.