UTILS.
100% in-browser
"

JSON String Escaper

Escape or unescape a string for safe use inside a JSON document.

output

About this tool

Escape a raw string for JSON or turn an escaped string back into plain text, all in your browser.

Frequently asked questions

How does escaping work?
The text is run through JSON.stringify and the surrounding quotes are stripped, giving a JSON-safe string body.
What if unescaping fails?
Invalid escape sequences show an error message instead of producing broken output.

More tools