How to use Compress PNG
- Drop your PNG screenshot, UI mockup, logo, or transparent graphic onto the card above.
- Choose Palette (smaller) for indexed RGBA quantization, or Lossless for pixel-identical OxiPNG optimization.
- 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.