JSON String Escape & Unescape
"Hello\t\"world\"\nGoodbye"
Converted locally in your browser with JSON.stringify and JSON.parse. Your text stays only on this page.
Escape and unescape JSON string literals
Turn raw multi-line text into a valid JSON string literal to drop into a payload, config file, or code string — and reverse the process to read an escaped string out of logs or an API response. Quotes, newlines, tabs, and control characters are handled in your browser.