JSON Escape / Unescape
Turn any text into a JSON string literal, or read a JSON string literal back into plain text.
Runs in your browser. Nothing leaves this device.
How to use JSON Escape / Unescape
- 1Pick Escape or Unescape.
- 2Paste your text or the JSON string.
- 3Copy the result.
Questions
What gets escaped?
Double quotes, backslashes, line breaks, tabs and other control characters, exactly as JSON.stringify writes them. Turn on the non-ASCII option to also write accented letters and emoji as \u codes.
Do I need the outer quotes to unescape?
No. With or without them works, and raw line breaks pasted in the middle are accepted too.
Is my text sent anywhere?
No. It stays in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DeveloperBase64 EncoderEncode text or files to Base64 and decode it back, with URL-safe and data URL options.
- DeveloperDiff CheckerCompare two texts and see what was added and removed, line by line or word by word, and download a patch.
- DeveloperHash GeneratorGet the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or any file, and check it against a hash you were given.
- DeveloperJSON FormatterFormat, check and minify JSON, with the exact line of any error.
- DeveloperJWT DecoderRead the header and claims of a JSON Web Token, see when it expires, and check an HMAC signature.
- DeveloperRegex TesterTest JavaScript regular expressions live: every match highlighted, capture groups in a table, and a replace preview.