Hyphen in binary code
AnswerHyphen - is 00101101 in binary — ASCII code 45.
012806413201618140211
How hyphen becomes 00101101
The character’s code is 45. Writing 45 as a sum of powers of two gives 32 + 8 + 4 + 1 = 45. Put a 1 under each place value used and a 0 everywhere else, and you get 00101101.
| Binary (8-bit) | 00101101 |
|---|---|
| Decimal (ASCII code) | 45 |
| Hexadecimal | 2D (0x2D) |
| Octal | 055 |
| Unicode | U+002D |
| HTML entity | - |
Frequently asked questions
What is hyphen in binary?
Hyphen is 00101101 in 8-bit binary. That is ASCII and UTF-8 code 45, which is 32 + 8 + 4 + 1 = 45.