Hawkynt

Zopfli

Iterative-optimal DEFLATE encoder from Google (2013). Parses the input by shortest path over the entropy of the previous parseโ€™s symbol counts, repeats until the size stops falling, and searches for the block boundaries that minimise the total. Output is standard RFC 1951 DEFLATE, decodable by any conforming reader.

Properties

Property Value
Category Compression Algorithms
Sub-category Deflate Optimizer (LZ77 + Huffman)
Security status Not classified
Complexity Expert
Inventor Lode Vandevenne, Jyrki Alakuijala (Google)
Year 2013
Origin ๐Ÿ‡บ๐Ÿ‡ธ United States
Source algorithms/compression/zopfli.js

Security

Status: not classified โ€” treat as unverified.

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

3 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 โ€” Zopfli RFC 1951 round-trip - hello

Field Value
input 68656c6c6f
expected (empty)

Vector 2 โ€” Zopfli RFC 1951 round-trip - AAAA

Field Value
input 41414141
expected (empty)

Vector 3 โ€” Zopfli RFC 1951 round-trip - ABCABCABC

Field Value
input 414243414243414243
expected (empty)

โ† All algorithms