• Free forever
  • No sign-up
  • Private — runs in your browser

JSON Escape & Unescape

Turn any text into a valid JSON string — or switch the mode to unescape one back to plain text.

Output

  

Characters that must be escaped

CharacterEscaped
Double quote "\"
Backslash \\\
Line break\n
Carriage return\r
Tab\t
Other control characters\u0000–\u001f

When you need it

  • Putting a block of text, HTML or code into a JSON field by hand.
  • Building a JSON body for curl or Postman that contains quotes or line breaks.
  • Reading an escaped log message or API error — choose Unescape JSON string in the mode menu.

Forward slashes and non-ASCII characters such as é or emoji don't need escaping in JSON; they're left as they are.

Related

← Back to the full JSON Formatter & Validator