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.
JSON Escape / Unescape
Securely handle quotes and special characters for JSON strings
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
- Paste your text, or click Load Sample.
- Press Escape for JSON or Unescape JSON.
- 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.