Like this tool?
Install byteflow.tools for faster startup and offline tool access.
Install guideLike this tool?
Install byteflow.tools for faster startup and offline tool access.
Install guideGzip/Deflate compression lab with browser-dependent Brotli support for HTTP debugging, size checks, and Base64 transfer.
Compress and decompress payloads locally with browser-native compression streams for HTTP debugging and size inspection.
It compresses pasted text into Base64-encoded bytes using supported browser compression formats such as Gzip and Deflate.
It decompresses Base64-encoded compressed payloads back into readable text when the selected format is supported.
It reports input size, output size, and compression ratio so payload changes are easy to compare.
It detects native browser support and gives an explicit unsupported-state message instead of silently dropping Brotli or other unavailable formats.
JSON payload
{ "event": "cache_miss", "path": "/api/users", "durationMs": 184 }Base64 gzip
H4sIAAAAAAAA/8tIzcnJVyjPL8pJAQBSntaLCwAAAA==
HTML snippet
<main><h1>Status</h1><p>Cache miss</p></main>
Compressed output
Base64-encoded compressed bytes ready for copying.
Decompressed text
Readable payload recovered from a Base64 compressed input.
Size summary
Input 1.2 KB, output 420 B, ratio 0.35x
Pasting plain text while decompressing
Switch to compress mode, or paste Base64-encoded compressed bytes for decompression.
Expecting Brotli everywhere
Check the browser support status; Brotli depends on native CompressionStream('br') support.
Confusing Base64 size with raw compressed byte size
Use the size summary for byte counts and remember Base64 adds transfer overhead.
Choosing the wrong decompression format
Match the format to the original encoder: Gzip input must be decoded as Gzip.
Testing binary files as pasted text
This MVP focuses on text and Base64 payloads, not arbitrary binary file uploads.
Gzip/Brotli Lab is most effective when it produces a focused, reproducible evidence bundle that can be handed to the next engineer without extra cleanup.
Why is compressed output Base64?
Compressed bytes are binary, so Base64 makes them safe to copy through text fields.
Does Brotli always work?
No. Brotli support depends on the browser runtime exposing native CompressionStream support for br.
Can I decompress a Gzip response body?
Yes, if you paste the compressed bytes as Base64 and select Gzip decompression.
Does this call a server?
No. The operation is performed in the browser.
Why can Base64 output look larger than input?
Small inputs and Base64 overhead can outweigh compression savings.