String to JSON

Turn a stringified JSON string back into clean, readable JSON.

Add a string and click Convert to see the JSON here.

Everything runs in your browser, and your data never leaves your device.

How String to JSON works

Converts a stringified JSON string back into JSON, the same as JSON.parse in JavaScript. It removes the outer quotes, turns escapes like \" and \n back into characters and formats the JSON.

Input to String to JSON

  • An escaped JSON string, with or without the double quotes around it, or a .txt or .json file.

Output from String to JSON

  • JSON indented with 4 spaces.
  • A string that was stringified more than once is unescaped until only JSON is left.