_

ASCII Code 95

Underscore

About This Character

ASCII code 95 (0x5F) represents the Underscore character "_". The "Underscore" character (_) with ASCII code 95 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.

Character Encoding

Decimal 95
Octal 137
Hexadecimal 0x5F
Binary 01011111
HTML Code _
HTML Entity _
Unicode U+005F
Unicode Name LOW LINE
URL Escape %5F
Quoted-Printable _
UTF-8 (Hex) 5F
Category Printable — Punctuation & Symbols

How to Type in Code

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

See Also

Copied!