JSON String Escaper / Unescaper
Prepare strings for JSON values or decode escaped JSON string sequences.
Output
How to use this tool
Enter the required values in the labeled fields. Results update in your browser and are announced for assistive technologies. Use realistic measurements and verify important outcomes before acting on them.
Formula or logic
Escape mode uses JSON string escaping. Unescape mode parses valid JSON string sequences and shows errors for invalid input.
Example calculation
Example: Hello "world" with a newline becomes Hello \"world\"\n...
Frequently asked questions
Does it validate invalid escapes?
Yes. Invalid escape sequences show an error.
Does it wrap output in quotes?
No. It returns the escaped string content only.
Related tools
Base64 Encoder / Decoder
Encode UTF-8 text to Base64 and decode Base64 back to plain text locally.
URL Encoder / Decoder
Encode or decode URLs, query parameters, symbols, spaces and Unicode text.
Markdown to HTML Converter
Convert Markdown headings, emphasis, links, quotes, lists, inline code and code blocks into HTML locally.