Compress images

Shrink JPG, PNG, WebP, and AVIF images — by quality or to a target file size — entirely in your browser. Your images never leave your device: no upload, no account, no tracking.

Drop images here, paste, or

JPEG, PNG, WebP, AVIF · multiple files welcome · nothing is uploaded

How to compress

Higher keeps more detail; lower makes smaller files. PNG is lossless, so quality does not apply to it.

Keep original re-compresses each file in its own format; PNG stays PNG (lossless). To change format on purpose, use a converter.

What this tool does

Drop in JPEG, PNG, WebP, or AVIF images and shrink their file size on your own device. There are two ways to drive it. In quality mode you move a single slider and every image re-encodes at that setting, with each card showing the resulting size and how much was saved. In target size mode you name a size — say, under 500 KB — and the tool searches for the highest quality that still fits under it, one image at a time. Either way you can add a single file or a few hundred, and download them one by one or together as a ZIP.

The honest part

Compression is a trade. For JPEG, WebP, and AVIF, making a file smaller means re-encoding it, and re-encoding is lossy — some detail is discarded, and repeating it on the same file compounds the effect. At everyday quality settings the change is hard to notice, but it is real, and this tool does not pretend otherwise. PNG is the exception: it is optimized losslessly, so the pixels are left untouched and only wasted bytes are removed. One side effect works in your favour — re-encoding drops the image's hidden EXIF and GPS metadata, so a compressed copy is also a cleaner, less revealing one.

Formats, and when to force one

By default each image keeps its own format: a JPEG stays a JPEG, a PNG stays a PNG. You can instead force JPEG, WebP, or AVIF for every image. WebP and AVIF usually beat JPEG at the same visible quality; AVIF is the smallest of the three but the slowest, and it downloads a larger encoder the first time you use it. Changing format to suit a different purpose — rather than to shrink — is really a conversion job, and a dedicated converter is the better place for that.

Working with a batch

Images are encoded one at a time in a background thread, so the page stays responsive while a large set works through. Everything stays in memory, which means the practical ceiling is your own device rather than a server quota — comfortably hundreds of images on a desktop, fewer on a phone. If a single image is too large for the browser to re-encode, that one is reported plainly and the rest carry on.

Nothing is uploaded

The encoding runs entirely in your browser, using WebAssembly codecs this page loads from its own address — never a third-party server. You can open your browser's network panel and watch: no image data leaves the machine. There is no account, no tracking, and no upload step to opt out of. The full source is public on GitHub under the AGPL-3.0 licence, and the privacy panel in the footer names every file this page can load and when.

Questions

Are my images uploaded anywhere?

No. Compression happens in your browser, on your device. You can verify it: open your browser's DevTools Network tab while compressing and no image data leaves your machine. There is no account, no tracking, and nothing to sign up for.

Can I compress an image to a specific file size?

Yes. Switch to target-size mode and enter a size in KB or MB. For each image the tool runs a short search over the quality setting to land just under your target, and the card shows the size it reached and the quality it used. If even the lowest quality cannot reach a very small target, it says so plainly instead of guessing — reducing the image's dimensions first (with Resize Image) is the usual fix.

Does compressing reduce quality?

For JPEG, WebP, and AVIF, a little — those formats are lossy, so re-encoding discards some detail. At normal settings it is hard to see, and the card always shows the exact size so you can judge the trade for yourself. PNG is compressed losslessly, so its pixels are unchanged.

Does it work on PNG files?

Yes, losslessly. PNGs are optimized with oxipng, which strips redundant data without touching a single pixel, so the quality slider does not apply to them. Lossless optimization has a floor, though — to make a PNG dramatically smaller you would convert it to a lossy format such as WebP or JPEG, which is a separate step.

How many images can I compress at once?

There is no fixed limit. The practical one is your device's memory: a few hundred images are comfortable on a desktop, fewer on a phone. If the browser runs short, the tool reports which images it could not finish rather than failing without a word.

Related tools

Convert Image — change a JPG, PNG, WebP, or AVIF into another format, any to any. Resize Image — change an image's pixel dimensions, high quality. Photo Editor — crop, resize, redact, and batch-edit images. Remove EXIF data — strip location and camera metadata before sharing. HEIC to JPG — convert iPhone photos to JPG. Find Duplicate Photos — spot duplicates and keep the best copy.