Compress text with lz-string , the LZ-based compressor that stores its output as a string rather than as bytes — which is why it turns up holding app state in a URL, a cookie or localStorage . Pick the flavour that matches where the payload has to survive: Base64 , URL-safe, UTF-16 or raw hex bytes.
0 chars · 0 words · 0 lines
A-Z a-z 0-9 + / =. Safe anywhere Base64 is, and the widest-supported flavour.
0 chars · 0 words · 0 lines