UTILS.
Private by default
"

JSON String Escaper

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

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
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