jsontoolskit.org
JSON and JSON Schema utilities, in the browser
Say hi →

JSON Escape

backslash-escape · wrap with quotes · \uXXXX for non-ASCII

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

  1. Paste in either panel. The tool auto-detects direction.
  2. Toggle options:
    • Wrap with quotes — on adds the surrounding "...", off gives just the escaped contents.
    • Escape non-ASCII — replaces every codepoint > 127 with \uXXXX for legacy systems.
  3. 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.