Quick answer
Use Compress PNG and pick one of two routes:
- Lossless keeps every pixel and every transparency value exactly, but the saving is usually small. It is the safe choice when the file must not change.
- 256 colours (the default) gives much bigger savings. It rebuilds the image as a palette, and the result can differ slightly from the original, mostly in soft edges, glows and smooth gradients.
Either way the output stays a PNG with transparency. Open the Before / after preview on the checkerboard and look at the soft edges before you download. In one test with a synthetic logo, 256 colours made the file 57.4% smaller and Lossless 6.6% smaller, so there is no fixed percentage to expect. The results below are from that one file.
Steps
- Drop in one or more PNGs. Each card shows its size, dimensions and colour type, for example "RGBA, 8-bit".
- Under Compression mode, choose Lossless, 256 colours, 128 colours or 64 colours.
- Select Compress PNG.
- Under Before / after, compare the original with the result. The result shows either "Pixel-identical to the original" or "Largest visible colour change" out of 255. Set Preview background to Checkerboard to see semi-transparent areas.
- Download one file, or Download all as ZIP. Compressed files are named with
-minadded.
What the settings do
This part comes from the tool's code (src/lib/png-compress.ts) and its page text.
- Lossless re-encodes the same 8-bit pixels. After encoding, the tool decodes the result and checks it matches. 16-bit images are saved as 8-bit.
- 256, 128, 64 colours reduce the image to a palette of at most that many colours. Each palette entry has its own transparency value, so transparency is kept. The tool does not dither (it does not scatter pixels to imitate missing colours).
- If the image already has few enough colours, the tool encodes it exactly and says "already within this many colours".
- If the result is no smaller, Lossless keeps your original file, and the card says "Original already smaller — kept unchanged". In the colour modes you can tick "Download the original instead".
- Metadata is not copied to new files. An embedded colour profile is kept, and the file's row says so.
Why soft edges and gradients are the hard part
A palette PNG stores one table of colours and a matching table of transparency values, one per entry (W3C: Portable Network Graphics (PNG) Specification, Third Edition). A logo with a soft anti-aliased edge or a glow has many different transparency levels, and each combination needs its own entry. Cutting the palette therefore changes the edge values first.
The classic cure for gradients is dithering, but it has a cost: in the PNG book's own example of a palette image with transparency, dithering is the reason the file is "only" 3.85 times smaller (PNG: The Definitive Guide, chapter 8). Without it, a smooth ramp turns into bands. GIMP's manual describes this: fewer colours "may create unwanted effects (color banding) on smooth transitions" (GIMP: Convert Image to Indexed Colors).
What happened in the test
The test file is a synthetic logo: a 640 × 480 px badge with a smooth three-colour gradient, a soft glow, a flat lettermark and a separate gradient strip. It is 26,125 bytes (Compress PNG shows 25.5 KB, because it counts in 1,024s) and has 1,056 distinct colours and 38,908 semi-transparent pixels. Tested in headless Chromium on Linux.
- Lossless: 24,396 bytes (6.6% smaller). Still a full-colour PNG with transparency; every pixel identical (checked separately with ImageMagick: zero differing pixels).
- 256 colours: 11,142 bytes (57.4% smaller). A palette of 255 entries, each with its own transparency value. The largest transparency change was 23 out of 255, found in the anti-aliased edge of the badge.
- 128 colours: 8,485 bytes (67.5% smaller). Largest change 35 out of 255.
- 64 colours: 6,260 bytes (76.0% smaller). Largest change 58 out of 255. The faint tail of the glow shrank: 11,252 pixels that had a little transparency became fully transparent.
- Banding: the gradient strip had 400 distinct colours in the original and 92, 48 and 25 at 256, 128 and 64 colours. The longest run of identical pixels went from 3 to 9, 17 and 33 pixels. At 64 colours the bands and a diagonal banding in the badge were visible when the crops were enlarged.
- Transparency: all fully transparent areas stayed transparent at 256 and 128 colours. The soft edge kept its shape; its values moved by a few steps, as above.
The browser's own numbers matched an independent recalculation in Python and ImageMagick (colour counts of 1,056, 255, 127 and 63; zero difference in Lossless). One synthetic logo shows what to check, not what your image will do.
When the original is already well optimised, the tool says so: a copy of the same logo saved with maximum zlib compression (20,647 bytes) came back from Lossless as "Original already smaller — kept unchanged". Running 256 colours on a file the tool had already produced changed nothing.
What published numbers say
The CMS text used to promise "typical savings are 50–80%". That range appears in a blog post by the author of the library behind this tool, who says PNG minifiers "usually allow reducing the size of PNG files by 50 to 80 percent" and that there is "a tiny loss in the quality" (Photopea Blog: PNG minifier inside Photopea). The pngquant project says its conversion reduces size "often as much as 70%" and "preserves full alpha transparency" (pngquant: lossy PNG compressor). Both are claims about their own tools and sample images, not benchmarks of this one. Our logo gave 57.4% to 76.0% in the colour modes.
When PNG is the wrong format
- Photographs. A PNG made from a photo-like test image was 2,407,092 bytes. Lossless could not improve on it, and 256 colours cut it by 61.5%, but with a largest colour change of 51 out of 255. The same pixels saved as a JPEG at quality 75 (with Pillow, not this tool) were 220,624 bytes. MDN says PNG is preferred "for more precise reproduction of source images, or when transparency is needed" (MDN: Image file type and format guide). For a photo with no transparency, use How to Compress JPEG Images Without Visible Blur.
- Logos that must stay exact. Use Lossless, or keep the original.
Troubleshooting
- Banding in a gradient. Go up a step (64 to 128 to 256), or use Lossless.
- Soft edges look different on a coloured background. Switch Preview background between Checkerboard and White, compare against the original, and go up a colour step or use Lossless.
- The file got bigger or stayed the same. The original was probably already optimised. In Lossless the tool keeps your original. In the colour modes, tick "Download the original instead".
- "Transparency was lost in this output". Use the original; the tool flags this when a result has no transparency at all.
- Animated PNGs are refused, because only one frame would survive.

