How to use the image compressor
- Choose a JPG, PNG or WebP image. It is compressed straight away with the current settings.
- Pick the output format: JPEG works everywhere, while WebP is usually smaller at the same visual quality.
- Move the Quality slider between 10 and 100. Lower numbers give smaller files but more visible artifacts. The image is compressed again when you release the slider.
- Optionally enter a Max width in pixels. Wider images are scaled down proportionally; narrower ones are left as they are.
- Check the original size, the compressed size and the percentage saved, look at the preview, then press Download.
Your files stay on your device
Compression runs entirely in your browser using its built-in image encoder. Your image is never uploaded, stored or seen by anyone else.
How the saving is calculated
Saved = Original size − Compressed size
Saved % = Saved ÷ Original size × 100, rounded to one decimal place.
When a max width is set, the new height keeps the original proportions:
New height = Original height × Max width ÷ Original width
Worked example
A 4,000 × 3,000 px photo of 2,400,000 bytes (2.29 MB) with a max width of 1,600 px is first scaled to 1,600 × 1,200 px. If the compressed file comes out at 600,000 bytes (585.9 KB), you have saved 1,800,000 bytes, which is 75%.
The actual size you get depends on the picture itself: busy, detailed scenes need more bytes than smooth skies or plain backgrounds.
When the result is larger
Sometimes the compressed file is bigger than the original. This happens when the original was already well optimized, or when a small graphic is turned from PNG into a photo format. The tool warns you and offers a Keep original button so you never end up with a worse file. Lowering the quality or setting a max width usually helps.
Good to know
- For photos on websites, a quality of 70 to 85 is a good balance between size and appearance.
- Reducing the width often saves more than lowering the quality. A 1,600 px wide image is plenty for most screens.
- JPEG cannot store transparency. Transparent areas of a PNG or WebP become white when saved as JPEG; choose WebP to keep a smaller file without a white background.
- If your browser cannot create WebP files, the tool tells you and saves a PNG instead.
- Limits: files up to 25 MB and images up to 12,000 px per side.