Paste a JSON object or escaped string — the tool auto-detects and converts instantly. You can also click Escape or Unescape manually.
Try the JSON escape tool with sample data
Escape JSON to string or unescape escaped strings back to formatted JSON — instant & secure
Paste a JSON object or escaped string — the tool auto-detects and converts instantly. You can also click Escape or Unescape manually.
Try the JSON escape tool with sample data
Use our free JSON escape tool to convert JSON to escaped strings or reverse the process in 3 simple steps
Paste a valid JSON object into the JSON escape tool to escape it, or paste an escaped string with backslash sequences to unescape. Click 'Load Sample Data' to try our JSON escape and unescape features instantly.
{
"name": "John Doe",
"message": "Hello\nWorld",
"path": "C:\\Users\\john"
}Choose your JSON escape operation: Escape converts JSON into a compact escaped string, Unescape reverses the process and parses escaped strings back into formatted, readable JSON. The JSON escape tool processes everything instantly in your browser.
"{\"name\":\"John Doe\",\"message\":\"Hello\\nWorld\",\"path\":\"C:\\\\Users\\\\john\"}"Copy the JSON escape or unescape output to your clipboard, or download it as a .json or .txt file. All JSON escape processing stays in your browser — nothing is sent to any server.
Common questions about escaping and unescaping JSON
Edit, format, and beautify JSON
Validate, fix, and inspect JSON
Compare, measure, and map JSON
Convert JSON to other formats
Convert other formats to JSON
Generate code and format other languages