Escape quotes, newlines, tabs and control characters with backslashes, or unescape \n, \t, \uXXXX sequences back to text. Free online string escaper.
Escape or unescape strings for code. Quotes, backslashes, newlines, tabs and control characters are turned into \" \\ \n \t style escapes, and back.
\n \r \t \b \f \v \0, escaped quotes and backslashes, \xHH, \uHHHH and \u{…} code points.
The backslash is removed and the character is kept, which matches how JavaScript treats them.
No. Only double quotes are escaped, which suits JSON and most double-quoted string literals.