Compress Image
Compress JPG, PNG and WebP images in your browser — quality slider, target file size in KB, resize and batch ZIP download.
Options
Choosing a target size switches the quality slider off: the tool binary-searches the quality, then steps the pixel size down if the target is still out of reach.
Before and after
Results
How to compress an image
- Drop one or more pictures in — JPG, PNG, WebP, GIF, BMP and AVIF are all accepted.
- Either drag the quality slider, or tick Aim for a file size of at most and type a number in KB. Add a maximum width or height if the picture is larger than it needs to be — resizing usually saves more than quality ever will.
- Press Compress, drag the divider to compare against the original, then download the file or the whole batch as a ZIP.
FAQ
How does the target size work?
The tool re-encodes the picture several times, binary-searching the quality value until the result fits under your limit. If even the lowest quality is too big, it scales the image down in steps and tries again, so you always get a file under the target rather than a failure.
Can PNG really be compressed?
Yes. Below quality 96 the PNG is re-encoded with a reduced colour palette and dithering, which often cuts a screenshot or illustration by 60–80% while keeping the alpha channel and staying a real PNG. At 96 and above the PNG is written losslessly.
Which format should I choose?
Keep the original format when you need drop-in replacements. Choose WebP for the web — it is typically 25–35% smaller than JPG at the same quality and still supports transparency. Choose JPG when the file has to open anywhere.
Are my images uploaded?
No. Compression runs in this tab with canvas and a PNG encoder compiled to JavaScript; nothing is sent to a server.