UTILS.
100% in-browser
\n

Backslash Escaper

Escape or unescape backslash sequences such as \n, \t and \uXXXX.

output

About this tool

Convert real newlines and tabs to backslash sequences or expand them back, entirely in your browser.

Frequently asked questions

Which sequences are supported?
Escaping handles backslash, newline, tab, carriage return and double quote; unescaping also expands \uXXXX code points.
Does it parse JSON?
No — it works directly on backslash sequences in plain text rather than full JSON values.

More tools