Compress and decompress text with Gzip in your browser. View original vs compressed size, compression ratio, and Base64-encoded Gzip output in real time.
The Gzip tool compresses and decompresses text entirely inside your browser using the native Compression Streams API. Paste any text to see the compressed byte count, original byte count, and compression ratio side by side. The Base64-encoded Gzip output is ready to embed in HTTP headers, configuration files, or API payloads without further transformation.
QWhat compression algorithm is used?
Standard Gzip (DEFLATE with a Gzip wrapper), identical to what web servers send in Content-Encoding: gzip responses.
QCan I decompress arbitrary .gz files here?
You can paste the Base64 representation of any Gzip-compressed data and decompress it. Direct binary file upload is not currently supported.
QWhy is my compression ratio low for short strings?
Gzip has a fixed header overhead of roughly 18 bytes. Very short inputs may compress to a larger size than the original; this is expected behaviour.
QIs my data sent to a server?
No. Compression and decompression run entirely in your browser using the Compression Streams API.