Image Tools

PNG Compressor

Compress PNG files with indexed palette quantization and alpha preservation.

100% Private & Client-Side Execution

100% client-side PNG quantization. Confidential screenshots and design assets never leave your device.

About PNG Compressor

PNG Compressor reduces PNG file sizes using genuine client-side color quantization and DEFLATE compression powered by UPNG.js. By converting 32-bit RGBA truecolor images into 8-bit indexed-color PNGs (with up to 256 colors and full alpha transparency tables), it achieves 50%–80% file size reductions while verifying the actual output PNG binary chunks (IHDR, PLTE, tRNS).

How to Use PNG Compressor

  1. Upload a .png file from your device or click "Load Sample Transparent PNG".
  2. Select a color palette size (256, 128, 64, 32, or 16 colors) for indexed compression, or choose "Lossless Deflate (Full 32-bit RGBA)".
  3. Check the Verified PNG Header readout confirming whether the output uses an Indexed-Color Palette (PLTE + tRNS) or Lossless Truecolor.
  4. Compare the Original and Optimized PNG previews over the transparency checkerboard.
  5. Click "Download PNG" to save your compressed file.

Common Real-World Use Cases

  • Frontend Engineers: Shrink transparent UI icons, illustrations, and sprites by 60%+ without switching file extensions.
  • Game & App Developers: Quantize 32-bit RGBA textures into compact 8-bit indexed PNGs to reduce bundle download sizes.
  • Technical Writers: Compress documentation screenshots containing flat UI colors for fast page loading.
  • Web Designers: Optimize transparent brand logos and badges while keeping crisp alpha edges.

Technical Specifications & Limitations

Accepts PNG files up to 25 MB and 4096×4096px. Verifies actual PNG IHDR color type, PLTE palette, and tRNS transparency chunks.

Frequently Asked Questions

How does indexed-color PNG compression reduce file size so dramatically?
Standard 32-bit RGBA PNGs store 4 bytes (Red, Green, Blue, Alpha) per pixel. Indexed-color quantization builds an optimal palette of 16 to 256 colors (stored in PLTE and tRNS chunks) and uses 1 byte or less per pixel.
Is semi-transparent alpha preserved during palette quantization?
Yes. The encoder generates a PNG tRNS alpha table alongside the PLTE color palette, preserving smooth anti-aliased edges and semi-transparent pixels.
What is the difference between 256 Colors and Lossless Deflate mode?
256 Colors applies smart lossy palette quantization for large size savings, whereas Lossless Deflate keeps all 32-bit RGBA pixel values 100% identical to the source.
Are my PNG files uploaded to a remote server like TinyPNG?
No. Unlike cloud compressors that upload your files to external servers, MixtureTool performs all quantization locally inside your browser.

Related Tools

Image Compressor Compress images without visible quality loss. Image Format Converter Convert images between PNG, JPG, WebP and AVIF with verified encoding. Image Resizer Resize images to any dimension with quality preservation. Favicon Generator Generate multi-resolution favicon.ico, Apple Touch, PWA icons and ZIP package.