All tools · Images · Compress image
Compress image.
Large images slow down websites, fill up storage, and bounce off email size limits. This compressor re-encodes your image at a quality you choose, cutting the file size while keeping it looking sharp. It runs entirely in your browser with the same codecs Squoosh uses — your images are never uploaded.
Drop JPG, PNG, WebP or AVIF images here, or browse
Files stay on your device — nothing is uploaded.
Read the guide: How to Compress an Image to a Target Size (100 KB, 50 KB, or Under a Limit) · How to Get an Image Under a File Size Limit (2 MB, 500 KB, 200 KB)
Frequently asked questions
Does compressing reduce image quality?
For JPG, WebP and AVIF, lower quality means a smaller file with some visible trade-off — the slider lets you balance it. PNG is lossless, so it is re-encoded without quality loss but with smaller potential savings.
Are my images uploaded anywhere?
No. Compression happens entirely in your browser. There is no upload endpoint, so it works even offline.
What formats can I compress?
JPG/JPEG, PNG, WebP and AVIF. The output keeps the same format as the input.
Can I compress an image to an exact size, like 20 KB or 100 KB?
Yes — enter the number in the "Target size in KB" field and the compressor finds the highest quality that fits under it. This works for JPG and WebP; PNG is lossless, so it cannot be forced to a size. If even the lowest quality cannot reach a very small target, you get the smallest achievable file — resizing the image first usually closes the gap.
Embed this tool
Add this free, no-upload tool to your own site with one line:
<iframe src="https://fileanvil.com/embed/compress-image/" width="100%" height="480" style="border:1px solid #ddd;border-radius:12px" title="Image Compressor"></iframe>