Buy me a coffee
Image

Image Compression

Compress images to reduce file size while maintaining quality. Supports JPG, PNG, WebP. Runs on your device — nothing is uploaded, nothing is stored.

Compressed image will appear here

About Image Compression

Image Compression shrinks a photo until it fits wherever it has to go — under an email attachment limit, past a form that rejects anything over 500 KB, or into a page that's loading too slowly. Drop in a PNG, JPG or WebP up to 25 MB and choose how you want to trade quality for size.

There are four ways to do it. Auto picks a quality based on how big the source is. Aggressive goes hard and doesn't ask. Custom hands you the quality slider. Target size is the interesting one: name a number in kilobytes and the tool searches for a quality that lands under it, then starts reducing the width if quality alone can't get there. You can also cap the output width directly, which is usually the single biggest saving for a photo headed to a web page.

Encoding uses the browser's own image encoder, so there's no upload, no queue, no account and no watermark.

Why this runs on your device

Be honest about the stakes: most of the time you're shrinking a holiday photo and nobody cares who sees it. But this tool's most common real job is getting a scanned ID, a signature or a passport photo under a government portal's kilobyte limit — and those are documents you'd rather not hand to a free web service in exchange for a smaller copy of them. The other reason is plain speed. Uploading 20 MB so a server can hand back 200 KB is the slowest possible way to do something your own laptop finishes in about a second, and it fails outright on a weak connection — which is exactly the situation you're usually in when a file is too big to send.

How to use Image Compression
  1. Drop in a PNG, JPG or WebP up to 25 MB.
  2. Choose Auto, Aggressive, Custom quality, or a target size in KB.
  3. Optionally set the output format and cap the maximum width.
  4. Compare the original with the compressed version, then download it.
Limitations and trade-offs
  • This uses the browser's built-in encoder, which is a blunt instrument next to a dedicated one. A tool built on MozJPEG or oxipng will typically reach a smaller file at the same visual quality. For production assets where the last few percent matter, use a build-time optimiser instead.
  • PNG barely benefits, and can come out larger. The image is redrawn from raw pixels with no knowledge of the original's palette or filter choices, so an indexed PNG returns as full RGBA. That's also why PNG isn't offered in target-size mode. To genuinely shrink a PNG, resize it or convert it to WebP or JPEG.
  • Every mode redraws the image onto a canvas, which discards all metadata: EXIF, GPS coordinates, camera settings, ICC colour profiles and XMP. Usually that's a privacy bonus, occasionally it's a problem — a wide-gamut photo can shift colour once its profile is gone, and you lose the capture date.
  • One image at a time: no batch, no ZIP, a 25 MB ceiling, and no AVIF for either input or output. Encoding runs on the main thread, so a large image briefly freezes the page — and if you pick an output format your browser can't encode, it quietly writes a PNG under the wrong file extension.
Frequently asked questions