Gzip Compress and Decompress

Choose compress or decompress, then paste text or pick a file. Gzip output is binary, so the result appears as Base64 or hex, or downloads as a file when it is large. If your browser does not support a format, its option is disabled with a short note.

Gzip Compress and Decompress runs entirely in your browser: the text you paste is never sent to a server. It is free and needs no sign-up.

How to use it

  1. Choose compress or decompress In Gzip Compress and Decompress, pick Compress and type text or choose a file, or pick Decompress and paste Base64 or hex. Then choose Gzip, Zlib, Raw DEFLATE or Auto-detect.
  2. Run and read the sizes Press Run to see the original size, the compressed size and the ratio between them. Output appears as Base64 or hex, and a result over 5 MB is offered as a download only.
  3. Copy or download Copy the text result, or press Download file to save the bytes. Inputs and decompressed output are each limited to 100 MB, and everything runs in your browser.

Questions

What is the difference between Gzip, Zlib and Raw DEFLATE?

All three use the DEFLATE method. Gzip (.gz) adds a header and a CRC-32 check and is the usual file format. Zlib uses a smaller header and an Adler-32 check. Raw DEFLATE has no header or check, so choose it only when another system asks. Some older browsers lack it, and the tool then disables it.

Why does decompression report damaged data?

The error appears when data is truncated, does not match the chosen format, or has extra bytes after the end. Multi-member gzip files and trailing data are treated as damaged, because browsers handle them differently. Try Auto-detect, and check that the Base64 or hex text is complete.

Why is a large result only available as a download?

A result over 5 MB is not turned into Base64 or hex text, which would use a lot of memory and slow the page. Decompression stops at 100 MB of output, which protects the page from decompression bombs. Use Download file to save the full data.