Image Compressor
Upload an image and shrink it by adjusting the compression quality, with a live preview and file-size comparison. Compression happens with canvas directly in your browser — the image is never uploaded to a server.
How it works
- Select an image from your device using the file picker.
- Choose the output format (JPEG or WebP) and adjust the quality level with the slider.
- The image is drawn onto a hidden <canvas> and re-encoded with canvas.toBlob() at the chosen format and quality.
- The original size, compressed size, and reduction percentage are shown, along with a preview of the result.
- Download the compressed image with a single click.
Use cases
- Reduce photo file sizes before uploading them to a website or posting on social media.
- Optimize images to improve a website's load times.
- Compress screenshots or large images before sending them by email or chat.
- Visually compare the results of different quality levels before exporting.