All tools

Backslash Escape

Escape or unescape text for source-code string literals — newlines, tabs, quotes and unicode.

Output

Escaping converts real newlines, tabs and quotes into \n, \t, \"; unescaping also resolves \uXXXX and \xXX. Runs locally.