Encode & Decode · Runs in your browser
JSON Unescape
Turn an escaped JSON string — full of \" and \n — back into readable text or JSON. Strings escaped more than once are unescaped all the way.
Escaped string
Drop a file to load it
Unescaped
How to use it
- Paste the escaped string, with or without its surrounding quotes.
- Choose one level or all levels, and whether to format the result if it is JSON.
- Copy the unescaped text, or open it in the JSON Formatter.
Logs and message queues
Log lines and queue messages often contain JSON that has been stringified twice ({\\\"id\\\": 1}). “All levels” keeps unescaping until the text stops changing.
Strict decoding
Invalid escapes such as \x41 are reported with their position rather than guessed at.
Exact numbers
If the result is JSON, it is formatted without changing any numbers.
More encode & decode tools
All free, all private, all running locally in your browser.