About the Image Compressor
The Image Compressor re-encodes a picture as a JPEG at the quality level you choose and shows the original and compressed versions next to each other with their file sizes. It is for anyone who needs to make a photo small enough for an email attachment, a web form limit or a faster-loading page.
How it works
The image is decoded in your browser and drawn onto a canvas, scaled down first if you chose a Max width. The canvas is then exported as JPEG (on a white background) or WebP at the selected quality, so the browser's own encoder decides how much detail to discard. Moving the slider re-encodes the image after a short pause.
JPEG compression works on 8 × 8 pixel blocks, converting them into frequency components and rounding off the high-frequency detail more aggressively at lower quality. That is why smooth areas compress very well while sharp edges and text pick up visible artifacts first. WebP uses a newer method that is usually 25 to 35 percent smaller at similar quality. The size shown is the exact size of the file you download.
How to use
- 1
Drop an image on the box or click it to choose one from your device.
- 2
Drag the Quality slider, pick JPEG or WebP, and optionally a Max width to shrink large photos.
- 3
Compare the Original and Compressed previews and check the size reduction.
- 4
Click Download to save it with -compressed added to the original name. Your settings stay in the page link.
Worked examples
Phone photo for email
A 4.2 MB JPEG straight from a phone camera.
Exact savings depend on the photo's detail and how heavily the camera already compressed it.
Already-optimized image
A JPEG that was previously saved at low quality.
Re-encoding at a higher quality than the original cannot recover detail and may even make the file larger.
Frequently asked questions
Will compressing an image reduce its quality?+
Yes, a little. JPEG compression discards detail, and the lower the quality setting the more it removes. Around 60 to 80 percent the difference is usually hard to see while the file is much smaller.
Does my image get uploaded to a server?+
No. The file is read and re-encoded by your browser, and the download is created locally.
Why is my compressed file bigger than the original?+
If the original was already a heavily compressed JPEG or a small PNG with flat colors, re-encoding at a high quality can produce a larger file. Try a lower quality, or keep the original.
What happens to a transparent background?+
JPEG has no transparency, so transparent pixels are filled with white. Choose WebP to keep the transparency.
Does it change the image dimensions?+
Only if you pick a Max width. Shrinking a large photo to 1920 or 1280 pixels wide usually saves far more than lowering the quality.