About Compress PNG
Compress PNG is a free browser tool that makes PNG images smaller without uploading them. You can reduce colours to 256, 128, 64, 32, 16 or 8 using colour quantisation with UPNG.js, or run a lossless recompression that preserves every colour. Transparency and alpha channels stay intact. The tool shows each file size before and after, plus the percent saved and a combined total for all files. If the compressed result is larger than the original, the original file stays. You can process many files at once and download either individual results or a ZIP. This suits web designers, content editors, developers and anyone who needs smaller PNGs for web pages or emails and wants local, private processing.
How to use it
- 1Select or drag PNG files into the tool.
- 2Choose a colour count (256, 128, 64, 32, 16 or 8) or pick lossless recompression.
- 3Click Compress to run the process in your browser.
- 4Download each result or a single ZIP with all compressed files.
Worked example
Input: logo.png (1.24 MB). Option: reduce to 64 colours. Result: logo-64.png 178 KB. Displayed stats: original 1.24 MB, compressed 178 KB, saved 85.6%. File kept locally and downloaded to your device.
How it works
Makes PNG files smaller by reducing them to 256, 128, 64, 32, 16 or 8 colours (colour quantisation with UPNG.js), or by lossless recompression that keeps every colourTransparency is keptShows the size before and after and the percent saved for each file and in totalIf a PNG is already smaller than the result, the original is keptMany files at once, ZIP downloadRuns in the browser: files are never uploadedResults download straight to the deviceSource: PNG specification (W3C)pngquant - lossy PNG quantisationUPNG.js repository. Last checked 5 November 2026.
What it is good for
- Runs entirely in your browser so files never leave your device.
- Keeps transparency and preserves original when compression would grow the file.
- Batch processing and ZIP download for many files at once.
- Reducing colours can cause banding on gradients and photo images.
- Does not convert to WebP or AVIF; dimensions and pixel resolution do not change.
Questions people ask
How does Compress PNG actually reduce file size?
It uses two methods. One is colour quantisation with UPNG.js to lower the number of colours to 256, 128, 64, 32, 16 or 8. The other is lossless recompression that re-encodes PNG data without changing colours.
Will my image transparency be preserved?
Yes. The tool keeps alpha channels and transparency when you compress to PNG. If you choose lossless recompression every pixel value stays the same.
Is compression lossless or lossy?
You choose. Lossless recompression keeps every colour and only optimises encoding. Colour quantisation is lossy because it reduces the palette; that gives larger size savings but may change detailed gradients.
Can I process many images at once?
Yes. You can add multiple PNG files and compress them in one run. The tool shows size before and after for each file and a combined percent saved, and you can download a ZIP with all results.
Are my images uploaded to a server?
No. Compression runs in your browser using UPNG.js, so files are not uploaded to a remote server. Results download straight to your device.
How do I pick the right colour count?
Start with 256 colours for photos or detailed images, then try 128 or 64 to see visual impact. Use 32, 16 or 8 only for simple graphics or logos with flat colours. If you see banding, use a higher colour count or choose lossless recompression.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.