All representations
| Format | Value |
|---|---|
| Name | Hyphen-minus |
| Decimal | 45 |
| Hexadecimal | 0x2D |
| Octal | 055 |
| Binary | 00101101 |
| HTML numeric entity | - / - |
| Unicode code point | U+002D |
| URL encoded | %2D |
| UTF-8 bytes | 2D (one byte, same as ASCII) |
Notes
- In a URL it is encoded as itself (unreserved).
Nearby codes
Get this code in code
JavaScript '-'.charCodeAt(0) // 45
Python ord('-') # 45
C (char)45