Text Compression and Decompression
Compress text with gzip, deflate, zlib, LZ4, Snappy or LZString and see the size saved as Base64 or hex, then decompress the same formats back to text.
- Free
- No sign-up
- Works on any device
About Text Compression and Decompression
Compress a piece of text and see how many bytes it really needs. The tool runs gzip, zlib and raw deflate with the browser's own compression engine, and LZ4 block, Snappy and LZString with built-in code, then shows the compressed size, the percent saved and the data as Base64 or hex. It decompresses the same formats back to text, which is handy for reading a gzip string from a log or an API. Brotli is not offered because it needs a large built-in dictionary this page does not carry.
How to use Text Compression and Decompression
- Choose the algorithm and compress or decompress.
- Paste the text, or the Base64 or hex data to decompress.
- Read the sizes and copy the result.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
- Free to embed on your own website, with a ready-made code to copy.
Also known as
Frequently asked questions
Why did my short text get bigger?
Every format adds a header: gzip about 18 bytes and zlib about 6, and Base64 makes data a third longer. Tiny or random text has nothing to squeeze, so the result can be larger than the input.
What is the difference between gzip, zlib and raw deflate?
All three use the same deflate method. Gzip adds a larger header with a CRC, zlib a two-byte header with an Adler checksum, and raw deflate has no wrapper, so pick the one your other system expects.
Can I decompress a Brotli string here?
No. Brotli needs a built-in 120 KB dictionary and is not included. The supported formats are gzip, zlib, raw deflate, LZ4 block, Snappy and LZString.
Is Text Compression and Decompression free?
Yes. Text Compression and Decompression on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.
Can I put Text Compression and Decompression on my own website?
Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.