Image Compressor

Compress JPG, PNG and WebP images without losing quality.

This tool runs entirely in your browser. Your files are never uploaded to a server.

Drop an image here or click to upload (JPG, PNG, WebP)

What this tool does

Recompresses a JPG, PNG or WebP image using an adjustable quality slider, reducing file size directly in your browser.

How to use it

Upload an image, then drag the quality slider between 10% and 100% (starts at 70%). The compressed result, its new file size, and the percentage saved update automatically each time you move the slider.

Worked example

A quality setting of 70% typically cuts a JPEG photo's file size significantly compared to the original, with a visually small quality trade-off; dragging the slider down to 30-40% saves more space but introduces more visible compression artifacts, especially in areas with fine detail or text.

Output format

PNG input stays PNG, since the compressor draws the image onto a canvas and re-encodes it with the same MIME type. JPG and WebP input are both re-encoded as JPEG — this tool does not produce a WebP output file, even when your original image was WebP.

Why PNG doesn't shrink much with the quality slider

The canvas API's PNG encoder is lossless, so the quality slider has little to no effect on a PNG's file size — PNG file size mainly depends on the image's color complexity and dimensions, not a quality setting. For a PNG that needs to get meaningfully smaller, converting it to JPEG (accepting some quality loss) or reducing its dimensions will do more than adjusting quality alone.

Limitations

This resizes nothing — only quality/re-encoding changes size, so a very large image stays large in pixel dimensions even at low quality. It doesn't strip EXIF metadata explicitly, doesn't support batch processing of multiple files at once, and doesn't offer format-specific optimizations like WebP's own lossy/lossless modes.

Scope, sources and privacy

Compression uses the browser's native Canvas API (HTMLCanvasElement.toBlob), the same mechanism built into every modern browser. Processing happens entirely on your device; your images are never uploaded to a server.

Frequently Asked Questions

Are my images uploaded to a server?
No — compression runs entirely in your browser via the Canvas API, using your device's own processing power; the image file never leaves your computer.
Which formats are supported, and what do I get back?
You can upload JPG, PNG or WebP. PNG stays PNG; both JPG and WebP input are re-encoded as JPEG, so the compressor never outputs a WebP file.
Does compression reduce quality?
Yes, to some degree at any setting below 100% — you control the trade-off with the slider; PNG barely changes size regardless of the slider since its encoder is lossless.