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.

Icon sizes (px)
px % KB

Converted on your device. Nothing is uploaded.

    How to compress a PNG

    1. 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.
    2. 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.
    3. 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

    Guides