โ— Barokit

๐Ÿ—œ๏ธText LZ Compression / Decompression

Compress long text (JSON, code) with LZ-string into short strings. Useful for passing data via URL parameters, creating short shareable links, saving localStorage space, and sharing long code in chats.

๐Ÿ”’ Browser-basedโœ“ No watermarkโœ“ No signup

How to use

  1. 1Enter the original text or compressed string.
  2. 2Direction (compress/decompress) auto-detects.
  3. 3Copy the result.

FAQ

How much does it compress?+

Repetitive text like JSON or code shrinks 70%+. Natural language shrinks 30~50%.

What's LZ-string?+

A common text compression library in JavaScript. Its URL-safe mode outputs strings that fit directly into URLs.

Different from Base64?+

Base64 grows length 33% (encoding only); LZ-string compresses. For shorter output, use LZ-string.

Safe in URLs?+

URL-safe mode avoids special characters like ? = & โ€” fully URL-safe.

Need a decryption key?+

No, it's compression not encryption โ€” anyone can decompress. For length saving, not security.

Does Korean compress?+

Yes. Unicode is handled directly. Korean-heavy text typically compresses slightly less than English.

Related tools