ASCII 95
Low Line (Underscore) (_)
Printable ASCII
Underscore. Common word separator in snake_case. Often used as a placeholder in ignored destructures (_x).
Common uses & context
The character '_' — Low Line (Underscore) — has ASCII code 95 (0x5F), octal 0137, binary 01011111. Underscore. Common word separator in snake_case. Often used as a placeholder in ignored destructures (_x).
Punctuation and symbol codes carry the most syntactic weight per byte in programming: a single '_' can change how a parser reads an entire expression. When '_' needs to appear as literal data rather than syntax, you often have to escape it — in string literals, in regular expressions, in URLs (where it becomes %5F), or in HTML. Knowing its exact code point (95) helps when you filter, validate, or sanitize input byte by byte.
All encodings at a glance
| Decimal | 95 |
| Hexadecimal | 0x5F |
| Octal | 0137 |
| Binary | 01011111 |
| HTML numeric entity | _ |
| URL encoding | %5F |
| UTF-8 bytes | 0x5F |
Code snippets
JavaScript
String.fromCharCode(95); // "_"
95.toString(16); // "5f"Python
chr(95) # '_'
ord(chr(95)) # 95
hex(95) # '0x5f'HTML
_ <!-- numeric entity (no named entity for this character) -->Programming notes
- ▸Code 95 (0x5F); URL-encoded form%5F.
- ▸In HTML the numeric entity is _.
- ▸When used as literal data in regex or strings, '_' usually needs escaping — check the rules for your language.
Frequently asked questions
What character is ASCII code 95?
ASCII code 95 is the character '_' (Low Line (Underscore)). In hexadecimal it is 0x5F, in octal 0137, and in binary 01011111.
What is 0x5F in ASCII?
Hexadecimal 0x5F equals decimal 95, which is the character '_' (Low Line (Underscore)). To convert hex to ASCII yourself, read the two hex digits as a base-16 number (0x5F = 95) and look up that code point.
How do I write the character with code 95 in code?
In JavaScript use String.fromCharCode(95); in Python use chr(95); in HTML use the numeric entity _. In a URL it is percent-encoded as %5F, and in UTF-8 it is stored as the byte sequence 0x5F.