Hex to Decimal Converter
Convert any hexadecimal number to decimal. Hexadecimal (base 16) uses digits 0–9 and letters A–F, and it shows up everywhere in computing: colour codes like #FF5733, memory addresses, and error codes. Type a hex number and the decimal answer appears instantly.
How to use this converter
Type a hexadecimal number using digits 0–9 and letters A–F (with or without a 0x prefix — the converter strips it), with decimal as the target base. The decimal result appears instantly.
Formula
Multiply each digit by its place value (powers of 16) and add. Example: FF = 15 × 16 + 15 = 255. 1F4 = 1 × 256 + 15 × 16 + 4 = 500. Hex 10 = 16 in decimal; hex 100 = 256.
Each hex digit is worth four bits, which is why programmers love it: one hex digit stands for exactly four binary digits, so long binary numbers become short and readable. A is 10, B is 11, C is 12, D is 13, E is 14 and F is 15. The place values go up by 16 each step: 1, 16, 256, 4096.
Hex to decimal examples
| From | Equals |
|---|---|
| FF | 255 |
| A | 10 |
| 10 | 16 |
| 64 | 100 |
| FF00 | 65,280 |
| 1F4 | 500 |
| 3E8 | 1,000 |
| 7FFF | 32,767 |
Frequently asked questions
What is hexadecimal?
Base-16 counting, using digits 0–9 and letters A–F (A = 10 … F = 15). Each hex digit is worth four bits, so it is a short way of writing binary.
How do I convert hex to decimal?
Multiply each digit by its place value (powers of 16, from the right: 1, 16, 256…) and add. FF = 15 × 16 + 15 = 255.
What is FF in decimal?
255. It is the largest value in one byte (8 bits).
Where is hexadecimal used?
Colour codes (#FF5733), memory addresses, error codes, and anywhere programmers need a compact way to write binary.