Quiz Entry - updated: 2026.07.14
How do you convert between binary, decimal, and hexadecimal representations?
Each base is positional; the key shortcut is that one hex digit equals exactly four bits, so you can convert hex↔binary in 4-bit groups.
| Binary | Hex | Decimal |
|---|---|---|
| 0000 | 0 | 0 |
| 0001 | 1 | 1 |
| 0100 | 4 | 4 |
| 1001 | 9 | 9 |
| 1010 | A | 10 |
| 1111 | F | 15 |
Conversion shortcuts:
- Binary → Hex: Group 4 bits, convert each group
- Hex → Binary: Expand each hex digit to 4 bits
0xFA1D37B = 1111 1010 0001 1101 0011 0111 1011
Tip: Each hex digit = exactly 4 bits. Memorize A=10, B=11, C=12, D=13, E=14, F=15.
Go deeper:
Hexadecimal (Wikipedia) — the base-16 system and its 4-bits-per-digit relationship to binary.