LZ-string compress reduces text payloads for sharing links, storing compact state, or embedding data in client-side storage. SWEDevTools: Prism compresses locally in your browser using lz-string and supports output formats like Base64 (default), URI-safe, UTF-16, and raw. It can also show compression stats (original size, compressed size, and reduction ratio) so you can quickly see whether compression actually helps for your input. Because SWEDevTools: Prism is local-first, offline as an installable PWA, and pipeline-friendly, you can chain compression with URL Encode/Base64 tools to produce shareable strings without sending data to a server or pasting into third-party sites. Use LZ Decompress to confirm round-trips before you ship links or fixtures.
It is commonly used to compress short-to-medium strings for browser storage, share links, and client-side state transfer.
Use base64 for general storage, and uri for embedding the result in a URL.
Very short strings may not compress well. Use the stats to confirm whether compression helps.
Yes, as long as you use matching compress/decompress formats (Base64 with Base64, URI with URI).
No. SWEDevTools: Prism runs compression locally with no server processing.
It is designed for text. For binary data, consider Base64 first or a binary-safe workflow.
Use the LZ Decompress tool and keep input format on auto or specify the correct format.
Yes. URI-safe output often avoids extra encoding, but you can still pipeline additional steps if needed.
smalldev.tools is no longer available. Prism by SWEDevTools offers the same developer tools and more, with offline support, pipeline chaining, and completely free usage — no signup required.