JSON String Escape / Unescape
Escape or unescape a string for embedding in JSON.
How to use
Pick Escape or Unescape, paste your text, and the result appears below. Click Copy to grab it.
About this tool
Turn any text into a JSON-safe string (escaping quotes, backslashes, newlines, tabs, and control characters) or reverse it back to the original. Handy for embedding snippets in JSON config or payloads. It runs entirely in your browser.
What you can use JSON String Escape / Unescape for
- Embed a multi-line snippet inside a JSON value
- Escape a string with quotes for a JSON config
- Unescape a JSON string back to readable text
- Prepare text for a JSON API payload
Frequently asked questions
What does escaping do?
It converts characters that would break a JSON string — double quotes, backslashes, newlines, tabs, and other control characters — into their escaped equivalents (\", \\, \n, \t) so the text can sit safely inside a JSON string.
Does the output include the surrounding quotes?
No — you get just the escaped inner content, ready to paste between your own quotes. Unescape accepts input with or without wrapping quotes.
Is my input uploaded?
No — escaping and unescaping happen entirely in your browser.