Compress PNG files without losing a pixel

Lossless optimisation with OxiPNG, on your device. Transparency and every pixel stay exactly as they were.

On your device. Nothing is uploaded.
Pasting a picture works too
Output
Size and quality

Aims for a much smaller file that still looks right. Use Compare to check.

Resize

What lossless means here

A PNG stores its pixels with a compression method that can be done well or badly. Most programs do it quickly rather than well. OxiPNG tries many more ways of packing the same pixels and keeps the smallest, so the file gets smaller while the picture stays bit-for-bit identical.

Because nothing is discarded, the saving depends on how wastefully the original was written. Screenshots, logos and interface graphics often shrink noticeably. A PNG that was already optimised will come back unchanged.

When a PNG is the wrong format

PNG is built for flat colour, sharp edges and transparency. It is a poor fit for photographs: a photo saved as PNG is far larger than the same photo as a JPG or WebP, and no lossless optimiser can fix that.

If your PNG is a photo, or you need a much smaller file than lossless can give, switch the output format to WebP. WebP keeps transparency and is far smaller. Choose JPG only when the picture has no transparent areas, because JPG fills them with white.

Target sizes and PNG

A lossless format has no quality setting to lower, so when you ask for a target size the only way to reach it is to reduce the pixel dimensions. The tool does that in steps and reports the scale. For a fixed size with the original dimensions, convert to WebP instead.

Compress PNG: common questions

Will my transparent background be kept?

Yes. PNG output keeps full transparency. WebP and AVIF output keep it too. JPG cannot store transparency.

Why is the saving smaller than on other sites?

Some sites reduce the number of colours in a PNG, which is a lossy change. This tool is lossless: the picture you get back is identical to the one you put in.

Is the PNG uploaded anywhere?

No. The optimiser runs in your browser.

Does it work on PNG screenshots?

Yes, and screenshots are where lossless optimisation tends to work best.

Keep going

All tools

Read more

How your files stay on your device