Underscore in binary code
AnswerUnderscore _ is 01011111 in binary — ASCII code 95.
012816403211618141211
How underscore becomes 01011111
The character’s code is 95. Writing 95 as a sum of powers of two gives 64 + 16 + 8 + 4 + 2 + 1 = 95. Put a 1 under each place value used and a 0 everywhere else, and you get 01011111.
| Binary (8-bit) | 01011111 |
|---|---|
| Decimal (ASCII code) | 95 |
| Hexadecimal | 5F (0x5F) |
| Octal | 137 |
| Unicode | U+005F |
| HTML entity | _ |
Frequently asked questions
What is underscore in binary?
Underscore is 01011111 in 8-bit binary. That is ASCII and UTF-8 code 95, which is 64 + 16 + 8 + 4 + 2 + 1 = 95.