Image Compressor
Reduce image file size with an adjustable quality slider — processed entirely on your device.
Your image is processed on your device and never uploaded.
What is the image compressor?
An image compressor reduces the file size of a photo or graphic so it loads faster and uses less storage or bandwidth. This tool does it entirely in your browser using the HTML canvas, which means your images are never uploaded — a real privacy advantage over server-based compressors. It is ideal for shrinking photos before emailing them, attaching to a form, or publishing on a website.
How it works
When you select an image, the tool draws it onto an off-screen canvas at its original dimensions (or a smaller size if you scale it down). It then re-encodes the canvas to JPEG or WebP at the quality level you choose with the slider. Lower quality discards more fine detail and colour precision, producing a smaller file; higher quality preserves more at the cost of size. Because re-encoding is lossy, the tool shows the before and after sizes so you can find the best balance for your needs.
Worked example
Load a 4 MB smartphone photo, set quality to 70% and export as JPEG. The re-encoded image typically drops to well under 1 MB with little visible difference on screen. Reduce the output dimensions to 50% as well and the file can fall below 300 KB — perfect for a fast-loading web page. You can compare the original and compressed previews side by side before downloading.
Frequently asked questions
Are my images uploaded to a server?
No. Compression happens entirely on your device using the canvas. Your images never leave your browser.
Which formats can I export?
You can export JPEG or WebP. WebP usually produces smaller files at the same quality, but check that your target platform supports it.
Why does a PNG sometimes get larger?
PNG is lossless and best for graphics with few colours. Photographs compress far better as JPEG or WebP, so the tool re-encodes to those formats.
Does compression reduce image dimensions?
Only if you choose to scale it down. By default dimensions stay the same and only the encoding quality changes; scaling further reduces size.
Will I lose quality?
JPEG and WebP are lossy, so some detail is discarded. Use the preview and size readout to pick a quality level where the loss is not noticeable.
Related tools
- QR Code GeneratorTurn any link or text into a downloadable QR code — generated locally, with no watermark.
- JSON Formatter & ValidatorBeautify, minify and validate JSON with clear error messages — nothing is uploaded.
- Unit ConverterConvert between metric and imperial units for length, weight, temperature, volume and speed.