ASCII code for underscore
95
Low line — _
| Decimal | 95 |
| Hexadecimal | 0x5F |
| Octal | 0137 |
| Binary | 01011111 |
| HTML entity | _ |
What it is
Low line is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 95, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 95 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.
Frequently asked questions
What is the ASCII code for underscore?
The ASCII code for underscore is 95 in decimal, 0x5F in hexadecimal and 0137 in octal.
What is underscore in binary?
01011111 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is underscore a printable character?
Yes. Low line is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for backtick — 96
- ASCII code for lowercase a — 97
- ASCII code for lowercase b — 98
- ASCII code for lowercase c — 99
- ASCII code for lowercase d — 100
- ASCII code for lowercase e — 101
- ASCII code for lowercase f — 102
- ASCII code for lowercase g — 103
- ASCII code for lowercase h — 104
- ASCII code for lowercase i — 105
- ASCII code for lowercase j — 106
- ASCII code for lowercase k — 107
Every character by name · The ASCII table · Text to binary converter