Hex to Decimal Converter
Convert hexadecimal to decimal instantly. Enter any hex value with digits 0-9 and A-F to get the base-10 number, binary form, and place-value steps.
Updated 2026-06-14 · Free · No sign-up · Runs privately in your browser
Show the place-value breakdown
How the Hex to Decimal Converter Works
Hexadecimal is a base-16 number system that uses the digits 0–9 plus the letters A–F to represent values 10–15. This converter takes a hex value, accepts an optional 0x prefix, and returns the equivalent decimal (base 10) number along with the binary form.
The Method
Each digit in a hex number has a place value that is a power of 16. Reading right to left, the positions are worth 16⁰ (1), 16¹ (16), 16² (256), and so on. To convert:
Decimal = (digit value × 16ᵖᵒˢⁱᵗⁱᵒⁿ) summed across every digit
The letters map to numbers first: A=10, B=11, C=12, D=13, E=14, F=15.
Worked Example
Convert hex 2F9 to decimal:
| Digit | Value | Position | Power of 16 | Product |
|---|---|---|---|---|
| 2 | 2 | 2 | 16² = 256 | 512 |
| F | 15 | 1 | 16¹ = 16 | 240 |
| 9 | 9 | 0 | 16⁰ = 1 | 9 |
Adding the products: 512 + 240 + 9 = 761. So hex 2F9 equals decimal 761.
Where You Will See Hex
Hexadecimal appears constantly in technology because it is a tidy shorthand for binary:
- Web colors — codes like
#FF5733are three hex pairs for red, green and blue. - Memory addresses — debuggers and disassemblers show addresses in hex.
- Byte values — a single byte ranges from
00toFF(0 to 255 in decimal).
Because each hex digit equals exactly four binary bits, the binary output makes the bit-level pattern of your value easy to inspect.
Frequently asked questions
How do you convert hex to decimal?+
Multiply each hex digit by 16 raised to the power of its position (from 0 on the right), then add the results. Letters A-F stand for the values 10-15.
What is FF in decimal?+
Hex FF equals 255 in decimal: F is 15, so 15x16 + 15x1 = 240 + 15 = 255. FF is the largest two-digit hex value.
What does the letter A mean in hexadecimal?+
In hexadecimal, the letters A, B, C, D, E and F represent the decimal values 10, 11, 12, 13, 14 and 15 respectively, extending the digits beyond 9.
What is 0x10 in decimal?+
Hex 0x10 equals 16 in decimal: 1x16 + 0x1 = 16. The 0x prefix simply signals that the number is written in hexadecimal.
Why is hexadecimal used in computing?+
Hex is a compact, human-friendly way to write binary because each hex digit maps to exactly four bits. It is used for colors, memory addresses, and byte values.