How to compress a PNG without losing quality

Updated

PNG is a lossless format, so compressing a PNG doesn't touch a single pixel — it strips redundant data, trims an oversized colour palette and drops metadata, leaving the image identical. Open your PNG in the EditItAll tools and export a smaller copy, entirely in your browser with nothing uploaded.

Do it now — free, in your browser

Compress PNG

Why compressing a PNG can't lose quality

PNG is a lossless format. Unlike JPEG or WebP, it never throws pixels away to save space — it stores an exact recipe for rebuilding the image, pixel for pixel. That's the whole point of the format, and it's why "compress PNG without losing quality" is almost a tautology: done properly, a compressed PNG decodes to a picture that is identical to the original.

So where does the saving come from? A PNG can simply be re-encoded more efficiently. The tool re-packs the same pixels, drops redundant data the original encoder left behind, trims an oversized colour palette down to the colours actually used, and strips metadata you don't need. None of that alters the image — it just writes a leaner file that rebuilds exactly the same picture.

Compress a PNG in your browser, step by step

Because the optimisation is lossless, you don't need a quality slider at all — there's nothing to trade away. You just re-export a tighter copy:

  • Open the PNG compressor and drop your file in — screenshots, logos, icons and exported graphics all work.
  • Let it re-encode. It re-packs the pixels, prunes the palette and removes leftover metadata to write a smaller file.
  • Preview to confirm it looks identical (it will), then export and download the lighter copy.

Everything runs on your device — you can disconnect from the internet after the page loads and it still works, which is the plainest proof your file is never uploaded. Need to shrink several at once? The full set of compression tools handles batches and exports them together.

When PNG is the wrong format for the job

Here's the honest limit: lossless compression only shrinks a PNG so far, and how far depends entirely on the content. Flat graphics — screenshots, logos, icons, line art, text, large areas of solid colour — compress beautifully, because they contain the kind of repetition a lossless encoder can exploit.

A photograph is the opposite. Almost every pixel differs slightly from its neighbours, so there's little repetition to squeeze, and a photo saved as PNG stays enormous — often several times larger than it needs to be. The fix isn't a better PNG; it's a different format. Converting the photo to JPG or WebP uses lossy compression to drop detail your eye won't miss, and the file collapses to a fraction of the size. That is a genuine trade — you give up PNG's perfect fidelity — but for a photo on the web it's almost always the right call.

Get the most out of every PNG

A few habits make PNG compression reliable:

  • Match the format to the content. Keep PNG for anything flat and crisp; reach for a lossy format for photos. The PNG format guide covers where it shines and where it doesn't.
  • Let the palette shrink. If a graphic only uses a handful of colours, a well-optimised PNG stores just those, which can cut the size sharply with zero visible change.
  • Keep transparency in mind. Lossless PNG optimisation preserves the alpha channel, so anything transparent stays transparent — only switching to a format like JPG would flatten it.

Working with photos as well as graphics? The companion guide on compressing images without losing quality walks through choosing quality levels and formats across JPG, WebP and AVIF.

Ready to try it?

Free, no sign-up, and nothing you open ever leaves your device.

Frequently asked questions

Does compressing a PNG reduce its quality?+

No. PNG is lossless, so a properly compressed PNG is pixel-for-pixel identical to the original. The savings come from re-packing the same data more efficiently, not from discarding any of the image.

Why does my PNG barely get smaller?+

Almost certainly because it's a photograph. PNG only compresses flat graphics well; photos have too much fine variation to squeeze. Convert the photo to JPG or WebP and it will shrink dramatically.

Are my PNG files uploaded to compress them?+

No. Compression runs entirely in your browser, so your file never leaves your device. You can go offline after the page loads and it still works.

Is it better to compress a PNG or convert it?+

For flat graphics, compress the PNG — it stays lossless and identical. For photographs, convert to JPG or WebP; a lossy format gives a far smaller file at the same visible quality.

Will compressing a PNG remove transparency?+

No. Lossless PNG optimisation keeps the alpha (transparency) channel intact. Only switching to a format without transparency, such as JPG, would flatten it — WebP preserves transparency if you need it.

Related guides

More guides on compressing images →