PNG Compressor
Reduce PNG screenshots, logos and graphics to a smart color palette, keeping full transparency and the .png format.
Add PNGs & choose palette size
Fewer colors = smaller PNG. 256 looks identical to the original for most graphics and screenshots.
Compressed PNGs
How to use PNG Compressor
- Choose the palette size256 colors keeps graphics visually identical. Try 64 or 32 for flat icons and diagrams.
- Drop your PNGsEach image is quantized and re-compressed on your device, with the size saving shown.
- Compare & downloadCheck the preview, then download single files or a ZIP. Change the palette size to re-run instantly.
Lossy PNG compression with color quantization
A normal PNG stores every pixel as full 24-bit color plus alpha, and its compression is lossless. Re-saving it losslessly rarely saves much. The big win comes from quantization: finding the best palette of 256 or fewer colors for the image and storing each pixel as a one-byte index. For screenshots, UI graphics, logos and illustrations this typically cuts the file size by 50–80% while looking the same at normal viewing size.
This tool uses the open-source UPNG.js encoder (MIT license) to build the palette, including semi-transparent colors, and writes an 8-bit indexed PNG. It does not apply dithering, so smooth gradients and photographs can show banding at low color counts. For photos, a JPG or WebP will always be much smaller than any PNG. If quantization would not beat your original file, the original is kept.
Frequently asked questions
Is this lossy or lossless?
The palette options (256 down to 16 colors) are lossy: colors are merged into a limited palette. The “Lossless” option only recompresses the existing pixels without changing any color, which usually saves little but never alters the image.
Does it keep transparent backgrounds?
Yes. Alpha is part of the palette, so fully and partially transparent pixels are preserved. Logos with soft anti-aliased edges keep their edges.
Why do gradients look banded?
A smooth gradient can contain thousands of slightly different colors. Squeezing them into 256 or fewer produces visible steps. Use a higher color count, the Lossless option, or convert photographic content to JPG or WebP instead.
How is this different from TinyPNG?
The idea is the same: palette quantization. The difference is where it runs. Here the PNG never leaves your device, and there is no file count or daily limit. Results can differ slightly because a different quantizer is used.
Which images benefit most?
Screenshots, charts, UI mockups, icons, maps and flat illustrations. Photos saved as PNG also shrink, but converting them to JPG or WebP will be far smaller still.
Related tools
All toolsPNG to WebP Converter
Convert PNGs to WebP and keep transparency at a fraction of the size.
PNG to JPG Converter
Convert PNG to JPG with your choice of background for transparent areas.
Image Compressor
Shrink JPG, PNG, and WebP file sizes before sharing or publishing.
JPG Compressor
Compress JPEG photos with a quality slider and live size savings.