JSON String Escape / Unescape

Escape or unescape strings for use in JSON. Handles quotes, backslashes, newlines, tabs, and Unicode.

Processed on your device β€” never uploaded
Input
Output

Frequently Asked Questions

What characters need to be escaped in JSON strings?
Double quotes, backslashes, newlines, carriage returns, tabs, form feeds, backspaces, and control characters (U+0000 to U+001F) must all be escaped in JSON strings.
How do I escape a JSON string?
Paste your text in the input and click Escape to convert special characters to their JSON escape sequences like \n for newlines and \" for quotes.
What does JSON unescape do?
JSON unescape converts escape sequences like \n, \t, \", and \uXXXX back to their original characters, making the string human-readable again.