Compress Text to GZIP Online Tool

A tool for encoding text into gzip compression.

Uncompressed length:
Compressed length:
Length difference:


Compress text into gzip compressed text. The compressed text is encoded as Base64 allowing the compressed text to be stored or sent as text characters. Stats about the number of characters reduced through compression are displayed. Compressed text can be included inside text data formats such as XML or JSON.

gzip is a file format for file compression consisting of a 10-byte header, optional additional headers, a body compressed using Deflate algorithm, and an 8-byte footer. The extra bytes used to store the headers and footer can be eliminated by just keeping the body compressed as Deflate. For small amounts of text, the headers and footers will increase the size of the compressed text compared with original uncompressed text.