Skip to main content

Compress PNG images with full transparency.

Choose indexed RGBA palette quantization for high-ratio PNG reductions, or bit-exact lossless OxiPNG optimization when every pixel must remain identical. Runs 100% locally in your browser.

Compress PNG

Drop one or more images here, or click to browse

Accepts PNG images (up to 24 MB / 40 MP). Processed 100% locally in your browser.

Output format
Compression preset
PNG mode
Original
--
Waiting for image
Output (PNG)
--
Local encoder ready
Measured change
--
Select an image to measure
Drop or choose an image above to preview before and after locally.

How to use Compress PNG

  1. Drop your PNG screenshot, UI mockup, logo, or transparent graphic onto the card above.
  2. Choose Palette (smaller) for indexed RGBA quantization, or Lossless for pixel-identical OxiPNG optimization.
  3. Inspect transparent edges against the checkerboard preview and click Download PNG.

Lossy palette quantization vs. lossless PNG optimization

Standard browser Canvas encoding writes uncompressed or weakly deflated 32-bit RGBA PNGs and ignores quality sliders altogether. Kilobyte avoids that trap by using two dedicated local PNG engines.

In Palette mode, Kilobyte reduces 24-bit and 32-bit PNGs to an optimized indexed RGBA color palette (64 to 256 colors) while preserving full semi-transparent alpha channels, then runs an OxiPNG WebAssembly deflate pass for additional lossless compaction. In Lossless mode, PNG inputs are optimized directly by OxiPNG without Canvas conversion—preserving bit-exact pixel values, 16-bit precision whenever samples require more than 8 bits, semi-transparent RGBA values, and embedded ICC color profiles while stripping EXIF and text metadata chunks.

  • Palette quantization excels on UI screenshots, icons, charts, and web illustrations.
  • Lossless OxiPNG is ideal for pixel art, strict brand assets, and smooth photographic gradients where banding must never occur.
  • Every output is verified against both the 8-byte PNG signature and complete IEND trailer before download.

When PNG should actually be WebP or AVIF

If your PNG is a large photograph or a hero image with soft shadows, even a quantized 8-bit PNG will stay larger than a WebP or AVIF file. You can switch output format right in the toolbar to compare PNG against WebP or AVIF on your exact image.

Honest capabilities and browser limits

  • Animated PNGs (APNGs) are skipped so multi-frame animation data is never destroyed.
  • Lossy quantization maps colors to at most 256 palette entries; subtle 24-bit photographic gradients may show mild banding at lower quality—switch to Lossless mode or WebP/AVIF if you spot banding.
  • On first use, Kilobyte lazy-loads a ~160 KB self-hosted OxiPNG WebAssembly module from this site; images never leave your browser.

Questions

Compress PNG FAQ

Does PNG compression keep my transparent background?

Yes. Both Palette quantization (indexed RGBA with tRNS alpha table) and Lossless OxiPNG preserve full alpha transparency, including semi-transparent shadows and anti-aliased edges.

How is this different from browser Canvas PNG export?

HTML5 Canvas cannot quantize PNG palettes or optimize DEFLATE streams, so it often makes PNGs bigger. Kilobyte uses UPNG palette quantization paired with the Rust-based OxiPNG WebAssembly optimizer.

Why does Lossless mode disable the quality slider?

Lossless optimization cannot discard any color information—it preserves exact RGBA pixels while stripping ancillary metadata and searching for tighter DEFLATE/filter encodings.