Skip to content

Developer Tools · free · no sign-up

JSON Escape / Unescape

Escape text so it is safe inside a JSON string, or unescape it back to normal text.

How it works Report a problem

JSON Escape / Unescape

Securely handle quotes and special characters for JSON strings

Data Input

About the JSON Escape / Unescape

Escape text so it is safe inside a JSON string, or unescape it back to normal text.

How to use the JSON Escape / Unescape

  1. Paste your text, or click Load Sample.
  2. Press Escape for JSON or Unescape JSON.
  3. Click Copy Result.

Worked example

A quote and a new line in text become \" and \n when escaped.

Tips

  • Escaping is needed for quotes, backslashes and line breaks inside JSON strings.

Frequently asked questions

Why do I need to escape JSON?
Special characters would otherwise break the JSON syntax.