Converter Web ToolsConverter WebTools

Escape Sequences Reference (\n, \t, \r)

This escape sequences reference lists backslash escape codes used in strings across most programming languages (C, JavaScript, Python, Java, PHP) — newline, tab, quotes and unicode.

SequenceMeaning
\nNewline (line feed)
\rCarriage return
\tHorizontal tab
\vVertical tab
\bBackspace
\fForm feed
\0Null character
\\Backslash
\'Single quote
\"Double quote
\uXXXXUnicode code point (4 hex)
\xHHByte in hex
\nnnByte in octal

Related tools & charts