Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Compress PNG

Compress PNG

Shrink PNG images by reducing the color palette, keeping transparency and sharp edges intact.

Reduce PNG File Size in Your Browser

PNG is the format of choice for logos, icons, screenshots, and any graphic that needs crisp edges or a transparent background. Because it stores every pixel losslessly, PNG files can get heavy fast. This tool shrinks them with median-cut color quantization — it trims the palette to cut file size while the alpha transparency channel stays fully intact.

Private by design: every image is compressed directly in your browser with the HTML canvas. Nothing is uploaded to a server, so your graphics never leave your device.

What It's Good For

Logos & Icons

Trim the weight of flat-color graphics and UI icons without losing their transparent backgrounds.

Web Graphics

Serve lighter PNG assets to speed up pages while keeping sharp edges and clarity.

Bulk Optimizing

Compress up to 20 PNG files at once and download them together in a single ZIP.

How to Compress a PNG

1

Add Your Images

Drag and drop PNG files onto the upload zone, click to browse your device, or paste an image straight from the clipboard with Ctrl + V. You can load up to 20 images in one batch.

2

Set the Color Count

Drag the Colors slider to choose how many colors to keep, from 2 up to 256 (128 by default). Fewer colors mean smaller files; more colors preserve smooth gradients and subtle shading. Compression updates live as you slide.

3

Preview & Compare

Click a thumbnail to open the side-by-side preview, compare the original against the compressed version, and confirm the percentage saved before downloading.

4

Download

Save each compressed image on its own, or use Download All — three or more files are bundled into a single ZIP archive.

Tip: Flat graphics and illustrations with few distinct colors compress the most. Photographs saved as PNG usually get smaller by converting to JPEG or WebP instead.

PNG Compressor Features

Palette Reduction

A 2–256 color slider powered by median-cut quantization lets you balance file size against image fidelity.

Transparency Preserved

The alpha channel stays intact, so transparent backgrounds and soft edges remain exactly as they were.

Batch Compression

Process up to 20 images in one go and export three or more together as a ZIP archive.

Before/After Preview

A side-by-side view and a live summary bar show the original size, compressed size, and percentage saved.

Fully Browser-Based

No uploads, no sign-up, no waiting. Everything runs locally for total privacy and instant results.

Flexible Input

Add PNGs by drag-and-drop, file browser, or clipboard paste — whatever is fastest for you.

Color Count Guide

ColorsResultBest For
256Maximum palette, best qualityDetailed images, gradients
128Good balance for most imagesGeneral-purpose graphics
64Smaller files, some banding may appearSimple illustrations
16Very small files, heavy quantizationFlat icons, line art

Frequently Asked Questions

Does compressing a PNG lose quality?

Compression reduces the number of distinct colors, so images with many subtle shades may show slight banding at low color counts. For logos, icons, and flat graphics the result usually looks identical, and you can always raise the color count or check the preview before saving.

Does PNG compression keep transparency?

Yes. Only the color palette is reduced — the alpha transparency channel is kept fully intact, so transparent backgrounds and soft edges are unaffected.

How does palette reduction shrink the file?

A median-cut algorithm picks the most representative colors and maps every pixel to the nearest one. With fewer unique colors, PNG's lossless encoding packs the data far more efficiently, producing a smaller file.

What color count should I use?

128 colors works well for most images. Use higher values up to 256 for graphics with smooth gradients, and lower values (16–64) for simple icons and illustrations with only a few distinct colors.

Are my images uploaded to a server?

No. All compression happens entirely in your browser. Your images never leave your device, which keeps the tool safe even for private graphics and screenshots.

Should I use PNG or JPEG for photos?

For photographs, JPEG or WebP usually produce much smaller files at the same visual quality. Keep PNG for graphics that need transparency, sharp edges, or perfectly flat color areas.

Drop images here or click to browse
PNG
PNG compression reduces the number of colors while keeping the alpha transparency channel intact
128 colors is a good default for most graphics; drop lower for flat icons and line art
Use 256 colors for images with smooth gradients or subtle shading
Open the side-by-side preview to check the percentage saved before you download
Everything runs locally in your browser — no PNG is ever uploaded to a server
Want to learn more? Read documentation →
1/6
Start typing to search...
Searching...
No results found
Try searching with different keywords