deflate · shipping · also Deflate, raw DEFLATE

DEFLATE

DEFLATE is a lossless compressed-data format combining length-distance references and Huffman coding, with an additional uncompressed block form.

Related Observatory article: DEFLATE on hesela.com

Compressed blocks use fixed or dynamic Huffman codes; stored blocks carry uncompressed bytes. Match lengths are 3-258 bytes and backward distances are 1-32768 bytes. The distance limit bounds history, not stream length. Only stored blocks have a 65535-byte data limit. [1]

Raw DEFLATE has no wrapper payload checksum. The zlib format adds Adler-32 and can identify a preset dictionary; gzip adds a member header, CRC32 and uncompressed size modulo 2^32. These formats are not interchangeable decoder inputs. [2] [3]

A match can overlap the output it creates. A length 5 at distance 2 after XY appends XYXYX. Decoding therefore needs evolving history, not just a frozen copy of earlier bytes. [1]

Relations

related
Gzip, Compression dictionary, Block-independent compression, ZIP archive, Checksum

Limitations

  • Huffman coding is block-local, but references can cross block boundaries; locating a block does not guarantee independent decoding. [1]
  • A wrapper checksum can detect corruption only when checked; RFC 1952 permits a compliant gzip decoder to skip its trailer. It does not authenticate the archive. [2] [3]

Citations

  1. RFC 1951: DEFLATE format, sections 2 and 3.2-3.3 (Informational, May 1996) (accessed 2026-11-11)
  2. RFC 1950: zlib wrapper, dictionary identifier and Adler-32, section 2.2 (accessed 2026-11-11)
  3. RFC 1952: gzip member header and trailer, section 2.3.1 (accessed 2026-11-11)

Further reading

  1. Hesela: DEFLATE blocks, history and wrappers (accessed 2026-11-11)
Sources & caveats
  • Primary-format synthesis, not a performance benchmark or a historical claim about first implementation. RFC 1951 is Informational.

JSON: /data/terms/deflate.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. DEFLATE. Hesela. 2026-11-11. https://hesela.dev/terms/deflate/