JSON Escape
Turn any text or JSON into a backslash-escaped JSON string literal. Optional wrapping quotes ("...") and non-ASCII to \uXXXX for legacy systems. Reverse direction at JSON unescape.
Paste text.
How to escape
- Paste in either panel. The tool auto-detects direction.
- Toggle options:
- Wrap with quotes — on adds the surrounding
"...", off gives just the escaped contents. - Escape non-ASCII — replaces every codepoint > 127 with
\uXXXXfor legacy systems.
- Wrap with quotes — on adds the surrounding
- Copy or Download.
FAQ
What is the difference vs json-stringify?
json-stringify picks a target language (JS, Python, Go, shell) and adds the language-specific wrapper. Use json-escape when you only need the JSON-style escape.
Will it work offline?
Yes.