\

ASCII Character: Backslash

ASCII Code 92 · Unicode U+005C · Hex 0x5C

backslash reverse-solidus

About the Backslash Character

ASCII code 92 (0x5C) represents the Backslash character "\". The "Backslash" character (\) with ASCII code 92 is a punctuation or special symbol in the printable ASCII range. Punctuation characters serve important roles in both natural language writing and programming syntax. The printable ASCII characters (codes 32–126) include the space, digits, uppercase and lowercase Latin letters, and common punctuation symbols. These 95 characters form the foundation of text representation in virtually all computing systems and are universally supported across all character encodings, programming languages, and operating systems.

Encoding Details

ASCII Code 92
Hexadecimal 0x5C
Octal 134
Binary 01011100
Unicode U+005C
Unicode Name REVERSE SOLIDUS
HTML Numeric \
HTML Entity \
URL Escape %5C
UTF-8 (Hex) 5C
Quoted-Printable \

Source Code Examples

JavaScript
// Character literal
let char = '\x5C';
// Using char code
let char2 = String.fromCharCode(92);
// Unicode escape
let char3 = '\x5C';
Python
# Character literal
char = '\\' 
# Using chr()
char = chr(92)
# Using ord() to get code
code = ord('\')  # Returns 92
HTML
<!-- Direct character -->
\
<!-- HTML entity (numeric) -->
&#92;
<!-- Hex entity -->
&#x5C;
C#
// Character literal
char c = '\x5C';
// Using cast
char c2 = (char)92;
// To get code from char
int code = (int)'\x5C';  // Returns 92

Navigate

Copied!