About the Gzip
Gzip and deflate are everywhere: HTTP content encoding, SAML Redirect bindings (raw deflate), API payloads, and log archives. Debugging usually means piping through gzip -d on a terminal — or pasting compressed data into an online tool that ships it to a server.
This compressor uses the browser’s native CompressionStream and DecompressionStream — the same code Chrome ships for HTTP decoding — so nothing is installed and nothing is uploaded. Compress text to gzip, zlib, or raw deflate with Base64 output, or decompress any of the three from Base64 or hex, with byte counts and compression ratio.
How to use
- Pick compress or decompress, and the format (gzip, zlib, or raw deflate).
- For SAML SAMLRequest/SAMLResponse values choose raw deflate.
- Paste input — Base64 or hex is auto-detected when decompressing.
- Copy the result; byte counts and ratio are shown below the output.
Frequently Asked Questions
Which format does SAML Redirect binding use? ▾
Raw deflate — the DEFLATE compressed stream without the gzip or zlib wrapper. That is why a SAMLRequest value base64-decoded and gunzipped fails while inflating with raw deflate works. Select deflate-raw in this tool to decompress or produce exactly those payloads.
Does the browser’s compression differ from gzip on the command line? ▾
The compressed output may differ byte-for-byte from GNU gzip because compression levels and implementations vary — decompressed content is identical. For SAML and API debugging that is what matters; if you need a byte-identical gzip stream (rare, e.g. reproducible builds), use the command-line tool.
Is this tool free to use? ▾
Yes! This tool is 100% free. No signup, no credit card, no limits. It's part of Formatho's privacy-first developer toolkit.
Is my data safe? Does this tool send data to a server? ▾
Absolutely. This tool runs entirely in your browser. Your data never leaves your device. Zero server-side processing, zero tracking.