Gzip Compressor / Decompressor
Compress text with gzip, deflate or raw deflate and get the result as Base64 or hex, or decompress it again. It shows how much space you save.
How to compress text with gzip
Paste your text or compressed data
Paste or type it into the box, or press Try an example.
Choose compress or decompress
Pick gzip, deflate or raw deflate.
Copy or download
Copy the result.
Worked example
This is what Gzip Compressor / Decompressor gives for its own sample values. Open the tool above and change anything to try your own.
Text, or Base64 / hex to decompress
hello hello hello hello hello hello hello hello hello hello
- Direction
- Compress
- Format
- gzip
- Write the compressed bytes as
- Base64
gzip
H4sIAAAAAAAAA8tIzcnJV8gghwQAeoMabDsAAAA=
About Gzip Compressor / Decompressor
Compress text with the browser's own gzip, deflate or raw deflate and see the result as Base64 or hex, or decompress such data. The sizes before and after are shown.
FAQs
Why is the result a bit bigger for short text?
Compression adds a header, so very short text can grow.
Which format should I pick?
gzip for files and HTTP, deflate (zlib) for many APIs, raw deflate for formats that supply their own header.
Does it need a recent browser?
Yes. It uses the browser's built-in compression, available in current Chrome, Edge, Firefox and Safari.