JSON Escape and Unescape

Escape text as a quoted JSON string or decode a JSON string back to its original characters.

Workspace

Result

Your result will appear here.

How to use it

  1. Fill in text or a quoted json string, direction.
  2. Select “Run tool” to see the result.

Worked example

Input
Tea followed by a newline and Coffee
Output
"Tea\nCoffee"

Frequently asked questions

Should the JSON string include quotes when decoding?

Yes. Paste the outer double quotes so the tool can parse the input as a JSON string.