How to compress images
Large image files slow down websites, blow past email attachment limits and fill up storage. This tool shrinks JPG and PNG images by re-encoding them at a quality level you choose, and optionally scaling them down to a maximum width. You see exactly how much you saved before you download.
All processing happens in your browser using the HTML canvas — your image is never uploaded. That is faster than upload-based services and private, ideal for photos, screenshots and scans.
Quality vs file size
For JPG, the quality setting controls how aggressively the image is compressed. Values around 70–80% are a sweet spot: much smaller with little visible difference. Below 50% you start to see artefacts. PNGs (often screenshots or graphics) benefit most from reducing the pixel dimensions via the max-width setting.
Step by step
- Choose a JPG or PNG using the drop zone.
- Set the quality and, optionally, a maximum width.
- Click Compress and download the smaller image.
Example
A phone photo 4,000 pixels wide is often 3 to 5 MB. For a website, 1,600 pixels is usually plenty. With a max width of 1,600 and 75% quality, the photo typically shrinks to a few hundred kilobytes without any visible difference on screen. Before, after and savings are shown before you download.
Recommended settings
- Website and blog: 1,600 to 2,000 px wide, 70 to 80% quality
- Email attachment: 1,200 to 1,600 px, 70%
- Social media: 1,080 px for Instagram, 80%
- Printing: original width (0) and 85 to 90%
Fast-loading images improve your website's speed and its Core Web Vitals, which Google takes into account for rankings.
Frequently asked questions
Is PNG transparency preserved?
No. The output is a JPG, and JPG has no transparency, so transparent areas get filled in. Keep the PNG for logos with a transparent background.
Is my image uploaded?
No. Compression runs entirely in your browser. Nothing is sent or stored.
Which formats are supported?
JPG and PNG. The output is a JPG to get the best compression for photos.
Does quality suffer?
You control the trade-off with the quality slider. At 70–80% the difference is usually invisible.