Image Compressor

Compress JPEG, PNG and WebP images online. Batch processing, quality control and resizing — entirely in your browser, nothing uploaded.

All processing happens in your browser. Nothing is uploaded.

How to use

  1. Drop your images onto the box above, or click it to choose files. You can add several at once.
  2. Adjust Quality — lower means a smaller file and more visible artifacts.
  3. Optionally pick an Output format or cap the Max dimension to shrink oversized photos.
  4. Each file shows its before and after size. Click Download, or Download all when you are done.

Changing any setting re-compresses everything already in the list, so you can dial in the quality you want and watch the file sizes respond.

About image compression

Most of the weight on a slow-loading page is images, and most of that weight is avoidable. A photo straight out of a phone camera is often 4–6 MB at 4000 pixels wide — but it will be displayed in a 800-pixel-wide column, where all but a fraction of those pixels are thrown away by the browser after being downloaded. Resizing before uploading usually saves more bytes than any amount of quality tuning.

JPEG and WebP are lossy: they discard information the eye is least likely to notice, particularly fine colour variation, and the quality setting controls how aggressively. The loss is permanent and it compounds — re-compressing an already-compressed JPEG degrades it again, which is why you should always work from the original rather than repeatedly saving the same file.

PNG is lossless, so the quality slider does not apply to it. It stores exact pixel values, which makes it the right choice for screenshots, diagrams, logos and anything containing text or sharp edges, where JPEG’s artifacts are obvious. It is the wrong choice for photographs, where it produces files several times larger than JPEG for no visible benefit.

One consequence of JPEG having no transparency channel: converting a PNG with a transparent background to JPEG has to fill that background with something. This tool fills it with white, which is the usual expectation — but if you need the transparency, keep the file as PNG or WebP.

Frequently asked questions

Are my images uploaded to a server?

No. Every image is decoded, resized and re-encoded by your own browser using the Canvas API. The files never leave your device, which also means the tool keeps working offline once the page has loaded.

Why did one of my images get larger instead of smaller?

Some images are already optimally compressed, and re-encoding them adds overhead rather than removing it. When that happens the tool keeps your original file and tells you so, rather than handing you a worse version.

What quality setting should I use?

For photographs, 70–80 is usually indistinguishable from the original at normal viewing sizes. Below 50 you will start to see blocking around edges and in flat gradients such as skies. Screenshots and images with text need higher settings, or PNG, because JPEG artifacts around sharp edges are very visible.

Should I choose WebP or JPEG?

WebP typically produces files 25–35% smaller than JPEG at equivalent quality and is supported by every current browser. Choose JPEG only when the file has to be opened by older software that predates WebP support.

Will this rotate my phone photos correctly?

Yes. The image is decoded using its EXIF orientation, so portrait photos taken on a phone stay upright instead of ending up on their side.

Why can't I compress GIF or SVG files?

Compressing a GIF through a canvas would flatten it to a single frame and silently destroy the animation. SVG is a vector format — converting it to pixels loses its ability to scale. Rather than quietly damage those files, the tool declines them.