Hexadecimal · Base 16
Sixteen choices in every place.
The digits are 0 through 9, then A, B, C, D, E, and F. Each step to the left is worth sixteen times as much.
Same number, different bases
Each row below represents the same quantity. The digits and place values depend on the base.
| Number system | Written number |
|---|---|
| Binary · Base 2 | |
| Octal · Base 8 | |
| Decimal · Base 10 | |
| Hexadecimal · Base 16 |
Why the powers start at zero
The rightmost place is 160 = 1. Moving one place left multiplies its value by 16. The next places are 161, 162, and 163. Change a digit above to see how much it contributes.
The extra digits mean A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. Four binary bits have 2⁴ = 16 patterns, so one hexadecimal digit can stand for four bits.
In a hex color such as #FF8040, the six digits form three bytes: FF for red, 80 for green, and 40 for blue. FF = 255, 80 = 128, and 40 = 64 in decimal.
Watch a digit carry
Choose the last one-digit number with the boundary buttons, then press Add 1. Watch it become 0010. The small base label beneath a number tells you which place values to use.