Zopfli

Zopfli is a data compression library that performs deflate, gzip and zlib data encoding.

Uses your system voice; voice and rate in settings.

Snapshot

≈ 2 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

Zopfli is a data compression library that performs deflate, gzip and zlib data encoding. It achieves higher compression ratios than mainstream Deflate and zlib implementations at the cost of being slower. Google first released Zopfli in February 20131 under the terms of Apache License 2.0.

Google archived the project in October 2025. The name Zöpfli is the Swiss German diminutive of “Zopf”, an unsweetened type of Hefezopf.

Operation

Zopfli can either generate a raw Deflate data stream or encapsulate it into gzip or zlib formats. Zopfli achieves higher data density through more exhaustive compression techniques. The method is based on iterating entropy modeling and a shortest path search algorithm to find a low bit cost path through the graph of all possible Deflate representations of the uncompressed data.

By default, Zopfli performs 15 iterations but could be configured to perform more or fewer. Under default settings, the output of Zopfli is typically 3–8% smaller than zlib's maximum compression, but takes around 80 times longer. Because of its significantly slower compression speed, Zopfli is not suited for on-the-fly compression.

It is typically used for one-time compression of static content. This is typically true for web content that is served with Deflate-based HTTP compression or web content in a Deflate-based file format such as PNG or WOFF font files.

Another use case is software updates or downloads with software package files that have a zip-based format such as Android application packages (APK) or Java Archives (JAR), especially over mobile connections.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1338993655 under CC BY-SA 4.0; modifications have been made.

References

  1. ↩Wikipedia “Zopfli” revision 1338993655 · retrieved 2026-10-20 release date (×1) · confidence 0.95 revision URL