Advertisement
Advertisement

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

If a value is itself JSON-encoded text, recursively parse it into nested JSON instead of leaving it as a string.
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.

Collapse the page

Both options play the collapse and reload this site fresh from the network. They differ in what they take with them.

Refresh files
Drops the offline cache and service worker. Your saved inputs and settings are kept — use this if the site is serving something stale.
Erase everything
All of the above, plus every tool's saved input — including your JWT and HMAC keys — and your settings. Deleted from your device, not sent anywhere. This cannot be undone.