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
Build Agents and Models on One Platform Icon
Build Agents and Models on One Platform

Everything you need to build production-ready agents and models. Access 200+ Google and third-party AI models and tools.

Gemini Enterprise Agent Platform is Google Cloud's comprehensive platform for developers to build, scale, govern, and optimize agents and models. Choose from Google's most advanced models and third-party models like Anthropic's Claude Model Family.
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