JSON Escape/Unescape

Form of JSON Escaping/Unescaping

Enter JSON here to escape/unescape:

Press F11 to switch to fullscreen mode
Move to "Paste Code" for Saving

About online JSON escape/unescape

About JSON escape/unescape

Escapes or unescapes a JSON string removing traces of offending characters that could prevent interpretation.

The JSON Escape / JSON Unescape it's online tool was created to help with escape special unicode characters into a quoted string literal value for JSON object and also unescape it.

What characters are replaced?

The following characters are reserved in JSON and must be properly escaped to be used in strings:

  • Horizontal Tab is replaced with \t
  • Vertical Tab is replaced with \v
  • Nul char is replaced with \0
  • Backspace is replaced with \b
  • Form feed is replaced with \f
  • Newline is replaced with \n
  • Carriage return is replaced with \r
  • Double quote is replaced with \"
  • Backslash is replaced with \\

How it Works?

Just paste your JSON code to the textarea above and click to the button "Escape" or "Unescape" and you will get your escaped/unescaped data.

Example of JSON Escaping

JSON before:
{"website":{"domain":"wtools.io","title":"Online Web Tools","tool":"json escape/unescape online"}}
After:
{\"website\":{\"domain\":\"wtools.io\",\"title\":\"Online Web Tools\",\"tool\":\"json escape/unescape online\"}}
After the conversion, you can apply the JSON to your project or use it for some other purpose.