Compress PNG images online
Online PNG and APNG Compressor
Compress static PNG images and animated APNG files to reduce file size for the web. You can combine multiple options at once to balance file size and visual quality.
Compression options explained
- Optimize PNG with oxypng (lossless): Rewrites PNG/APNG data using more efficient DEFLATE compression and strips unnecessary metadata (such as comments and unused chunks) without changing a single pixel. Safe to keep enabled on almost every image, typically saving 10–40% on unoptimized files.
- Drop every second frame (for APNG): Removes half of the animation frames and doubles the delay of the remaining frames so playback speed stays the same. Best used on high-framerate animations (e.g., 24–60 fps video conversions) where a slightly lower frame rate is acceptable for roughly a 40–50% size reduction.
- Optimize transparency (for APNG): Compares consecutive frames and replaces pixels that stay
the same with transparency, so each frame only stores the regions that actually changed. Adjust the
Fuzz % slider to control how similar two colors can be to count as unchanged:
0%is strictly lossless,2–5%is ideal for eliminating subtle compression noise in video-to-APNG or screen recordings (often saving 40–70% with little visible difference), and higher values trade more detail in subtle gradients for smaller file sizes. Works best on animations with a static or mostly static background. - Reduce to 8-bit palette (256 colors): Converts truecolor 24/32-bit PNGs and APNGs to an
indexed 8-bit palette (using a single shared palette across all frames for APNGs). This often shrinks
file sizes by 40–80% with minimal visual loss on illustrations, UI screenshots, stickers, and converted
GIFs. Use the Quality slider to control color accuracy and Dither (
0to1) to smooth color banding in gradients (lower dither produces cleaner flat colors and smaller files; higher dither smooths photographic gradients).
Optimizing images used on the web saves bandwidth, improves page load times, and contributes to better Core Web Vitals and SEO performance. If you need to shrink dimensions as well, try our image resizer or convert to a more modern format like WebP or AVIF.