Compress PNG Online

Compress PNG images with palette reduction, resizing, and best-effort target-size control.

Upload PNG

Choose, paste, or drag and drop a file here
Max file size: 1024 MB
or
Supported: PNG images. Max: 1GB.

About this tool

PNG compression works differently from JPG compression and the difference explains most of the confusion people have with this tool.

PNG is lossless by design. It already compresses and it does so without discarding anything, which is why there is no quality slider in the format the way there is with JPG. So when a tool makes a PNG smaller, it is not lowering quality in the JPG sense. It is reducing the number of distinct colors the file has to store.

How a PNG actually gets smaller

A standard PNG stores up to about sixteen million colors. Most PNG images use nowhere near that many. A logo might use nine. A screenshot of an application might use a few hundred. An icon set might use thirty.

Reducing the palette means mapping the image onto a smaller set of colors and storing that set once, rather than describing every pixel independently. For an image that was only ever using a handful of colors, this is close to free. The file can fall by seventy percent or more with no visible change at all.

That is why PNG compression results vary so wildly between images. It depends entirely on how many colors your image genuinely needs.

Which images compress well and which do not

Logos, icons, line art and flat color graphics compress enormously. These are the ideal case and often shrink dramatically while looking identical.

Screenshots of interfaces compress well, because operating systems and applications use a limited palette.

Diagrams, charts and illustrations with solid fills compress well.

Photographs compress badly. A photo contains thousands of subtly different shades and reducing that palette produces visible banding, where a smooth sky turns into stripes. If your PNG is a photograph, the better move is not compression but conversion. Use PNG to JPG or, if you need transparency kept, PNG to WebP.

Images with soft gradients or drop shadows sit in between. Reducing the palette too far makes the gradient step rather than flow, so check those at full size.

What to look at when checking the result

Open the compressed file at one hundred percent, not zoomed out. Look at gradients first, since banding appears there before anywhere else. Then look at the edges of transparent areas, because aggressive palette reduction can make a soft edge turn crunchy.

If both look right, the compression cost you nothing.

Transparency survives

PNG transparency is preserved by compression. The alpha channel is kept, although very aggressive palette reduction can reduce the number of transparency levels, which shows up on soft shadows and feathered edges before anywhere else.

Supported input and limits

PNG files up to 1GB, processed in your browser.

Related tools

For photographs, converting beats compressing: PNG to JPG or PNG to WebP. For a specific file size target use Compress to Target Size. For many files at once use Bulk Image Optimizer.

Frequently Asked Questions

Why did my PNG barely get smaller?

It is probably a photograph. PNG compression works by reducing colors and photographs need most of the colors they have. Convert it to JPG or WebP instead.

Does compressing a PNG lose quality?

It reduces the number of colors stored. On logos, icons and screenshots this is invisible. On photographs and gradients it can cause banding.

Is the transparent background kept?

Yes. Very aggressive compression can reduce the smoothness of soft edges, so check shadows and feathered edges at full size.

Why is there no quality percentage like JPG has?

PNG is a lossless format with no quality setting in its design. Compression works on the palette instead.

Should I use PNG or WebP for my website?

WebP. Lossless WebP keeps every pixel exactly and still produces a smaller file than PNG, so you get the saving without reducing colors at all.

Is there a size limit?

1GB per file.