/

ASCII Character: Slash

ASCII Code 47 · Unicode U+002F · Hex 0x2F

slash forward-slash solidus

About the Slash Character

ASCII code 47 (0x2F) represents the Slash character "/". The "Slash" character (/) with ASCII code 47 is a mathematical operator. Mathematical operators in the printable ASCII range provide the fundamental arithmetic symbols used in programming, spreadsheets, and mathematical notation. 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 47
Hexadecimal 0x2F
Octal 057
Binary 00101111
Unicode U+002F
Unicode Name SOLIDUS
HTML Numeric /
HTML Entity /
URL Escape %2F
UTF-8 (Hex) 2F
Quoted-Printable /

Source Code Examples

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

Navigate

Copied!