How to convert Hexadecimal to Decimal
Hexadecimal is a positional system with place values that are powers of 16. To convert to decimal, multiply each digit by its place value — 16⁰ for the rightmost digit, 16¹ for the next, and so on — then add everything up.
Worked example
Convert 2F3 (hexadecimal) to decimal:
- Write out the place values:
2F3= 2×256 + F×16 + 3×1 - Add them up:
755
So 2F3 in hexadecimal is 755 in decimal.
Hexadecimal to Decimal conversion table
| Hexadecimal | Decimal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| A | 10 |
| B | 11 |
| C | 12 |
| D | 13 |
| E | 14 |
| F | 15 |
Frequently asked questions
- Can this handle numbers larger than 64 bits?
- Yes. Conversion runs on arbitrary-precision integers, so numbers of any length convert exactly. Many online converters silently lose precision above 2⁵³ (about 16 decimal digits) — this one doesn't.
- How do I convert negative numbers?
- A leading minus sign works in every base. For the bit-pattern view programmers usually want, switch the mode to two's complement at 8, 16, 32, or 64 bits — then binary, octal, and hex show the bit pattern while decimal shows the signed value.
- Can I convert the other way, or to other bases?
- Use the Decimal to Hexadecimal converter, or just change the From/To dropdowns above — every common base is shown at once anyway, and a Text mode converts ASCII to bytes and back.
Need arithmetic rather than conversion — adding hex numbers, shifting bits, masking? Use the programmer's calculator.