Tools

Home
JSON FormatterSQL FormatterJS ValidatorMinify CSS
Merge PDFCompress PDFImage to PDF
JPG to PNGPNG to WebPCrop Image

Shrink Png

Upload a PNG and reduce file size via color palette reduction. Choose max colors and toggle dithering for optimal compression.

Your files never leave your browser
Drop PNG here or click to upload
Supports PNG files (max 50 MB)

Max Colors

Dithering

Original

Original PNG

Compressed

Original: --
Compressed: --
Saved: --

Shrink a bloated PNG by cutting its color palette down to 256, 64, or even 8 shades. Dithering keeps gradients smooth, and transparency stays intact — typical savings land between 50% and 80%.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Upload PNG
→
Quantize Colors
→
Download Smaller PNG

The compressor reads every pixel through the Canvas API, then runs a median-cut quantization algorithm to find the best representative colors for whatever palette size you picked. Each pixel gets remapped to its nearest match. If dithering is on, Floyd-Steinberg error diffusion scatters the rounding error across neighbors so gradients still look smooth instead of banding into hard stripes.

Examples

Blog hero image that's too heavy

A photographer exports a 24-bit PNG screenshot of their portfolio landing page for a case study post.

INPUT
portfolio-hero.png 2400 × 1200 px 3.7 MB — 24-bit, 847k unique colors
OUTPUT
portfolio-hero-compressed.png 2400 × 1200 px 980 KB — 256 colors, dithering on 73% smaller

App icon set for a README

Flat-color icons with transparency — dithering off works perfectly here.

INPUT
icon-512.png 512 × 512 px, 148 KB 24-bit with alpha
OUTPUT
icon-512-compressed.png 512 × 512 px, 34 KB 64 colors, dithering off 77% smaller

Dashboard screenshot for a bug report

Screenshots of UI with mostly flat backgrounds and a few charts compress extremely well. A developer needs to attach it to a Jira ticket with a 10 MB attachment limit — and there are four screenshots to include.

INPUT
dashboard-bug.png 1920 × 1080 px 4.2 MB — full-color screenshot
OUTPUT
dashboard-bug-compressed.png 1920 × 1080 px 620 KB — 128 colors, dithering on 85% smaller

Who Uses This

🌐 Web Developers

Shrink PNG assets before deployment so pages load faster without switching to JPEG and losing transparency.

🎨 UI Designers

Compress mockup exports to keep Figma-to-Slack file shares under the upload limit.

📝 Technical Writers

Reduce screenshot sizes in documentation repos so git clones don't balloon to hundreds of megabytes.

📧 Email Marketers

Keep email-safe PNG banners small enough that Gmail won't clip the message body.

Common Mistakes

Using too few colors on a photo

Dropping to 8 or 16 colors on a photograph turns skin tones into blotchy patches. Stick with 128 or 256 for anything photographic, and turn dithering on.

Leaving dithering on for pixel art or flat icons

Dithering adds a speckled noise pattern that looks terrible on crisp, flat-color graphics. Turn it off for icons, pixel art, and UI elements with solid fills.

Compressing an already-indexed PNG again

If your PNG already has a limited palette (say 64 colors), re-quantizing it won't save much and can actually degrade quality. Check the original color count first — if it is already low, compression won't help much.

Technical Details

Frequently Asked Questions

Does compressing a PNG remove transparency?

No. The alpha channel is kept during quantization. Transparent and semi-transparent pixels stay exactly as they were — only the RGB color values get remapped to the reduced palette.

How much smaller will my PNG get?

It depends on the image. A 24-bit PNG with millions of colors typically drops 50–80% at 256 colors. Screenshots and graphics with flat areas often compress even more — 70–85% isn't unusual. Photos with heavy gradients see smaller gains, closer to 40–60%.

Is this lossy or lossless compression?

Lossy. You're reducing the number of distinct colors, so some detail is permanently lost. For most web and UI work at 128–256 colors the difference is nearly invisible, but it is not reversible. Keep your originals if you might need them later.

When should I turn dithering on vs. off?

Turn it on for photographs, gradients, and anything with smooth color transitions — dithering prevents ugly banding. Turn it off for icons, pixel art, logos, and UI elements with solid color fills. Dithering adds a fine speckle pattern that ruins crisp edges on flat graphics.

Is my image sent to a server?

No. The entire process runs in your browser using the Canvas API. Your file never leaves your device, nothing is stored, and the tool works offline once the page has loaded. Close the tab and every trace of your image is gone.

Share: