All representations
| Format | Value |
|---|---|
| Name | Uppercase B |
| Decimal | 66 |
| Hexadecimal | 0x42 |
| Octal | 0102 |
| Binary | 01000010 |
| HTML numeric entity | B / B |
| Unicode code point | U+0042 |
| URL encoded | %42 |
| UTF-8 bytes | 42 (one byte, same as ASCII) |
Notes
- Its lowercase partner is b (98): add 32, or set bit 5.
- It is letter number 2 of the alphabet.
Nearby codes
Get this code in code
JavaScript 'B'.charCodeAt(0) // 66
Python ord('B') # 66
C (char)66