JSON Unescape
About this tool
About JSON Unescape
Logs, message queues, webhooks and database columns often store JSON as an escaped string, full of backslashes: {\"event\":\"signup\"}. That's hard to read and impossible to use until it is decoded. Paste the escaped text, with or without the outer double quotes, and get the original back: \" becomes a quote, \n a real line break, \t a tab and \u00e9 the letter é. If the decoded text is itself JSON, it is pretty-printed automatically so you can read it straight away, and you can turn that off to get the exact string. Line breaks pasted from a terminal are tolerated. When something is wrong, such as an invalid escape like \x41 or an unescaped quote in the middle, the tool tells you what and at which character instead of failing silently. Switch Mode to Escape to go the other way. The text never leaves your browser.
Built and maintained by Abhi JainUpdated
How to Unescape a JSON String
- 1
Paste the escaped string
Paste the text into the Escaped string pane, with or without the surrounding quotes.
- 2
Choose formatting
Leave Pretty-print if the result is JSON ticked to format embedded JSON, or untick it for the raw string.
- 3
Copy the result
Copy or download the unescaped text. Switch Mode to Escape to reverse it.
JSON Unescape: questions and answers
Why does my JSON have backslashes everywhere?
It has been stringified twice: a JSON document was stored as a string inside other JSON or a log line, so its quotes were escaped. Unescaping once gives the original JSON back.
What escapes does JSON support?
\" \\ \/ \b \f \n \r \t and \uXXXX with four hex digits. Anything else, such as \x41 or \', is invalid JSON and is reported.
Do I need to include the outer quotes?
No. The tool works with or without them.
Is my text uploaded?
No. Unescaping happens in your browser.
More JSON Escape presets
Related tools
- JSON FormatterBeautify, minify and validate JSON with exact error locations, without changing a single value.
- JSON ValidatorCheck JSON for errors with line and column, plain-language causes and one-click repair.
- JSON FlattenFlatten nested JSON into dot-notation keys, or unflatten it back.
- JSONPath TesterRun JSONPath expressions against your JSON and see matching values and paths live.