How to use it
- Type a hex number using 0–9 and A–F (0x prefix optional).
- Read the decimal result.
- Follow the place value table to see the working.
- Copy the result or reverse the conversion.
How to convert hex to decimal
Hexadecimal (base 16) uses the digits 0–9 and the letters A–F for values 10–15. Each position is worth a power of 16: 1, 16, 256, 4,096, 65,536 and so on from the right. Multiply each digit by its place value and add.
Example: 2F₁₆
- 2 × 16 = 32
- F (= 15) × 1 = 15
- 32 + 15 = 47
Example: 1A3₁₆ = 1 × 256 + 10 × 16 + 3 × 1 = 256 + 160 + 3 = 419
| Hex | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| Decimal | 10 | 11 | 12 | 13 | 14 | 15 |
The converter shows a row for every digit, notes the decimal value of each letter, and adds them up exactly, even for long values such as memory addresses or 64-bit IDs. Letters can be upper or lower case, and a 0x prefix is ignored.
Hex is common in programming because two hex digits describe exactly one byte: 00 to FF is 0 to 255. Web colors like #FF8800 are three such bytes. For the binary form of a hex value, use hex to binary.
Frequently asked questions
What is FF in decimal?
What is 0x10 in decimal?
Is hex case-sensitive?
No. 2f and 2F are the same value.
Last updated: November 12, 2026