URL-Safe Text Compressor
Pack long text into a compact Base64URL token (deflate-raw) that survives in a URL hash or query param — and unpack it anywhere.
About URL-Safe Text Compressor
URL-Safe Text Compressor packs long text or JSON into a compact Base64URL token using raw DEFLATE, so you can store editor state, settings or a code snippet in a URL hash and restore it anywhere — the “everything is in the link” pattern used by playgrounds and diagram tools.
How to use URL-Safe Text Compressor
- 1Paste or type your input into the box above — a sample is pre-filled so you can try it instantly.
- 2Set any options on offer (mode, key, format) to match what you need.
- 3The result appears the moment you type — no button to press, no waiting.
- 4Click Copy to grab the output — URL-Safe Text Compressor keeps everything on your device.
Why use URL-Safe Text Compressor?
- ✓Sharing app or editor state through a link with no server or database
- ✓Putting form or filter settings into a shareable, bookmarkable URL
- ✓Compressing repetitive JSON before placing it after a # fragment
- ✓100% free with no sign-up, no watermark and no usage limits
- ✓Runs entirely in your browser — your text and keys are never uploaded, stored or logged
- ✓Works offline once loaded, with instant results and one-click copy
Frequently asked questions
How much text can I put in a URL?+
Practically about 2,000 characters for maximum compatibility with old browsers and proxies, and up to ~32,000 in modern browsers. Repetitive JSON often compresses 60–80%, so a lot of state fits after deflation.
Is the data in the link private?+
A URL hash (the part after #) is never sent to the server by the browser, so state shared this way stays on the client. The token is compressed, not encrypted — do not use it for secrets.
Is it free to use?+
Yes — completely free with no sign-up, no account and no usage limits. There is no paywall, so you can encode, decode and convert as much as you like.
Is my data private and secure?+
Yes. This tool runs entirely in your browser using client-side JavaScript — your input is never uploaded to a server, stored or logged. Once the page has loaded you can use it offline, which makes it safe for tokens, keys and confidential data.
Related Developer tools
JSON to TypeScript Interface Generator
Paste JSON and get clean TypeScript interfaces instantly — nested objects become named interfaces, arrays of objects are merged with optional properties detected, unions inferred. 100% client-side.
● LiveIPv4 Subnet Calculator
Enter an IP and CIDR prefix to get the network, broadcast, mask, wildcard, host range and usable host count — the complete subnet breakdown, instantly.
● LiveCIDR to Subnet Mask Converter
Convert a CIDR prefix (/0–/32) to its dotted-decimal subnet mask and wildcard mask, and back again — with host counts for each prefix length.
● Live