Browser tool

Compress PNG

Reduce PNG file size by resizing and optional lossy color reduction. Transparency is preserved, and nothing is uploaded.

How PNG size worksPNG is lossless, so a quality slider does nothing. File size comes from pixel dimensions and the number of colors. Resize the image or reduce its colors to make it smaller.
Result will appear here.

How this tool works

What it does

Re-encodes your PNG at the dimensions you choose and, if you enable it, with fewer colors. PNG stays lossless for shape and transparency, so the main size levers are dimensions and color count.

Transparency kept

Alpha transparency is preserved through resizing and color reduction. For an even smaller file, converting to WebP or JPG often helps, but this tool will not change your format silently.

Privacy

The PNG is processed on your device with JavaScript. Nothing is uploaded to imgtoolsbase or any other server.

Compress PNG in your browser

Compress PNG is a private PNG optimizer that runs entirely in your browser. Because PNG is lossless, this tool focuses on the levers that actually shrink a PNG: smaller dimensions and fewer colors.

There is deliberately no quality slider here. Browser PNG encoding ignores quality, so a slider would be a control that does nothing. Resize or reduce colors instead, and the tool shows the before and after size.

How to use Compress PNG

  1. Add a PNG file with the upload box or by dragging it in.
  2. Choose a resize option to limit width, height, or scale percentage.
  3. Optionally turn on Reduce colors to lower color depth and shrink the file further.
  4. Click Process, compare the before and after size, then click Download.

Why use this tool

Resize to shrink

Lowering pixel dimensions is the most reliable way to reduce a PNG. Cap width or height, or scale by percent.

Optional color reduction

Turn on lossy color reduction to lower color depth. Fewer colors usually means a smaller PNG, with some banding.

Transparency preserved

Alpha stays intact. The tool does not flatten transparent PNGs onto a solid background.

Honest about format

If a smaller file matters more than lossless PNG, we suggest WebP or JPG, but we never change your format without asking.

Common uses for Compress PNG

Logos and icons

Trim oversized PNG exports while keeping crisp transparent edges.

Screenshots

Reduce large PNG screenshots by resizing to the size you actually need.

Web graphics

Lower page weight for PNG UI assets and diagrams.

Flat-color graphics

Color reduction works well on images that use a limited palette.

Frequently asked questions

Why is there no quality slider for PNG?

Browser PNG encoding ignores the canvas quality value, so a quality slider would not change anything. This tool shrinks PNGs by resizing and optional color reduction instead.

Will my transparency be kept?

Yes. Transparency is preserved through both resizing and color reduction. Transparent areas are not filled in.

My PNG did not get smaller. Why?

If the image is already small and uses few colors, re-encoding at the same size may not help. Try a smaller width or turn on color reduction, and the tool tells you when the output is not smaller.

Are PNG files uploaded anywhere?

No. PNG processing happens in your browser, so the file is never uploaded to any server.

Should I convert PNG to WebP or JPG?

For photos, WebP or JPG is usually much smaller than PNG. Use a WebP or JPG tool if lossless transparency is not required.

Related image tools

Tools that pair well with Compress PNG.