Compress PNG images
Make PNG files smaller while keeping them as PNG, transparency included. The page reduces each image to a palette of up to 256 colours, the same idea behind popular PNG shrinkers, but it runs entirely in your browser.
Converted on your device. Nothing is uploaded.
How to compress a PNG
- Add your imagesDrop them on the box above, click to choose them, or paste an image from the clipboard. You can add many at once.
- Check the settingsLeave Colours on 256 for most images, or try 64, 32 or 16 for flat graphics and icons. Choose Lossless to keep every pixel exactly. Each result shows its size before and after, so you can compare the options.
- DownloadSave each PNG with its Download button, or all of them at once with Download all (ZIP).
What a palette PNG is
A normal PNG stores a full colour value, and often a transparency value, for every pixel. A palette PNG (also called indexed colour) stores a list of at most 256 colours once and then, for each pixel, only its position in that list. Each palette entry can carry its own transparency, so soft shadows and anti-aliased edges over a transparent background still work. With fewer colours each pixel needs fewer bits, which is why 16 or 32 colours can make a file much smaller again.
Screenshots, logos, icons, charts and diagrams usually contain far fewer than 256 distinct colours, or colours so close together that nobody can tell them apart, so the palette version normally looks identical. Keep Lossless for images you will edit further, for pixel-exact references, and for photos or smooth gradients, where a limited palette can show visible bands. Photos are usually better as JPG or WebP anyway.
Dithering hides banding by mixing neighbouring palette colours in a fine, noise-like pattern, so a gradient looks smooth from normal viewing distance. The trade-off is that the pattern itself compresses less well, so a dithered file is somewhat larger, and it can make clean edges look grainy. Use it for gradients and photo-like areas; turn it off for flat graphics, text and pixel art.
Questions and answers
Is this lossless?
Not with a colour count selected: pixels are moved to the nearest of at most 256 colours, which is a small, usually invisible change. Choose Lossless in the Colours menu if every pixel must stay exactly as it was.
Will the transparent background be kept?
Yes. Palette PNGs can store transparency for each palette colour, so transparent and semi-transparent areas such as soft shadows are kept.
How many colours should I choose?
Start with 256, which looks the same as the original for most screenshots and graphics. Try 64 or fewer for logos and icons with a handful of flat colours, and go back up if you see bands or speckles.
Why is my compressed PNG not much smaller?
The original may already be a palette PNG, or it may be a photo with so much fine detail that even 256 colours compress poorly. For photos, JPG or WebP will be far smaller.
Are my images uploaded anywhere?
No. The page decodes and re-encodes each image with your own browser’s canvas. Nothing is sent to a server; once the page has loaded you can even go offline and it keeps working.
More converters
- WebP to PNG
- WebP to JPG
- AVIF to PNG
- AVIF to JPG
- AVIF to WebP
- HEIC to JPG
- HEIC to PNG
- HEIC to PDF
- HEIC to WebP
- TIFF to JPG
- TIFF to PNG
- TIFF to PDF
- JPG to TIFF
- PNG to TIFF
- WebP to TIFF
- HEIC to TIFF
- PDF to JPG
- PDF to PNG
- PDF to TIFF
- Camera RAW to JPG
- CR2 to JPG
- CR3 to JPG
- NEF to JPG
- PSD to PNG
- PSD to JPG
- PNG to WebP
- JPG to WebP
- PNG to JPG
- JPG to PNG
- SVG to PNG
- GIF to PNG
- SVG to JPG
- GIF to JPG
- PNG to GIF
- JPG to GIF
- WebP to GIF
- BMP to PNG
- BMP to JPG
- ICO to PNG
- JPG to PDF
- PNG to PDF
- WebP to PDF
- Image to PDF
- PNG to SVG
- JPG to SVG
- Image to SVG (vectorize)
- PNG to ICO
- Favicon generator
- JPG to ICO
- SVG to ICO
- WebP to ICO
- JFIF to JPG
- JFIF to PNG
- Compress image
- Compress JPG
- Compress PNG
- Resize image
- Compress to 100 KB
- Compress to 50 KB
- Compress to 20 KB
- Any image to any format
Guides
- How to save a WebP image as PNG or JPG
- Why do images save as WebP, and how do I get a JPG?
- Looking for a replacement after Save Image as Type was removed?
- How to open or convert HEIC photos on Windows
- How to download all images from a web page
- How to combine images into one multi-page TIFF, and split one