Free image compressor

Compress images online — fast, private, free

Shrink JPG, PNG, and WebP files by up to 80% without losing visible quality. Everything runs in your browser — nothing is ever uploaded.

New: Smart Auto detects photos vs. screenshots and picks the best format for each — no guesswork.

Drop images to compress
JPG · PNG · WebP — runs right here, nothing is uploaded
JPG · PNG · WEBP · max 50.0 MB

The complete guide to compressing images

What is image compression?

Image compression shrinks the file size of a photo or graphic so it loads faster, uploads quicker, and takes up less storage — ideally with no visible difference to the human eye. Every JPG, PNG, and WebP file already uses some compression, but images exported from cameras, phones, design tools, and screenshots are routinely two to ten times larger than they need to be for the web.

The reason is simple: those tools optimize for editing headroom and maximum fidelity, not for delivery. A 4MB photo straight off a phone might look identical at 600KB once it has been re-compressed with the right settings. Smaller images mean faster pages, lower bandwidth bills, better Core Web Vitals scores, and a smoother experience for everyone on a slow connection.

Lossy vs lossless: which should you pick?

There are two families of compression. Lossless compression — used by PNG and the lossless mode of WebP — reorganizes the data so the file is smaller but every pixel is reconstructed exactly. It is the right choice for logos, line art, screenshots of text, and anything where crisp edges and exact colors matter. The downside is that the savings are limited, often only 10–30%.

Lossy compression — used by JPEG, the default mode of WebP, and AVIF — throws away fine detail that the eye struggles to perceive, such as subtle gradients in a clear sky or texture in dark shadows. This is how a photo can lose 70% of its size while still looking the same at normal viewing distances. For photographs and complex images, lossy is almost always the better trade-off. The quality slider on this page controls exactly how aggressive that trade-off is.

When to use WebP and AVIF

If you only change one thing about how you save images, switch to WebP. It compresses 25–35% smaller than JPEG at the same visual quality, supports transparency like PNG, and is supported by every modern browser. Re-targeting your JPGs and PNGs to WebP with this tool is the single biggest easy win for page speed.

AVIF goes a step further, frequently reaching half the size of an equivalent JPEG, which makes it excellent for large hero images and image-heavy galleries. The trade-offs are slower encoding and slightly less universal support in older software, so it is best used where the bandwidth savings clearly justify it. On OpusImg, AVIF output is part of the Pro plan; WebP, JPEG, and PNG compression are free for everyone.

MozJPEG vs standard JPEG encoders

Not all JPEG encoders are equal. The encoders bundled into most operating systems and editing apps are tuned for speed, not for the smallest possible file. MozJPEG — the encoder behind this tool's JPEG output — uses smarter trellis quantization and progressive scan optimization to squeeze 5–15% more out of a JPEG at the same quality setting, with no change to how you work.

That is why re-compressing a JPEG here can save space even when the source was already a JPEG: you are swapping a generic encoder for a best-in-class one. Combined with the quality slider, it lets you dial in the exact balance of size and fidelity you want, and preview the result before you download anything.

Our privacy model: everything runs in your browser

Most online compressors upload your images to a server, process them in the cloud, and send the result back. That means your private photos and confidential documents pass through someone else's infrastructure, where they may be logged, cached, or retained. OpusImg works differently.

Compression here runs entirely on your device using WebAssembly ports of the Squoosh codecs. When you drop a file, it is decoded, re-encoded, and handed back to you without a single byte ever being uploaded. There is no server to trust, nothing to delete afterward, and the tool keeps working even if you go offline. It is the same fast, modern compression you would get from a desktop app — delivered through a web page that respects your privacy by design.

Frequently asked questions

Is image compression really free?

Yes. Compressing JPG, PNG, and WebP images is completely free with no sign-up, no watermark, and no file limit. Compression runs entirely in your browser, so there is nothing for us to charge for. Pro plans add AI tools and AVIF output, but everyday compression stays free forever.

Are my images uploaded to a server?

No. OpusImg compresses images on your own device using WebAssembly codecs. Your files never leave your computer or phone — there is no upload, no cloud processing, and nothing stored on our side. That makes it safe for confidential documents, client work, and personal photos.

How much smaller will my images get?

It depends on the source. Photos straight from a phone or camera typically shrink 40–80% with no visible quality loss. Re-saving an already-optimized image saves less. Converting to WebP usually beats re-compressing the original format, often cutting another 25–35% on top.

Will compression reduce image quality?

Only as much as you allow. The quality slider controls the trade-off: 75–85 is the sweet spot where files get dramatically smaller while staying visually identical to the original. PNG compression is fully lossless — it rewrites the file more efficiently without touching a single pixel.

What is the difference between lossy and lossless compression?

Lossless compression (PNG, lossless WebP) removes redundancy without discarding any image data, so the result is pixel-for-pixel identical — but the savings are modest. Lossy compression (JPEG, default WebP, AVIF) discards detail the eye barely notices to reach much smaller files. For photos, lossy is almost always the right choice.

Should I use WebP or AVIF?

WebP is the safe default: it is supported everywhere, compresses 25–35% better than JPEG, and keeps transparency. AVIF compresses even harder (often half the size of JPEG) and is great for hero images, but encoding is slower and a few older apps still can't open it. AVIF output is a Pro feature on OpusImg.

What image formats can I compress?

You can drop in JPG, PNG, and WebP and compress to JPG, PNG, or WebP (AVIF with Pro). The tool auto-detects each file's format, and you can re-target everything to WebP in one click for maximum savings while preserving transparency where the format allows it.

Can I compress many images at once?

Yes. Drop a whole folder of images and the tool compresses them in a batch, then bundles the results into a single ZIP for download. Everything still runs locally — bulk mode just queues the same on-device pipeline across every file.

Is there a file size or count limit?

There is no hard count limit and no account required. The practical ceiling is your device's memory — very large images (50MP+) or hundreds of files at once use more RAM since all the work happens in your browser. For everyday photos and screenshots you'll never hit it.

Does compressing strip metadata like EXIF and location?

Re-encoding an image generally drops embedded EXIF, GPS, and color-profile metadata, which is usually what you want before sharing a photo publicly. If you need to preserve metadata, keep an untouched copy of the original — compression always writes a fresh file rather than editing in place.