Toolhaus

GZip Compressor

Compress text to gzip (Base64) and decompress it back.

Compress any text with gzip and get the result as Base64, or paste gzip Base64 to decompress it back to the original text. See the original size, compressed size and savings. Useful for testing payloads and understanding compression. Everything runs in your browser.

Base64 (gzip)
—

Compressed output is gzip bytes encoded as Base64.

Formula & methodology

Text is UTF-8 encoded and run through the gzip (DEFLATE) algorithm, then Base64-encoded so it is safe to copy. Decompression reverses the steps.

Worked example

  • Hello, hello, hello! → H4sIAAAA… (Base64 gzip)

Frequently asked questions

Why is short text sometimes larger after compression?

Gzip adds a header and checksum, so very short inputs can grow. Compression pays off on larger or repetitive text.

What format is the output?

The compressed output is standard gzip bytes encoded as Base64 so you can copy and paste it safely.

Privacy

All processing happens locally in your browser. Your data is never uploaded.

Read the practical guide for this category.

Related tools