_

ASCII Character: Underscore

ASCII Code 95 · Unicode U+005F · Hex 0x5F

underscore low-line

About the Underscore 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.

Encoding Details

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

Source Code Examples

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

Navigate

Copied!