What is GZIP decompression?
GZIP is a lossless compression file format defined by RFC 1952. Decompression reverses the DEFLATE algorithm (RFC 1951) — reading back the LZ77 references and Huffman-coded symbols to reconstruct the original bytes exactly.
How does GZIP decompression work?
Your input is processed entirely in your browser using the native DecompressionStream('gzip') API. The high-level steps are:
- The tool parses your input as either Base64 or hex (for text) or reads the raw bytes of the .gz file you upload.
- The 10-byte gzip header is validated, the DEFLATE payload is identified, and the 8-byte footer (CRC32 + original-length-mod-2^32) is set aside for verification.
- Bytes are fed through a
DecompressionStreamconfigured for thegzipformat. - The browser reverses DEFLATE: Huffman codes are decoded back to symbols and LZ77 back-references are expanded into the original byte stream.
- The stream verifies the CRC32 and length footer against the recovered bytes, then emits them as UTF-8 text in the text form or as a downloadable file in the upload form.
Why decompress with this tool?
- Inspect responses: read GZIP-encoded HTTP bodies and CDN payloads that other tools would render as binary noise.
- Recover archives: extract .gz log files, configuration dumps, and tarball components without installing extra software.
- Privacy: decompression happens entirely in your browser. The input never reaches our servers.
- Standards-compliant: accepts any RFC 1952 stream produced by the
gzipCLI, by HTTP servers, or by language standard libraries in Python, Node.js, Go, Java, or Rust.
What are common applications of GZIP decompression?
Decompressing GZIP shows up across web work and tooling:
- Debugging APIs: pasting a raw
Content-Encoding: gzipresponse body to see the underlying JSON or HTML. - Log forensics: opening rotated
.log.gzfiles to grep for events without a full extraction pipeline. - Verifying backups: confirming that a .gz archive produced by another tool decompresses cleanly before relying on it.
What does a GZIP decompression example look like?
A 200 byte Base64 string starting with H4sI is the canonical sign of a gzip header — the magic bytes 1f 8b encode to those characters. Pasting that string and pressing DECOMPRESS reproduces the original text exactly, byte for byte, including whitespace and trailing newlines.
This GZIP decompressor accepts any RFC 1952 input and produces the original bytes directly in your browser. Pair it with the GZIP Compressor to round-trip text or files without ever leaving the page.