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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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