Text Compressor / Decompressor

Compress or decompress text using LZ-String or Pako (Gzip), entirely in your browser.

Output will appear here.

FAQ

Which compression method should I use?
LZ-String is optimized for JavaScript strings and works well for short text. Pako (Gzip) is better for larger texts and general-purpose compression.
Is the compressed output smaller?
Yes, especially for repetitive text. LZ-String produces UTF-16 encoded output, and Pako produces standard gzip compressed data.
Can I decompress text compressed elsewhere?
Yes, if the text was compressed with the same method (LZ-String or Pako/gzip), our decompressor will restore it.