How to compress PNG files
- Drop your PNG files onto the page or click Select files.
- Adjust the compression level if you want to trade a little colour accuracy for smaller files.
- Click Compress; transparent areas are kept.
- Compare the result with the original and download the PNGs or a ZIP.
Why PNG files get so big
PNG is lossless and normally stores up to 16 million colours per pixel plus transparency. Screenshots, logos, charts and illustrations rarely need that many distinct colours, yet a full-colour PNG still pays for them in file size.
Colour quantization explained
This tool picks an optimised palette of up to 256 colours that best represents your image and maps every pixel to it, then saves a palette-based PNG. On graphics and screenshots the result usually looks the same and is often 50–80% smaller. It is a lossy step, because colours are approximated. When quantization would not make the file smaller, or would harm an image badly, the tool falls back to saving it losslessly instead.
The approach works best on images with limited colours: interface screenshots, charts, diagrams, icons and flat illustrations. These often contain only a few hundred distinct colours, so a well-chosen palette of 256 is visually indistinguishable from the original.
When PNG isn't the right format
Photographs are a poor fit for PNG. If your image is a photo, convert it with PNG to JPG or PNG to WebP for a far smaller file. Smooth gradients can also show visible banding when reduced to a palette; check them in the before/after comparison.
Frequently asked questions
Is PNG compression lossless?
Colour quantization is lossy because colours are approximated. If it doesn't help, the tool saves the image losslessly.
Will transparency be preserved?
Yes. Transparent areas remain transparent in the compressed PNG.
How much smaller will my PNGs be?
Screenshots and graphics commonly shrink by 50–80%. Photographic PNGs shrink less and are better converted to JPG or WebP.
Why do I see banding in gradients?
A 256-colour palette cannot reproduce every shade of a smooth gradient. Use a gentler setting or a different format for such images.
Are my files uploaded?
No. All processing happens on your device.