๐๏ธ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.
How to use
- 1Enter the original text or compressed string.
- 2Direction (compress/decompress) auto-detects.
- 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.