Hex Digits
Each hex digit represents 4 binary bits (a nibble). This makes hex useful for compactly representing binary data.
Hex | Decimal | Binary |
---|---|---|
0 | 0 | 0000 |
1 | 1 | 0001 |
A | 10 | 1010 |
F | 15 | 1111 |
Hexadecimal (base-16) uses digits 0–9 and letters A–F. It’s often used as a shorthand for binary.
Each hex digit represents 4 binary bits (a nibble). This makes hex useful for compactly representing binary data.
Hex | Decimal | Binary |
---|---|---|
0 | 0 | 0000 |
1 | 1 | 0001 |
A | 10 | 1010 |
F | 15 | 1111 |
Hex makes binary easier to read for humans. For example, 11111111 in binary is just FF in hex. It’s widely used in memory addresses, colour codes, and machine code.