jsonecho

String to JSON

Paste an escaped JSON string, the kind you find in logs and API responses, and get readable JSON back.

Loading the tool...

How to use String to JSON

  1. Paste the escaped string, with or without the surrounding quotes.
  2. Read the formatted JSON on the right.
  3. If the payload was escaped twice, copy the result back into the input and run it again.

About String to JSON

Logs and message queues love to store JSON as text, which means every quote is escaped with a backslash and the whole thing looks like "{\"id\":1}". It is not readable and you cannot paste it into a normal JSON tool.

This converter removes one level of escaping, then parses what is inside and formats it. It also accepts the string without the outer quotes, which is how it usually looks when you copy it from a log line.

Frequently asked questions

What if the result is still escaped?

Some systems escape a payload twice. Use "Use as input" and run it again, the second pass removes the next layer.

Does it handle \n and \t?

Yes. Escape sequences such as \n, \t, \\ and \uXXXX are converted back to the characters they stand for.

The text is not valid JSON after unescaping, now what?

You get an error with the line and column inside the unescaped text. Fix JSON on the validator page can often repair what is left.

More in Converters

All tools →