How to use the Hex to Decimal Converter
- Type or paste the hex number into the first box.
- Read the decimal result in the second box, and click Copy to copy it.
- Scroll to How it works for the step-by-step method.
How to convert hex to decimal
Hex digits run 0–9, then A = 10, B = 11, C = 12, D = 13, E = 14 and F = 15. Each position is worth a power of 16: 1, 16, 256, 4096 and so on. Multiply each digit by its position value and add them up.
Example: FF = 15 × 16 + 15 × 1 = 255. 1A3 = 1 × 256 + 10 × 16 + 3 = 419.
Hex colors like #3A7BD5 are three hex pairs: red 3A = 58, green 7B = 123 and blue D5 = 213.
Reference table
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
Frequently asked questions
What is FFFF in decimal?
65,535, the largest 16-bit unsigned number.
Is hex case-sensitive?
No. ff, FF and Ff are the same number.
What does 0x mean?
It marks a number as hexadecimal in code, like 0xFF. You can paste it with or without the prefix.