DevKits

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

Decimal95
Hexadecimal0x5F
Octal0137
Binary01011111
HTML numeric entity_
URL encoding%5F
UTF-8 bytes0x5F

Code snippets

JavaScript

String.fromCharCode(95); // "_"
95.toString(16); // "5f"

Python

chr(95)           # '_'
ord(chr(95))      # 95
hex(95)           # '0x5f'

HTML

&#95;   <!-- numeric entity (no named entity for this character) -->

Programming notes

  • Code 95 (0x5F); URL-encoded form%5F.
  • In HTML the numeric entity is &#95;.
  • 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 &#95;. In a URL it is percent-encoded as %5F, and in UTF-8 it is stored as the byte sequence 0x5F.

Nearby codes

Encode & convert this character