Kadben

gzip, zlib and deflate decompressor

Choose a .gz file or paste compressed data as Base64 or hex. Switch the step to zlib or raw deflate, or reverse the direction to compress.

Runs in your browser. Nothing you paste or choose is uploaded.

gzip, zlib and deflate decompressor

    Add a step
    Result

      How to use it

      1. Choose a file, or paste the compressed data as Base64 or hex.
      2. 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.
      3. Press “Reverse the direction” to compress text or a file.

      Rules and limits

      How gzip, zlib and deflate are read

      Limits

      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”.

      Related tools