JSON Escape

Turn any text into a safe JSON string, or read an escaped string back as plain text.

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

How JSON Escape works

Escapes or unescapes a JSON string, removing characters that could stop it from parsing. Pick Escape or Unescape with the switch. Output updates as you type.

Input to JSON Escape

  • Escape: paste or type text, or upload a .json or .txt file. You can also choose to minify JSON input first, wrap the result in double quotes and escape non-ASCII as \uXXXX.
  • Unescape: paste or type an escaped string, with or without the double quotes around it. You can also choose to format the result as JSON.

Output from JSON Escape

  • Escape gives a JSON string that you can paste as a value.
  • Unescape gives the plain text, or indented JSON if you chose to format it.