Zopfli is a compression library and command-line tool that produces exceptionally small DEFLATE, zlib, and gzip streams by spending more CPU time to search for better encodings. It keeps strict compatibility with the ubiquitous DEFLATE format, so outputs can be decompressed by any standard tool or browser. The encoder performs exhaustive block splitting and greedy but thorough match searching to shave extra bytes off assets, which is ideal for web content and firmware where size matters more than compression time. A companion utility, zopflipng, targets PNGs by trying alternate filter strategies and recompressing IDAT chunks, often achieving additional savings without changing image quality. The codebase includes both a reusable library and ready-to-use CLI tools for bulk optimization in build pipelines. It is frequently used offline—e.g., as a final step in release builds—because decode speed remains normal while files get smaller.

Features

  • DEFLATE/zlib/gzip encoder focused on maximum compression ratio
  • Drop-in compatibility with standard decompressors
  • Aggressive block splitting and match finding heuristics
  • zopflipng optimizer for lossless PNG recompression
  • Library and CLI for integration into build/release tooling
  • Ideal for web assets, firmware, and size-sensitive archives

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Zopfli

Zopfli Web Site

Other Useful Business Software
$300 Free Credits for Your Google Cloud Projects Icon
$300 Free Credits for Your Google Cloud Projects

Start building on Google Cloud with $300 in free credits. No commitment, no credit card required until you're ready to scale.

Launch your next project with $300 in free Google Cloud credits—no strings attached. Test, build, and deploy without risk. Use your credits across the entire Google Cloud platform to find what works best for your needs. After your credits are used, continue with always-free tier services. Only pay when you're ready to scale. Sign up in minutes and start exploring.
Start Free Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Zopfli!

Additional Project Details

Programming Language

C++

Related Categories

C++ Libraries

Registered

2025-10-09