Hex to decimal
Rewrite whole numbers in another base.
Converter
Hexadecimal (base 16) to Decimal (base 10) at a glance
21 rows| Hexadecimal (base 16) | Decimal (base 10) |
|---|---|
| 1 hex | 1 dec |
| 2 hex | 2 dec |
| 3 hex | 3 dec |
| 4 hex | 4 dec |
| 5 hex | 5 dec |
| 6 hex | 6 dec |
| 7 hex | 7 dec |
| 8 hex | 8 dec |
| 9 hex | 9 dec |
| 10 hex | 10 dec |
| 15 hex | 15 dec |
| 20 hex | 20 dec |
| 25 hex | 25 dec |
| 30 hex | 30 dec |
| 40 hex | 40 dec |
| 50 hex | 50 dec |
| 75 hex | 75 dec |
| 100 hex | 100 dec |
| 250 hex | 250 dec |
| 500 hex | 500 dec |
| 1,000 hex | 1,000 dec |
Quick pairs
tap to loadHow the hexadecimal (base 16) to decimal (base 10) conversion works
Binary, octal and hexadecimal are the ones programmers reach for; every base from 2 to 36 is here.
To convert by hand, expand the number in its source base by multiplying each digit by the base raised to its position. Then divide the total by the target base over and over, reading the remainders from last to first.
Questions
Which units does this number base converter cover?
14 units in total, all referenced to the decimal. They include binary (base 2), octal (base 8), decimal (base 10), hexadecimal (base 16), base 3, base 4 and more. Pick any pair from the two dropdown lists.
How precise are the results?
Every conversion is computed in your browser at double precision from the factors listed on this page, which follow the SI definitions and the exact international agreements for imperial and US customary units. Use the Decimals control to round the display without changing the underlying value.
Does anything I type leave my device?
No. The converter is plain JavaScript running locally, with no server round-trip, and the page keeps working offline once loaded.