/

ASCII Code 47

Slash

About This 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.

Character Encoding

Decimal 47
Octal 057
Hexadecimal 0x2F
Binary 00101111
HTML Code /
HTML Entity /
Unicode U+002F
Unicode Name SOLIDUS
URL Escape %2F
Quoted-Printable /
UTF-8 (Hex) 2F
Category Printable — Mathematical Operators

How to Type in Code

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

See Also

Copied!