All Tools View Categories Blog About Contact Privacy

Compress PNG Online

Shrink PNG files up to 70% using color quantization (like TinyPNG) — preserve transparency, convert to WebP, batch process — 100% private, zero upload.

100% private — images processed locally in your browser, never uploaded. Loading…
Drop images here
PNG — drop unlimited images
No images yet
Drop files above to get started
Global Settings
Balanced
Low (high quality)High (small file)
Good balance — recommended for photos
Max Width (px)
Max Height (px)
Aspect ratio always preserved. 0 = keep original dimension.

About Compress PNG Online

Compress PNG images in your browser using real color quantization — the same technology behind TinyPNG and Google's Squoosh. Compress PNG Online uses UPNG.js to reduce PNG palette size from 16 million colors down to 8–256, achieving 40–70% size reduction while preserving sharp edges and full transparency.

Unlike tools that just change the zlib compression level (which barely reduces PNG size), this tool actually performs lossy color quantization: it finds the optimal set of N colors to represent your image, dramatically reducing file size with minimal visible quality loss. Drop any number of PNGs, use the compress level to balance quality vs size, and preview every image in the before/after split viewer before downloading.

Transparency is fully preserved. Logos, icons, and any PNG with alpha channel compress correctly. If compression would make a file larger (e.g., already-optimized simple graphics), the original is automatically kept. Convert to WebP for even better compression on modern browsers.

Features

  • Color quantization (like TinyPNG) — real lossy PNG compression via UPNG.js palette reduction, not just zlib tuning
  • Transparency preserved — alpha channel kept intact through quantization; logos and icons compress without visual artifacts
  • 100% browser-local — Canvas API + UPNG.js client-side, no upload, works offline after first load
  • Unlimited batch — drop hundreds of PNG files with per-file progress and savings display
  • No-gain protection — if compressed output is larger than original, original file is kept automatically
  • WebP conversion — convert PNG to WebP for 25–50% extra savings; WebP also supports transparency
  • Smart resize — set max width/height with aspect-ratio lock; resizing is often the fastest way to cut PNG size
  • Before/After split viewer — drag divider and zoom to inspect color quantization quality before downloading
  • Batch ZIP download — download all compressed PNGs in one archive with a single click

How to Use

  1. Drop PNG files. Drag PNGs onto the drop zone, or click Browse. Unlimited files accepted.
  2. Set compress level. Lower = more colors = larger file but better quality. Higher = fewer colors = smaller file. The badge shows the level (e.g., "Balanced · 25%"). Check the before/after preview to confirm quality.
  3. Choose output format. PNG preserves transparency universally. WebP gives 25–50% better compression and also supports transparency (for modern browsers).
  4. Optional: resize. Enter Max Width/Height to scale the image down. Resizing combined with quantization gives maximum size reduction.
  5. Compress. Click Compress All. Images are processed with UPNG.js color quantization. If UPNG is still loading, a fallback compresses via canvas resize only.
  6. Download. Individual files via the download icon, or grab all in a ZIP.

Examples

Example 1 — Website icons and logos: 20 PNG logo variations (avg 120 KB each) → compress level 20, PNG output, transparency preserved → avg 45 KB each → 62% savings → download ZIP.

Example 2 — App screenshots: iOS/Android screenshots (avg 1.2 MB each) → compress level 40, max width 800 → avg 180 KB each → 85% savings → individual download per screen.

Example 3 — Convert PNG to WebP: Product images with transparency → compress level 15, WebP output → avg 60% smaller than PNG → sharper on retina displays, faster page loads.

Benefits

  • TinyPNG-quality, zero cost — color quantization runs entirely in your browser with no account, no limits, and no per-image fee.
  • Transparency safe — alpha channel is preserved through all compression and format conversion operations.
  • Honest output — if compression makes a file larger, the original is kept automatically; you never get a "compressed" file that's actually bigger.

Frequently Asked Questions

How does PNG compression work differently from JPEG?
JPEG is a lossy format — it discards pixel data to reduce size, which causes blur. PNG is lossless by design, so traditional compression only changes the zip-level and cannot reduce file size much. The real trick (used by TinyPNG) is color quantization: reducing the number of unique colors in the image from 16 million to 256 or fewer. This dramatically shrinks the file while keeping visually sharp edges and transparency.
What is color quantization?
Color quantization analyzes your PNG and finds the best set of N colors to represent the entire image (instead of millions of colors). Each pixel is then matched to the nearest color in this reduced palette. At 256 colors, the result is visually identical to the original for most images. At 64 colors, fine gradients may show "banding" but edges and text stay sharp. This is exactly how TinyPNG achieves 60–80% savings.
Is PNG transparency preserved after compression?
Yes — both PNG and WebP output preserve transparency (alpha channel). Color quantization is applied to RGB channels while the alpha channel is kept intact. Your logos, icons, and graphics with transparent backgrounds will compress without any transparency loss.
Why did my PNG get larger after compression?
This happens when a PNG already has very few colors (e.g., a screenshot with mostly white areas, or a simple black/white logo). The quantization adds palette overhead that exceeds the savings. This tool detects this case automatically: if the compressed output is larger than the original, it keeps the original file and shows "PNG lossless · kept original."
Should I keep PNG or convert to WebP?
For logos, icons, and images needing transparency: PNG is the safe choice (universal browser support). For web content where file size matters most: WebP supports transparency and compresses 25–50% better than PNG. WebP is supported in all modern browsers (Chrome, Firefox, Safari 14+, Edge). Converting PNG → WebP gives the best size/quality ratio.
How many colors should I use for the best result?
The tool automatically maps your compress level to a palette size: level 5 ≈ 212 colors (near-lossless), level 25 ≈ 140 colors, level 50 ≈ 64 colors, level 80 ≈ 16 colors. For most web graphics, level 25–45 gives excellent quality with 50–70% savings. View the before/after preview to confirm quality before downloading.
Can I compress PNG screenshots?
Yes — screenshots typically contain thousands of unique colors that can be quantized efficiently. A 1080p screenshot at 800 KB can often be reduced to 200–350 KB at level 30–40 with no visible quality loss. Strip Metadata removes any embedded screen/monitor profile data for extra savings.
What is UPNG.js and why does this tool use it?
UPNG.js is an open-source PNG encoder that implements color quantization in the browser — the same algorithm category used by TinyPNG and Squoosh. The browser's built-in Canvas API cannot compress PNG files (it always outputs lossless 32-bit RGBA). UPNG.js bridges this gap, enabling real lossy PNG compression entirely client-side without any server.

More Image tools

View All