JSON Escape & Unescape
Escape text into a JSON string value, or unescape it back.
Escape turns text into a safe JSON string value (quotes, newlines and backslashes encoded); unescape reverses it. Useful for embedding text in JSON config or APIs.
Escape text so it can be safely embedded inside a JSON string β quotes, backslashes, newlines and control characters are encoded correctly β or unescape an existing JSON string back to readable text. Handy for writing JSON config by hand, building API payloads and debugging. Runs in your browser.
How to use the JSON Escape / Unescape
- Choose Escape or Unescape.
- Paste your text or escaped string.
- Copy the converted result.
Frequently asked questions
What characters get escaped?
Double quotes, backslashes, newlines, tabs and other control characters are encoded with backslash sequences so the result is a valid JSON string value.
When do I need this?
Whenever you embed arbitrary text inside JSON β config files, API request bodies, or log messages β escaping prevents the text from breaking the JSON syntax.