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
Earn up to 16% annual interest with Nexo. Icon
Earn up to 16% annual interest with Nexo.

Access competitive interest rates on your digital assets.

Generate interest, borrow against your crypto, and trade a range of cryptocurrencies — all in one platform. Geographic restrictions, eligibility, and terms apply.
Get started with Nexo.
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