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
- Accepts PNG only, and always outputs PNG — never auto-converted to WebP.
- Reduces the image's color count in steps to shrink the file, only resizing dimensions if color reduction alone isn't enough.
- Supports transparency, including fully transparent pixels.
- You set the target size yourself, in KB or MB, using the same range as target-size compression.
How to use it
- Select one or more PNG images.
- Enter a target size in KB or MB, or choose a preset.
- Compress and check whether the target was reached.
- If it wasn't reached, download the best candidate produced, or try lowering your target.
Important limitations
- Reaching the exact target size is not guaranteed; if no candidate meets it, you're offered the best available result instead.
- Animated PNG (APNG) is not supported.
- Color-count reduction can visibly change semi-transparent areas and gradients, even though fully transparent and fully opaque pixels are handled reliably.
- Processing a single image can take up to about 18 seconds before it times out.
- If you want to convert to WebP instead of staying PNG, use PNG to WebP conversion.
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.