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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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