How to use it
- Choose a file, or paste the compressed data as Base64 or hex.
- Read the result; if it is not gzip, choose “zlib / deflate decompress” in the step, and tick “Raw deflate (no zlib header)” for data without a header.
- Press “Reverse the direction” to compress text or a file.
Rules and limits
How gzip, zlib and deflate are read
- gzip, zlib (RFC 1950) and raw deflate (RFC 1951) are decompressed by your browser’s built-in DecompressionStream; a gzip file with several members one after another, as cat a.gz b.gz makes, is read whole.
- Compressing writes gzip, or zlib or raw deflate when you switch the step.
- Decompression stops at 64 MB of output, so a small “zip bomb” cannot fill the memory of the tab.
Limits
- The text box shows the first 200,000 characters; the download has everything.
Questions and answers
gzip, zlib or deflate: which one is mine?
gzip starts with the bytes 1f 8b, zlib usually with 78; raw deflate has no header. The message decoder finds gzip and zlib by itself.
Can it open .zip, brotli, zstd, Snappy or LZ4?
Not .zip archives. zstd, Snappy and LZ4 have their own pages (and steps). Brotli only where the browser has it built in; there the step “brotli decompress” appears.
Why does it say the data is not valid or cut off?
Often only part of the file was copied, or the data is zlib or raw deflate rather than gzip. Copy the whole value, or switch the step to “zlib / deflate decompress”.