Compress PNG Images Without Losing Transparency
PNG is lossless, so the reliable way to shrink it is to reduce the number of colors or the pixel dimensions. This tool quantizes the palette and can cap the longest edge, keeping transparency intact. Drop a PNG to see the real byte savings before downloading.
Formats
PNG
Max file
80 MB
Processing
On-device
Upload
None
Settings
Smallest file that still opens on every phone, laptop, and upload form.
256 keeps photos intact. 64 is best for flat icons and logos.
How it works
Three steps. Nothing uploaded.
The file is opened, re-encoded, and written back to your device without touching a server.
- 01
Add PNG files
Drop a single image or a batch. Transparent logos, screenshots, and illustrations are supported.
- 02
Choose palette and size
256 colors is safe for most graphics. Drop to 128 or 64 for flat icons, or resize large screenshots.
- 03
Download smaller PNGs
Review the savings and save the files. Transparency remains intact.
How PNG compression actually works
PNG applies filters to each scanline and then compresses the result with deflate. The format is lossless, so a perfect re-encode can only remove inefficiency, not detail. Palette quantization goes further by storing an index per pixel instead of a full RGB value, which is why icons and screenshots shrink dramatically.
This tool compares the quantized result with a standard lossless re-encode and keeps the smaller one. If neither beats your original, it tells you instead of pretending.
FAQ
Questions, answered.
Can PNG be compressed without losing quality?
Truly lossless PNG optimization saves a small percentage by improving filters and deflate. Much larger savings come from palette reduction, which lowers the number of colors. This tool uses palette quantization and shows the result so you can judge it.
Will transparency be preserved?
Yes. The encoder keeps an alpha channel and a transparent palette index. Edges may become slightly harder at very low color counts, especially on soft shadows.
Why is my PNG so much larger than a JPG?
PNG stores every pixel losslessly, while JPG discards detail. A 4000 px screenshot can be 8 MB as PNG and 1 MB as JPG. If you do not need transparency, converting to JPG or WebP is usually the better choice.
Should I convert PNG to WebP instead?
For photos and complex images, WebP at 80% is often 30–60% smaller than PNG with transparency preserved. Use the WebP compressor if your destination supports it. Keep PNG for print, archival, and software that requires it.
How many colors should I keep?
Screenshots and UI graphics usually look fine at 256. Flat icons and logos can go to 64 or 32. Photographs suffer below 256 and should be converted to JPG or WebP instead.
On-device compression
Make it smaller. Keep it private.
Every compressor on this site runs inside your browser. No upload, no account, no watermark on the result.