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
Waiting for input

How to use it

  1. Paste the escaped string, with or without its surrounding quotes.
  2. Choose one level or all levels, and whether to format the result if it is JSON.
  3. 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.