What Is a PNG Compressor?
A PNG compressor reduces the file size of PNG images. PNG is the go-to format for graphics that need sharp edges or transparency, such as logos, icons, UI elements, screenshots, diagrams and illustrations. But PNG's lossless compression often produces surprisingly large files, especially for screenshots and detailed images saved with millions of colours. Large PNGs slow down websites and apps and bloat design files.
This free PNG compressor uses colour quantization: it analyses the image and builds an optimal palette of up to 256 colours, then saves an indexed PNG with a full alpha channel. The popular TinyPNG service uses the same approach. Because the palette is chosen cleverly, the result looks almost identical, but files typically shrink by 50–80%. Everything runs in your browser, so there are no upload limits and no privacy concerns.
How to Compress PNG Files
- Drop your PNG files into the upload area. Batch compression is supported.
- Choose a colour palette. 256 colours is recommended, and fewer colours give smaller files.
- Optionally set a max size to downscale oversized graphics.
- Compare before and after with the slider, then download individually or as a ZIP.
How Many Colours Do You Need?
| Palette | Best for | Typical saving |
|---|---|---|
| 256 colours | Screenshots, illustrations, photos with transparency | 50–75% |
| 128 – 64 colours | UI graphics, charts, simple illustrations | 60–85% |
| 32 – 16 colours | Logos, icons, flat design, diagrams | 70–90% |
| Lossless | Pixel-perfect assets, medical or technical images | 10–40% |
Features
- Smart colour quantizationOptimal palettes that preserve gradients and edges.
- Full transparency keptAlpha channel is preserved, including semi-transparent anti-aliased edges.
- Lossless modeRe-optimises PNG encoding without changing a single pixel.
- Batch processingCompress many PNGs and download a ZIP.
- Before/after sliderVerify quality visually.
- Private and unlimitedNo file-count or size caps, and no uploads.
Why Are PNG Files So Big?
A standard 24-bit or 32-bit PNG can store over 16 million colours per pixel, and it compresses losslessly by finding repeating patterns. Photographs, gradients and screenshots with anti-aliased text contain few exact repeats, so lossless compression can't shrink them much. An 8-bit indexed PNG stores each pixel as a single byte referring to a palette of at most 256 colours. That both reduces raw data by up to 75% and creates many more repeating patterns for the compressor to exploit.
PNG Compressor vs Converting to JPG or WebP
- Keep PNG when you need transparency, sharp text and edges, or broad compatibility, such as logos, icons and screenshots.
- Convert to JPG for photographs without transparency. They'll be even smaller (see PNG to JPG).
- Convert to WebP for websites. WebP supports transparency and is often smaller still (see PNG to WebP).
How PNG Compression Works
PNG is a lossless format, so a standard PNG stores every pixel exactly. Its size is mostly determined by how many different colours an image contains and how repetitive the pixel patterns are. A full-colour PNG can hold over 16 million colours, but most screenshots, logos, icons and illustrations use far fewer.
This PNG compressor uses colour quantisation. It chooses the best palette of up to 256 colours for your image and maps every pixel to it, then stores the result as an indexed PNG. Because each pixel then needs one byte instead of four, and the patterns become more repetitive, files typically shrink by 60–80%. The palette includes alpha values, so semi-transparent edges and shadows are preserved.
When to Choose Fewer Colours
- 256 colours: almost indistinguishable from the original for most graphics and screenshots.
- 64–128 colours: great for icons, UI images and flat illustrations.
- 16–32 colours: logos and simple diagrams with few colours.
- Lossless: when pixels must stay exact, use the Lossless PNG Optimizer.
Gradients and photos are the hardest cases for palette compression, because they can show banding. For photographic content, WebP or JPG is usually the better format.
Frequently Asked Questions
Why does my compressed PNG show banding?
Smooth gradients need many colours. Increase the colour count to 256, or save photographic images as JPG or WebP instead.
Does PNG compression keep transparency?
Yes. The compressed PNG keeps full alpha transparency, including soft semi-transparent edges.
Is this the same as TinyPNG?
It uses the same technique (colour quantization to an indexed palette), but runs in your browser, so there are no upload limits or file-count caps, and your images stay private.
Is PNG compression lossy?
Colour reduction is technically lossy because some colours are merged, but at 256 colours the difference is rarely visible. Choose "Lossless only" if every pixel must stay identical.
Why didn't my PNG get smaller?
Some PNGs, such as tiny icons or files already optimised with a palette, can't be reduced further. The original is kept so you never get a bigger file.
Are my files uploaded?
No. Compression happens entirely in your browser.