String Escaper
Escape and unescape strings for JSON and JavaScript in your browser — free, instant, nothing uploaded.
Report a problemHow to use
- Paste the string you want to escape, or the escaped string you want to turn back to plain text.
- Pick Escape or Unescape, and choose the target — JSON or JavaScript.
- Read the result below and tap Copy to put it on your clipboard.
FAQ
What is the difference between JSON and JavaScript escaping?
JSON escaping wraps your text in double quotes and produces a complete, valid JSON string value (the same thing JSON.stringify makes). JavaScript escaping only adds the backslashes — it escapes backslashes, both kinds of quotes, newlines, carriage returns and tabs — so you can paste the result inside your own quotes in code.
What does Unescape do?
It reverses the escaping. For JSON it parses a quoted string back to its real characters; for JavaScript it turns sequences like \n, \t, \", \\ and \uXXXX back into the characters they stand for.
Is anything uploaded?
No — it runs in your browser. Your text never leaves your device and is never sent to a server, so it works offline and stays completely private.