Compress a PNG to a target size

Compress a PNG toward a target size you choose, in KB or MB, while staying PNG.

PNG stays PNG and is compressed on this device toward your target size. Transparency is supported. Animated PNG (APNG) is not supported.

Your images are processed on this device and are never sent to a server.

This browser doesn't support the features needed for PNG compression

What this tool does

How to use it

  1. Select one or more PNG images.
  2. Enter a target size in KB or MB, or choose a preset.
  3. Compress and check whether the target was reached.
  4. If it wasn't reached, download the best candidate produced, or try lowering your target.

Important limitations

Privacy

Compression runs in a Dedicated Worker in your browser. PNG images are never uploaded externally.

Frequently asked questions

Why does my compressed PNG look different in gradient areas?

This tool reduces the number of colors used to shrink the file, and that can visibly affect semi-transparent or gradient regions, even though fully transparent and fully opaque areas stay reliable.

What happens if the target size can't be reached?

You're offered the closest candidate that was produced, clearly marked as not reaching your target, instead of a silent failure.

Does this ever convert my PNG to WebP?

No. This page always keeps the output as PNG. Use PNG to WebP conversion if you want WebP instead.

Is there a time limit?

Yes, processing a single image can take up to about 18 seconds before it times out.

Can I use this for animated PNGs?

No, animated PNG (APNG) files are rejected before compression starts.