Escape Multiline Text
Input
Hello "World"!
New Line & \slash\Example output
"Hello \"World\"!\nNew Line & \\slash\\"Escape raw text, code snippets, and multiline logs for safe insertion into JSON strings, code literals, or HTML scripts. Easily unescape back to human-readable plain text.
| Operations | Escape / Stringify (default) and Unescape / Parse |
|---|---|
| Customization | Outer double quotes, forward slash escaping (\/), and Unicode hex (\uXXXX) |
| Maximum Input | 5 MB |
| Execution Deadline | 2 s |
Input
Hello "World"!
New Line & \slash\Example output
"Hello \"World\"!\nNew Line & \\slash\\"Input
"Hello \"World\"!\nNew Line"Example output
Hello "World"!
New LineWhen embedding JSON inside inline HTML <script> tags, strings containing '</script>' can break page rendering. Enabling forward slash escaping transforms '/' into '\/', preventing XSS and premature tag closing.
Non-ASCII characters (e.g. accented letters, symbols, emoji) can optionally be converted to standard \uXXXX 4-digit hex escape sequences for ASCII-only payloads.
Carriage returns (\r), line feeds (\n), tabs (\t), backspaces (\b), and form feeds (\f) are safely translated to standard JSON two-character escape sequences.
JSON Formatter
Prettify, indent, and format JSON strings with customizable indentation and key sorting.
JSON Validator
Validate JSON syntax, inspect structure, and diagnose syntax errors with line and column diagnostics.
Base64 Encoder / Decoder
Encode UTF-8 text to standard or URL-safe Base64 and decode Base64 back to text.
URL Encoder / Decoder
Encode and decode URL components, query parameters, and special characters using RFC 3986 percent-encoding or form-urlencoded format.
In JSON syntax, all strings must be delimited by double quotes. Wrapping in double quotes produces a complete valid JSON string literal ready to paste into code or configuration files.
No, the JSON specification allows but does not require forward slashes to be escaped. However, it is strongly recommended when embedding JSON inside HTML <script> tags to avoid XSS vulnerabilities.
No. All escaping and unescaping operations execute 100% locally in your browser. Nothing is sent over the network.