Compress PNG Images

Shrink PNG files by up to 80% and keep the transparent background. Smart color reduction makes them tiny with no visible change.

Loading tool…

How to Compress a PNG

  1. Add your PNG files. Drag them into the box or click "Choose Images".
  2. Let it compress. Each PNG gets optimized with 256 colors by default.
  3. Want it smaller? Choose fewer colors or a smaller max width, then click Compress again.
  4. Download. Save your files, or get them all as a ZIP.

How PNG Compression Works

PNG is a lossless format. That's why PNG files are often big. Our compressor uses color quantization. That's a fancy name for a simple idea:

  1. A normal PNG can use over 16 million colors.
  2. Most graphics and screenshots only need a few hundred.
  3. The tool picks the best 256 (or fewer) colors for your image.
  4. It saves a much smaller "indexed" PNG.

The result looks the same to the eye, but the file is often 60–80% smaller. Transparency is kept, including soft edges.

Choosing the Number of Colors

ColorsBest forSize
256Screenshots, logos with gradients, UI graphicsSmall, top quality
128Icons, flat illustrationsSmaller
64Simple logos, diagramsVery small
32Flat icons, simple shapesTiny, may show banding

Start with 256. If it looks perfect, try 128. Go back up if you spot banding (visible steps in smooth gradients).

When PNG Isn't the Right Format

PNG compression works best for graphics. For photos, PNG stays big no matter what. A photo saved as PNG can be 5–10 times larger than a JPG of the same picture.

If your PNG is a photo:

Read JPG vs PNG to learn when each format fits best.

Shrink Dimensions Too

A large PNG with 4000 × 3000 pixels will stay heavy even after color reduction. Set Max width to a smaller value, like 1920 or 1280 px, to cut the size further. Or use our image resizer for exact dimensions.

Safe and Private

Your PNG files never leave your device. The compression happens inside your browser using the open-source UPNG.js library.

Frequently Asked Questions

How do I reduce the size of a PNG file?

Add it to the compressor above. It reduces the colors to 256, which usually shrinks the file by 60–80% with no visible change.

Does PNG compression keep transparency?

Yes. Transparent and semi-transparent pixels stay intact.

Is PNG compression lossless?

Our method is "lossy" in colors but keeps every pixel's position. In practice, the image looks the same for most graphics and screenshots.

Why is my PNG still large after compression?

It's probably a photo. Photos have too many colors for PNG to shrink well. Convert it to JPG or WebP instead.

Is this PNG compressor free?

Yes. It's free with no limits, no sign-up and no watermark.