← Cheat Sheets

Binary, Decimal and Hex Table

Number base reference for 0 to 15.

# Binary, Decimal and Hex Table

Number base reference for 0 to 15.

| Decimal | Binary | Hex |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| 10 | 1010 | A |
| 11 | 1011 | B |
| 12 | 1100 | C |
| 13 | 1101 | D |
| 14 | 1110 | E |
| 15 | 1111 | F |

Place values in binary: 128, 64, 32, 16, 8, 4, 2, 1. Hex digit pairs encode one byte, for example `#FF8800` = red 255, green 136, blue 0.