What is the JSON Unstringifier?
Logs and APIs often show JSON as one long string full of backslashes, like {\"name\":\"ToolPoint\"}. This tool removes the escapes and shows what is really inside.
If the JSON was stringified more than once, tick the option to unwrap every level. The result can be formatted as neat JSON in the same step.
How to use it
- Paste the escaped string in the left box.
- Choose to unwrap many levels and to format the result.
- Copy the clean text from the right box.
Why people like this tool
Removes escapes
Backslashes and \n turn into real text.
Many levels
Unwrap strings inside strings.
Auto format
Show inside JSON neatly.
Forgiving
Works with or without outer quotes.
Example
You see this in a log file:
"{\"name\":\"Asha\",\"age\":30}"After unstringify you get the real JSON:
{"name":"Asha","age":30}
Why JSON gets wrapped in a string
- The program called
JSON.stringifyon a value that was already text, so it was wrapped twice. - A logging tool or database stores the whole JSON as one text field, so every quote gets a backslash.
- An API sends a JSON string inside a JSON field, which is common with webhooks and message queues.
If you still see backslashes after one pass, tick the option to unwrap every level.