How to use the Compress PNG tool
- Choose or drop a PNG file onto the page.
- Set the number of colours, anywhere from 2 to 256.
- Check the result for banding, especially in gradients and shadows.
- Download the palette PNG.
To compress a PNG, open Compress PNG on Archive.London, choose your file and pick how many colours to keep, from 2 to 256. The tool rebuilds the image as a palette PNG with transparency intact. Check that the preview still looks right, then download. Processing happens in your browser.
How many colours does a PNG really need?
A full-colour PNG with transparency stores four bytes for every pixel before compression. A palette PNG stores one byte per pixel plus a short table of colours, which is why quantisation can shrink a file so sharply.
The saving depends on the picture. Screenshots, logos, icons, diagrams and flat illustration often look identical at 256 colours and hold up well at 64 or fewer. Photographs are a different matter: smooth skies, skin and soft shadows contain thousands of close tones, and squeezing them into a palette produces visible steps known as banding. Start at 256, step down, and stop at the first setting where you can see the change. For photographs, JPEG or WebP is usually the better route to a small file.
Lossy on colour, lossless afterwards
It helps to be exact about what this tool changes. Choosing the palette is the lossy step: every pixel is moved to the nearest of the colours that remain, and the original values cannot be recovered from the output. After that, the file is an ordinary PNG, so it is stored losslessly and can be opened and re-saved without further damage.
Transparency is kept, which makes the result suitable for logos and interface graphics placed over other content. As with every tool here, the work is done by your browser. The file is not uploaded, and because the image is rebuilt from its pixels, embedded metadata and colour profiles are not carried into the new PNG.
Why palette PNG suits line and lettering, not film
The division between graphics and photographs is older than any file format. Printers have long treated line work and continuous tone as separate problems, and the same split explains when a 256-colour PNG is the right choice.
A scanned colour transparency is continuous tone in its purest form: dense, saturated film with gradual changes in every shadow. Reducing it to a palette discards exactly what makes it worth scanning. A scanned caption sheet, a label on a negative sleeve or a studio stamp, by contrast, compresses very well. The analogue holdings of the Robert Harper Photograph Library are mostly medium-format colour transparencies, the kind of material that belongs in formats built for photographs.
Frequently asked questions
Does this PNG compressor lose quality?
Yes, in one specific way: it reduces the number of colours to between 2 and 256. For flat graphics the change is often invisible. For photographs and gradients it can show as banding. Once the palette is chosen, the PNG itself is lossless, so saving or copying the file again causes no further loss.
Will my transparent background be kept?
Yes. The tool keeps transparency when it converts the image to a palette PNG, so logos, icons and cut-outs still sit cleanly over other backgrounds. Soft, semi-transparent edges such as drop shadows are the areas most worth inspecting after a strong colour reduction, because they contain many subtle levels.
Why is my PNG so much larger than a JPG of the same picture?
PNG stores every pixel exactly, while JPEG discards detail to save space. A photograph has too much fine variation for lossless compression to work well, so the PNG is far bigger. If the image is a photograph and does not need transparency, converting it to JPG or WebP will save more than reducing its colours.
How many colours should I choose?
Begin at 256 and work down. Logos and simple icons with a handful of flat colours can often drop to 16 or 32. Screenshots and illustrations with shading usually need 64 to 256. If the picture shows banding even at 256, it is better suited to a photographic format than to a palette PNG.
Is my PNG uploaded to a server?
No. The colour reduction is carried out by JavaScript in your own browser, and the finished file is saved straight from the page. Nothing is uploaded or stored, there is no sign-up, and the tool works offline once loaded. Very large images may be limited by the memory available on a phone.
