Skip to content
TOOL FOR EVERYTHING
Open menu

Compress PNG images online

Choose a PNG and compress PNG files to a fraction of their size while keeping the transparent background, right in your browser.

Last updated Built and maintained by Rana Huzaifa

Your files never leave your device. Everything is processed in your browser and nothing is uploaded.

How to compress PNG files

  1. Press Choose PNG, or drop a PNG file onto the box.
  2. Keep 256 colours for the best balance, or choose fewer colours for a smaller file.
  3. Compare the original and new size, and check the preview on the checkerboard.
  4. Press Download compressed PNG to save it.

How the PNG compressor works

A PNG can store millions of colours, but most graphics, logos and screenshots use far fewer. The compressor finds the 256 (or fewer) colours that best represent your picture and stores each pixel as a small number pointing to that palette, instead of four full bytes. The same trick is used by well-known online PNG shrinkers.

Transparency is kept, including soft edges, so a logo still sits cleanly on any background. The work is done by UPNG.js, a free, open-source PNG encoder by the makers of Photopea, which loads once from a CDN; your image never leaves your device.

Why it saves so much

A full-colour PNG with transparency uses 4 bytes per pixel before compression. A 256-colour palette needs just 1 byte per pixel, a quarter of the data, and the repeated patterns then compress even further.

Saving = (original size − new size) ÷ original size × 100%.

Example

A 1,200 by 800 screenshot saved as a full-colour PNG of 900 KB often comes out around 250 to 350 KB at 256 colours, a saving of roughly 60 to 70%, with no difference you can see.

Photos saved as PNG shrink too, but smooth gradients can show slight banding with few colours. For photos, a JPG is usually much smaller.

Tips and common mistakes

Start at 256 colours

It looks the same as the original for almost every logo, icon and screenshot. Go lower only if you need a smaller file and the preview still looks right.

Photo with no transparency?

Convert it to JPG with the PNG to JPG converter, or use the image compressor to hit an exact size like 100 KB.

Resize first

A smaller image in pixels is always a smaller file. Shrink oversized screenshots with the image resizer before compressing.

Websites: try WebP

WebP keeps transparency and is often smaller still. The WebP converter makes one from your PNG.

Frequently asked questions

Does compressing a PNG keep transparency?

Yes. Transparent and semi-transparent pixels are kept, so the image still has a clean see-through background.

Is it lossless?

With Lossless selected, yes: the image is re-packed without changing a pixel, though savings are smaller. Colour reduction is lossy but usually invisible at 256 colours.

Are my images uploaded?

No. Compression runs in your browser. Only the small encoder library is downloaded, once, from a public CDN.

Why didn't my PNG get smaller?

It may already be optimised, or it may be a photo with many colours. Try fewer colours, or convert photos to JPG instead.

Can I compress JPG files here?

JPG and WebP files can be opened, but the result is always a PNG. For JPG photos, the image compressor makes far smaller files.