Compress PNG files and keep the transparency

Your PNG is too big to upload or send, and you do not want to lose the transparent background.

Compress PNG
Drop PNG files hereChoose PNG photosor paste with Ctrl V · up to 50 filesUp to 50 · stays on your phoneNo file handy? Try a sample
  • Free, no sign-up
  • No upload
  • Up to 50 files
  • Free, no sign-up
  • No upload
  • Up to 50 files

How it works

Three steps, under a minute

Your PNG is too big to upload or send, and you do not want to lose the transparent background. Compress PNG files here: the colours are reduced smartly, transparency stays, and the file never leaves your device. The Compare view shows what changed before you download. Up to 50 files per batch, each up to 40 megapixels at full quality.

  1. 1

    Add your files

    Drop your PNG files on the tool.

  2. 2

    Compress

    Leave Colours at 256 for the best quality. Drop to 64 or 32 for flat graphics and icons to get a smaller file.

  3. 3

    Download

    Click Compress, open Compare to check gradients and edges, and download.

What you get

Built for real batches, not just one file

  • Cuts the colours to a palette of 2 to 256 and saves an indexed PNG.

  • Transparency is kept in the palette.

  • A Dithering checkbox, on by default, keeps gradients smooth.

  • Before and after Compare view to check the result.

  • Batch of 50, ZIP download, no upload.

Settings

How this PNG compressor shrinks a file

A normal PNG stores a full colour and a transparency value for every pixel. This PNG compressor builds a palette of up to 256 colours that fits your picture, then points each pixel at the nearest colour in it. That is much less data. The palette is built by splitting the colours along their widest ranges (median cut).

Dithering is the checkbox under the Colours slider. It spreads the small colour errors onto nearby pixels, so a gradient stays smooth instead of breaking into hard bands. It makes the file a little larger, so you can turn it off for flat logos and icons.

If the picture uses very few colours, the file stores each pixel in fewer bits. A palette of 16 colours or fewer uses 4 bits per pixel, 4 or fewer uses 2 bits, and 2 uses 1 bit. That is why a simple icon shrinks so far.

This is lossy: a photo with millions of colours is approximated by 256. On screenshots, interface graphics, logos and illustrations you will rarely see a difference. On photos with smooth skies you may see faint bands at low colour counts, and WebP is the better choice there.

Transparency

Compress a PNG without losing transparency

The transparency is stored with each colour in the palette, so clear areas stay clear and the file is still a PNG. Soft edges such as shadows use some of the palette slots. At very low colour counts a shadow can show steps, so check the edges in Compare and raise the Colours slider if needed.

In depth

Need the PNG under 100 KB?

This tool has no target size box. It works by colour count, so drag the Colours slider down (try 64, then 32) and read the new size in the results row. A large screenshot or a flat graphic can drop a long way. A big photo may not reach 100 KB this way.

If a form sets a hard limit, use Compress image to size. Keep PNG there and only the pixel size can shrink. Choose WebP or JPG output and it can hit the limit by lowering quality instead. JPG cannot keep transparency.

In depth

Optimise a transparent PNG

If transparency is the only reason you chose PNG, WebP is the drop-in swap. It has a full alpha channel and every current browser displays it. Pick WebP as the output in PNG to WebP, keep the quality at 85 or above to hold clean edges, and check the Compare view.

When to use it

When to keep PNG

  • Screenshots, UI, diagrams and text: PNG is already small and lossless. Re-encoding helps little. A smaller pixel size helps if the image is oversized.
  • Logos sent to a printer or designer: keep the PNG, or better, send the SVG.
  • An upload form that lists PNG only.

FAQ

Frequently asked questions

Can’t find an answer? The guides cover formats, sizes and privacy in depth.

Read the guides

Are my images uploaded to compress them?

No. Compression runs in your browser; the image never leaves your device. The Network tab in the browser’s developer tools shows no upload while the tool works.

Will compressing a PNG lose the transparent background?

No. Transparent areas stay transparent, and the result is still a PNG. Soft edges such as shadows can show faint steps at very low colour counts, so check them in Compare.

How do I compress a PNG to under 100 KB?

Drag the Colours slider down to 64 or 32 and read the size in the results row. This tool has no target size setting, so for an exact cap use Compress image to size and pick WebP or JPG output.

Why do gradients look blotchy and how do I fix it?

With fewer colours, a smooth gradient can break into bands. Tick Dithering and raise the Colours slider. If the image is a photo with a smooth sky, WebP will look better at a small size.

Why did my PNG barely shrink?

It was probably already an indexed PNG with a small palette, so there is little left to remove. Reduce the pixel size or switch to WebP instead.

Will compressing a PNG reduce its quality?

The colours are reduced to a palette. That is hard to see on graphics and screenshots at 256 colours, and it can show as faint banding on photo gradients. The Compare view shows exactly what changed.

Sources

Sources and further reading

Links checked 13 November 2026. Outside pages change, so check the date on them.

Related tools

More free tools

Done here? Make it look great.

Adjust, retouch and add effects in the full editor. Still 100% on your device.

Start editing