Zlib Deflate

Compresses data using the deflate algorithm adding zlib headers.

Input: Text (UTF-8) or original file bytesResult: Binary bytes

or drop a file here

Text input

Run to see the result

Examples

The inverse check preserves every original byte, including the final newline.

A newline-delimited weather reading

Input

station=demo
celsius=-12.5

Expected checks

Zlib Inflate recovers:
73746174696f6e3d64656d6f0a63656c736975733d2d31322e350a
Compression type
Dynamic Huffman Coding
A small release manifest

Input

release=2.1.0
artifact=demo.tar.gz

Expected checks

Zlib Inflate recovers:
72656c656173653d322e312e300a61727469666163743d64656d6f2e7461722e677a0a
Compression type
Dynamic Huffman Coding
A repeated status log

Input

ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready
ready

Expected checks

Zlib Inflate recovers:
72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a72656164790a
Compression type
Dynamic Huffman Coding
An HTTP-like JSON event

Input

{"event":"deploy","project":"demo","ready":true}

Expected checks

Zlib Inflate recovers:
7b226576656e74223a226465706c6f79222c2270726f6a656374223a2264656d6f222c227265616479223a747275657d
Compression type
Dynamic Huffman Coding
A comma-and-quote CSV row

Input

city,note
Paris,"rain, then sun"

Expected checks

Zlib Inflate recovers:
636974792c6e6f74650a50617269732c227261696e2c207468656e2073756e220a
Compression type
Dynamic Huffman Coding

Format reference: Zlib Deflate background and specification

Related tools

Browse compression tools