How to Compress PNG Files Using 8-Bit Palette Quantization
Shrink PNG icons, UI screenshots, and transparent graphics in your browser using 16-to-256-color palette indexing.
Primary Browser Tool
PNG Compressor
Reduce PNG file size using 8-bit indexed palette quantization (16–256 colors) while preserving transparency.
Reducing PNG Weight Without Losing Transparency
Standard PNG screenshots store 32 bits per pixel—8 bits each for red, green, blue, and alpha. RapidPNG’s PNG Compressor runs an indexed 8-bit palette quantizer inside a background Web Worker, mapping pixels to a compact custom color table plus a `tRNS` alpha table.
- Upload any PNG, WebP, or GIF file to the PNG Compressor.
- Keep 8-bit Palette Quantization enabled and start with 256 colors.
- For flat vector-style icons or simple diagrams, test 64 or 128 colors while checking gradients in the split view.
- Compare byte savings—RapidPNG automatically selects the smaller file if 32-bit DEFLATE was already compact.
Practical Examples
Documentation Screenshot (1440 × 900)
256-color indexed quantization typically cuts UI screenshot weight by 45% to 70% with razor-sharp text.
Common Mistakes & Honest Limitations
Mistakes to Avoid
- Lowering max colors to 16 on photos or multi-stop gradients, causing posterized color bands.
Technical Limitations
- 8-bit indexed PNG supports up to 256 unique RGBA entries; smooth multi-hue photos lose subtle tonal transitions.