Drop, paste or pick an image
JPG · PNG · WebP · AVIF · HEIC — up to 50 MB
Settings
- Original
- —
- Result
- —
Free account. Your images stay on this device.
Processing runs in this tab. Your images are never uploaded to a server.
PNG colour count: how many colours does your image need?
A regular PNG can hold millions of colours. Most logos, icons and screenshots use far fewer, so storing them in a small palette shrinks the file without a visible change.
| Colours | Suits | What to watch |
|---|---|---|
| Lossless | Pixel-exact assets, photos you must not alter | Only re-encodes; savings are usually small |
| 256 | Screenshots, UI mockups, illustrations with gradients | Rarely distinguishable from the original |
| 128 | Web graphics, charts, most product cut-outs | Soft gradients may start to band slightly |
| 64 | Logos, icons, diagrams with flat fills | Check shadows and anti-aliased text |
| 32 | Simple icons, line art, two-tone badges | Gradients turn into visible steps |
| 16 | Pixel art, favicons, very flat graphics | Only for images that really have few colours |
The saving depends on the picture. Try a lower setting, check the before/after slider, and step back up if you see banding.
Palette PNG in plain words
Instead of storing a full colour for every pixel, the file stores a short list of colours and each pixel points to one of them. Fewer entries means less data.
Flat graphics gain the most
Logos and UI screenshots have large areas of identical colour, so they drop to a palette with almost no visible change.
Photos in PNG are a special case
A photo saved as PNG has too many shades for a small palette. Keep it at 256 colours or convert it to JPG or WebP instead.
Transparency stays intact
Reducing colours does not flatten your PNG onto a background. The alpha channel is part of the palette, so cut-outs keep working on any page colour.
Soft edges are kept
Semi-transparent pixels around a logo or product are stored as palette entries with their own opacity, so edges don't turn jagged.
Test on dark and light
After compressing, place the PNG on both a white and a dark background. Faint halos are the first sign that the colour count is too low.
No white fill added
Unlike a JPG conversion, nothing is painted behind the image. What was see-through in the original stays see-through.
Getting the smallest PNG for your use
Colour count and pixel dimensions work together. Combine them for the lightest file that still looks right where it will be shown.
Resize before you reduce
A 4000 px screenshot shown at 1200 px wastes data. Set the longest side first, then choose the colour count.
No dithering, clean flats
The tool maps each pixel to the nearest palette colour without adding noise patterns, which keeps flat areas clean and compresses well.
When to stop using PNG
If a photo still weighs several megabytes at 256 colours, the format is the problem. A WebP or JPG will be far lighter.
Compress PNG: questions
How does this PNG compressor make files smaller?
It reduces the image to a limited palette of colours, the same idea behind popular lossy PNG optimisers, then writes a new PNG. Fewer distinct colours means much less data to store.
Will I lose transparency when I compress a PNG?
No. Opacity is stored in the palette alongside each colour, so fully and partly transparent pixels are preserved in the compressed PNG.
Which colour setting should I start with?
Start at 128 for most graphics and 256 for screenshots with gradients. If the before/after slider shows no difference, try the next step down.
What does the Lossless option do?
It re-encodes the PNG without changing a single pixel. That removes inefficient encoding and extra chunks, but the saving is modest compared with a colour reduction.
Why do I see stripes in the sky of my PNG?
That is banding: a smooth gradient needs more shades than the palette allows. Move up to 256 colours, or save photographic images as JPG or WebP.
Can I compress PNG files for a website logo or favicon?
Yes. Logos usually look identical at 64 colours or fewer, and pixel-perfect favicons can go as low as 16. Keep a lossless copy of the master file for later edits.
Related tools
Other Optimize tools people use alongside this one.
- FREEPopular
Compress Image
Shrink JPG, PNG and WebP files without visible quality loss.
- Runs in
- Browser
- Max upload
- 50 MB
Optimize≈1s - FREEIn browser
Compress JPG
Reduce JPEG file size with a quality slider and live preview.
- Runs in
- Browser
- Max upload
- 50 MB
Optimize≈1s - FREEIn browser
Compress GIF
Lighter animated GIFs for chat and email.
- Runs in
- Browser
- Max upload
- 50 MB
Optimize≈1s - FREEIn browser
Image Converter
Convert between JPG, PNG, WebP, AVIF and HEIC.
- Runs in
- Browser
- Max upload
- 50 MB
Optimize≈1s