Escape text for JSON and JS strings, or unescape. Runs entirely in your browser — nothing you paste is sent anywhere.
6 answers to what people ask most about the String Escape.
Paste the text with Mode on Escape. Double quotes, backslashes, tabs and line breaks are converted to \", \\, \t and \n.
Switch to Unescape and paste the escaped text. Sequences like \n and \u00e9 turn back into a real new line and the letter e with an accent.
No. The output is the inside of the string only, so you add your own quotes around it. On input, one pair of outer quotes is ignored.
Escape it. Each real line break becomes \n, so the whole text fits on one line inside the JSON string.
The text has a backslash that is not part of a valid JSON escape, or an unescaped control character. Fix the stray backslash and try again.
Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.
Something not working? Tell us and we'll fix it.
Report an issue