GZIP Compress

Compress text or encoded binary data to GZIP online and output the result as Hex or Base64. Read more

What is Gzip compress?

Gzip is the lossless file format specified in RFC 1952. A Gzip member wraps DEFLATE-compressed data with a header and a trailer containing CRC-32 and the original size modulo 2³². This tool creates Gzip bytes from text or encoded binary input; it does not create a multi-file TAR archive.

How to use this tool

Enter text or encoded bytes, choose the input encoding, set compression level 0–9, and output the Gzip bytes as Hex or Base64. Hex or Base64 input is decoded before compression. Use Gzip Decompress to restore the bytes.

Choosing the right format

Hex is useful for byte inspection, while Base64 is shorter for APIs and text fields. Level 0 stores DEFLATE blocks without compression; higher levels spend more time searching for a smaller result. A Gzip stream differs from Zlib and Raw DEFLATE even though each can use DEFLATE internally.

Important limitations

Gzip is not encryption. CRC-32 detects accidental corruption but does not authenticate the sender. Short or already-compressed data may grow, and browser memory limits make native streaming tools more appropriate for large input. This text tool does not preserve an original file hierarchy.

Frequently asked questions

Why can another program not open the result?

Decode the Hex or Base64 representation into bytes and confirm the receiver expects RFC 1952 Gzip, not Zlib, Raw DEFLATE, ZIP, or tar.gz.

Are my files uploaded?

No. Compression runs locally. For files and folders, use Gzip Create.

Input
Output
Share Link
Settings