Skip to main content

JSON Escape / Unescape

Everything is processed in your browser. Nothing is uploaded.

About this tool: JSON Escape / Unescape

To put text inside a JSON string, characters like quotes, backslashes and line breaks must be escaped. This tool does the escaping for you and can reverse it, which is handy when a payload was double-encoded or when you need to embed a JSON snippet inside another JSON value.

Common uses

  • Making a minified API response readable while debugging
  • Finding the stray comma that breaks a config file
  • Querying a large payload with JSONPath instead of scrolling through it

Frequently asked questions

Which characters are escaped?
Double quotes, backslashes and control characters such as newlines and tabs, using sequences like \n and \".
Why do I see lots of backslashes?
The text has probably been escaped more than once. Unescape it repeatedly until it reads normally.