How to use it
- Choose escape or unescape.
- Paste your text.
- Copy the result.
How it works
Escaping uses JSON string rules: quotes become \", backslashes \\, line breaks \n, tabs \t and other control characters \uXXXX. Unescaping parses the text as a JSON string (with or without the surrounding quotes) and reports a clear error if it is not valid.
Examples
- He said "hi" followed by a line break becomes "He said \"hi\"\n".
Limitations
- JSON string rules only. Other languages (for example Python, SQL, shell) have different escaping rules.
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.