LeanImg

Compress PNG Images

This free PNG compressor works in your browser, up to 10 files at a time. Smart is the default: it maps each PNG to a palette of up to 256 colors and keeps its transparency, so a 942.4 KB test image came out at 119.9 KB, 87% smaller. Don't want the palette? There's a lossless PNG option in Manual.

  • Free — no sign-up
  • No watermark
  • Your images never leave your device
Loading compressor...

How to compress a PNG

  1. Add your PNGs.

    Drop up to 10 files on the box or click it to pick them, 50 MB in all per pick. Once they're listed, Add images brings in more.
  2. Choose a mode.

    Smart's already selected and gives you the palette PNG. Manual adds a quality slider and the output format, where "PNG — No compression" is the lossless one.
  3. Compress.

    Press Compress. Each row shows its new size and what it saved.
  4. Download.

    Save one file from its row, or all of them with Save All as ZIP.

One transparent PNG, three settings

SettingOutputSaving
Smart (palette, the default)119.9 KB, PNG87% smaller
Manual, PNG — No compression (lossless)383.9 KB, PNG59% smaller
Target size, 100 KB95.4 KB, JPG on white90% smaller
LeanImg compressor in Smart mode: alpha.png, a 900×606 transparent PNG, reduced from 942.4 KB to 119.9 KB
Smart on a 900×606 transparent PNG: 942.4 KB down to 119.9 KB, 87% smaller, transparency kept.

How does a PNG compressor make files smaller?

PNG stores pixels with lossless compression. The W3C specification describes it as a format for "lossless, portable, well-compressed storage" of images, and repacking those pixels more tightly saves some bytes. There's far more to gain by reducing the colors first.

Smart does that. It maps every pixel to a palette of at most 256 colors, each with its own level of transparency, then saves the result as an ordinary PNG that any program opens. Our test image is a 942.4 KB PNG of 900×606 pixels with a transparent background, and it came out at 119.9 KB. That's about an eighth. Fully transparent areas stayed fully transparent, and soft edges stayed partly see-through, so a cut-out logo doesn't get a hard fringe.

Manual gives you a slider for the same palette route. It runs from 1 to 100 and starts at 80, and it sets how close the palette has to stay to the original colors: the lower you go, the further it's allowed to drift.

How to compress PNG without losing quality

To compress PNG files without losing quality, switch to Manual and pick "PNG — No compression" as the output format. This route skips the palette and only repacks the pixels. On our test image, every pixel you can see stayed as it was, and the file came out at 383.9 KB, 59% smaller. The only values that changed sat under fully transparent pixels, where there's no color to see.

Smart suits logos, icons, screenshots and flat illustrations, which don't use many colors to begin with. Gradients are harder. A sky or a soft shadow can break into visible bands once it's mapped to a palette. For those, and for a master copy you'll edit again, use the lossless route.

Can I compress a PNG to 100 KB?

Yes, with Target size, but you'll get a JPG. Type a limit in KB or press one of the buttons for 20, 50, 100 and 200 KB. The compressor lowers quality, then dimensions if it must, until the file fits. If it can't, the row says so. A JPG can't store transparency, so every clear area turns white.

Our 942.4 KB transparent PNG, set to 100, came back as alpha.jpg at 95.4 KB, with all 900×606 pixels kept and a white background where it'd been clear. A PNG that's at or below the limit isn't run at all, so it stays a PNG.

Want to keep the PNG format? Use Manual with "PNG — Smaller file size" and lower the slider. The row shows the new size after each run, so you can step the slider down and run it again.

Frequently Asked Questions

Is PNG compression always lossless?

In the format itself, yes. PNG stores pixels with lossless compression and doesn't have a lossy mode. Smart gets its bigger saving from a step before that, reducing the image to a palette of up to 256 colors, and that step does lose color detail. Manual's "PNG — No compression" output leaves it out.

How much can a PNG be compressed?

It depends on the image. A 942.4 KB PNG with a transparent background, 900×606 pixels, came out at 119.9 KB with Smart (87% smaller) and at 383.9 KB with the lossless option (59% smaller). A tiny two-color PNG of 573 B didn't get any smaller.

Will compressing a PNG reduce its quality?

Only on the palette route. Smart reduces a PNG to at most 256 colors, so what it costs depends on how many colors the image had: flat graphics don't have many to lose, while long smooth gradients can break into bands. The lossless option skips that step. On our test image it kept every visible pixel as it was, though it saved less.

Does a transparent background survive compression?

Yes, in Smart and in the lossless option. Fully transparent areas stay clear and soft edges stay partly see-through. Target size and JPEG output put white behind the image, because a JPG can't store transparency, while WebP output keeps it.

Why did my PNG barely shrink, or even grow?

It was already well packed. A PNG with few colors, or one an optimizer's already been through, has little left to remove and can come back a few bytes larger. A 573 B two-color checkerboard came back at 591 B from Smart, with "No savings" on its row. You'll always get the new file, so keep your original when that happens.

Why is my PNG so large in the first place?

Mostly pixel count. PNG keeps every pixel without loss, so a 3840×2160 screenshot holds about 8.3 million of them before any compression starts. If it's bigger than it'll be shown, crop or resize it first.

Can I compress several PNGs at once?

Yes, up to 10 files and 50 MB per pick, and a later pick adds to the same list. Each file gets its own row and download, or you can save them all as one ZIP. Everything runs in your browser, and no file is uploaded.

Should I convert a PNG to JPG or WebP instead?

For a photo without transparency, it's worth a try. In Manual, set the output to JPEG or WebP and compare the new size with the PNG's. JPEG puts white behind any transparent area, and WebP keeps it.

Other compression guides

Compress Images Online — Free Image Compressor

Other Image Tools