Developer Tools
JSON String Escape/Unescape
Escape special characters for JSON strings or unescape JSON-encoded strings.
Characters Escaped
" → \" (double quote) \ → \\ (backslash) / → \/ (forward slash) \n → \\n (newline) \r → \\r (carriage return) \t → \\t (tab)
FAQ
When do I need to escape strings?
When embedding text in JSON that contains quotes, newlines, or backslashes.