Hex to decimal converter
Enter a hex number and get its decimal value instantly, plus the other bases and the step-by-step working. Handles huge numbers, negatives and fractions.
Working for 7E316
Multiply each digit by its place value
- 7 × 16^27 × 256= 1792
- E (14) × 16^114 × 16= 224
- 3 × 16^03 × 1= 3
Add them up: 2019 in decimal.
How to convert hex to decimal
- Replace any letters with their values: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.
- Multiply each digit by 16 raised to its position, counting from 0 on the right (1, 16, 256, 4096…).
- Add the results. 2F = 2 × 16 + 15 = 47.
Hex is the shorthand for bytes: colour codes (#FF8800), memory addresses, MAC addresses, Unicode code points and hash digests are all written in it. Decimal is the base people count in, so it is the usual starting or ending point when you need a value a human can check.
Related conversions
Binary to decimal · Octal to decimal · Decimal to hex · Hex to binary · Hex to octal · any base 2–36 · signed (two's complement)
Questions people ask
How do you convert hex to decimal?
Replace any letters with their values: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15. Multiply each digit by 16 raised to its position, counting from 0 on the right (1, 16, 256, 4096…). Add the results. 2F = 2 × 16 + 15 = 47.
What is 7E3 in decimal?
7E3 in hex (base 16) is 2019 in decimal (base 10).
Does it handle negative numbers and fractions?
Yes. A leading minus sign is kept, and digits after a point are converted too. Some fractions that end in one base repeat forever in another (0.1 in decimal is 0.000110011… in binary), so the result is cut at 24 digits and marked as repeating.
Is there a size limit?
No practical one. The converter uses arbitrary-precision integers (JavaScript BigInt), so 64-bit, 128-bit and longer values convert exactly, without rounding.