\
Backslash
PrintableASCII 92 | Hex 0x5C | U+005C
Backslash (ASCII 92) is the escape character in C, JavaScript, Python, Java, JSON, and regular expressions. Windows uses the backslash as its path separator (C:\Users\), while Unix uses the forward slash, creating constant friction in cross-platform code. In regular expressions, the backslash escapes metacharacters and introduces special sequences (\d, \w, \b). JSON requires backslashes within strings to be escaped as \\, doubling them, which produces particularly unreadable nested JSON strings.
ASCII Code
Decimal
92
Hexadecimal
0x5C
Octal
134
Binary
0101 1100
URL Escape
%5C
Unicode
Code Point
U+005C
Escape
\u005c
UTF-8 Hex
0x5C
UTF-8 Binary
01011100
UTF-16
0x005C
UTF-32
0x0000005C
HTML Entities
Numeric
\
Hex
\
Named
\
How to Type
Windows Alt CodeAlt + 92
HTML Entity
\
Unicode InputU+005C
Source Code Representations
C / Java
"\u005C"CSS
\005CJavaScript
"\u005C"Perl
\x{005C}Python 2
u"\u005C"Python 3
\u005CRuby
\u{005C}Frequently Asked Questions
What is ASCII code 92?
ASCII code 92 represents the Backslash character. In hexadecimal it is 0x5C, in binary 0101 1100, and in octal 134. It is a printable character that appears as "\" in text.
How do I type ASCII 92 on a keyboard?
On Windows, hold Alt and type 92 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity \ or \.