Advertisement
Advertisement
{ }formatter

Free online JSON unescape and escape tool — unescape JSON strings, including JSON nested inside JSON.

Advertisement

      
    
Advertisement

About escaping and unescaping

Use Escape to turn raw text into a safely-quotable string, or Unescape to turn escape sequences back into the characters they represent. It works on any text, not just JSON, and runs entirely in your browser.

What does escaping do?

Escaping converts special characters — double quotes, backslashes, newlines, tabs — into escape sequences like \", \\, \n and \t, so the text can be safely embedded inside a JSON string or a code literal.

What does unescaping do?

Unescaping is the reverse: it turns \n, \t, \", \uXXXX and similar sequences back into real characters, so you can read text that was stored in escaped form.

Does it only work on JSON?

No. It handles arbitrary text. If the input isn't strictly valid JSON-escaped content, a lenient decoder resolves the escape sequences it recognizes and leaves everything else untouched, so ordinary prose with stray quotes or backslashes still works.

Is my data private?

Yes. Nothing is uploaded — all escaping and unescaping happens locally in your browser.