Tools › JSON
JSON Escape & Unescape
Turn plain text into a JSON string literal, or turn an escaped string back into readable text. The result updates as you type.
Escaping adds backslashes before quotes and backslashes, and writes newlines and tabs as \n and \t. Unescaping accepts a string with or without its outer quotes.