Loading tool…
Escape special characters into backslash sequences for code, or unescape them back to raw text.
Loading tool…
Privacy: this tool runs entirely in your browser. Your input is never sent to, received by, or stored on any server — there are no uploads and no tracking of what you enter.
Programming languages represent newlines and tabs as \n and \t, and quotes must be escaped inside string literals. This tool converts between raw text and escaped form.
Backslash, newline, tab, carriage return and double quotes are escaped or unescaped in both directions.
Pasting multi-line text into source code, JSON string values and config files.