JSON Escape / Unescape

JSON Escape Unescape – Use our JSON Escape / Unescape online tool to escape or unescape JSON strings and special characters such as backspace, new line, backslash, double quote, tab and carriage return.

JSON string escape/unescape uses following rules to convert special characters in JSON file or code.

  • Backspace is replaced with \b
  • Form feed is replaced with \f
  • Newline is replaced with \n
  • Carriage return is replaced with \r
  • Tab is replaced with \t
  • Double quote is replaced with \”
  • Backslash is replaced with \\

JSON Escape / Unescape Online Tool

Escaped / Unescaped JSON:

Escape / Unescape Online Tools

How to Escape or Unescape JSON using JSON Escape / Unescape Online Tool

Step 1: Paste JSON code or drag JSON file.

Step 2: Click on Escape button to Escape JSON Special characters.

Escape JSON special characters by converting them to the following escaped characters so that JSON string safe to use.

backspace is converted to \b
form feed is converted to \f
new line is converted to \n
carriage return is converted to \r
tab is converted to \t
double quote is converted to \"
backslash is converted to \\

Step 3: Click on Unescape button to unescape JSON code.

Unescape JSON special characters by converting them back to the following unescaped characters.

\b is converted to backspace
\f is converted to form feed
\n is converted to new line
\r is converted to carriage return
\t is converted to tab
\" is converted to double quote
\\ is converted to backslash

Step 4: Copy the escaped or unescaped JSON string result. You can also use clear button to start afresh.

JSON Special Characters

The following table shows the list of JSON Special Characters for using in JSON strings.

Character Description
\b Backspace
\f Form feed
\n New line
\r Carriage return
\t Tab
\” Double quote
\\ Backslash