Your files stay on your device

# Escape a JSON String

Turn raw text into a JSON string body and back, with minimal or ASCII-only escapes and the exact spot named when the input breaks.
EscapeUnescapeFlipEscape non-ASCII (\\uXXXX)Wrap in quotesCopy

Input is your raw text, exactly as pasted, never trimmed. Output is the JSON string body (no surrounding quotes): " \ and control characters escaped.
Paste, drop, or type to begin. Everything stays on this device.

## More JSON tools

- [JSON formatter](/json/formatter)
- [Base64](/encoding/base64)
- [URL encoder](/encoding/url-encoder)
[All JSON tools](/json)

---

Canonical HTML: https://nutter.tools/json/escape/
Markdown version: https://nutter.tools/json/escape/index.md
Plain-text version: https://nutter.tools/json/escape/index.txt
Agent index: https://nutter.tools/llms.txt

