Turn any text into a valid JSON string: double quotes, backslashes, new lines and tabs are escaped exactly as JSON requires. Paste a paragraph, an HTML snippet, a Windows path or a multi-line message template and get a value you can drop into a JSON file or API request without breaking it.
Processing runs in your browser. What you type never leaves this device.
Escapes " \ new lines, tabs and control characters
With or without the surrounding quotes
Optional \uXXXX for every non-ASCII character
Reverse button to unescape
Runs in your browser
Put a multi-line WhatsApp or email template into a JSON payload without hand-escaping each line break.
Store HTML, regex patterns or Windows paths (C:\\Users) in JSON config safely.
Create string literals for JavaScript, which shares JSON's escaping rules.
JSON unescape reverses this. For escapes in other formats see the Unicode escape converter and HTML encoder.
JSON Unescape
JSON string literal back to text, including double-escaped JSON
Unicode Escape Converter
Text to \uXXXX, \u{...}, Python, HTML or CSS escapes and back
JSON Formatter
Format and validate JSON
HTML Encoder/Decoder
Encode and decode HTML entities
JSON Sort Keys
Alphabetize JSON keys at every level
JSON Flatten
Nested JSON to dot-path keys
JSON Unflatten
Dot-path keys back to nested JSON
Built by Edesy
Edesy builds AI products for Indian businesses. Start self-serve, no demo call needed.
AI agents that answer and make phone calls 24/7. Handle appointments, inquiries and support in Indian and global languages.
₹50 free credit. No demo call needed.