Hex to Decimal Converter
Convert hexadecimal to decimal instantly, including exact large integers, hex fractions, binary output, and signed two's-complement values.
Enter a Hexadecimal Number
3 × 16¹ + 11 × 16⁰ = 59
Live Results
∑ How Hex to Decimal Conversion Works
Hexadecimal is base 16, so each position is worth a power of 16. Replace A–F with 10–15, multiply every digit by its positional value, and add the products.
3 × 16¹ + 11 × 16⁰ = 48 + 11 = 59₁₀
14 × 16³ + 7 × 16² + 10 × 16¹ + 9 = 59,305₁₀
8 × 16⁻¹ = 8 ÷ 16 = 0.5₁₀
Hexadecimal (base 16)
Hex uses sixteen symbols: 0–9 and A–F. It is compact, maps neatly to four-bit binary groups, and is common in programming, memory addresses, byte values, and colors.
Decimal (base 10)
Decimal uses digits 0–9. Each position is a power of 10, making it the familiar system for everyday arithmetic and human-readable numeric values.
± Signed Hex and Two's Complement
Computers often store signed integers in two's-complement form. The highest bit is the sign bit: a clear bit means non-negative; a set bit means the value is negative.
For an n-bit hexadecimal value with its sign bit set, calculate signed value = unsigned value − 2ⁿ. Two hex digits use 8 bits, four use 16 bits, and so on.
Example: FF is 255 unsigned. At 8 bits, 255 − 256 = −1. Writing 00FF changes the width to 16 bits, so its signed value is 255.
| Hex | Unsigned | Signed |
|---|---|---|
| 7F | 127 | 127 |
| 80 | 128 | −128 |
| FF | 255 | −1 |
| FFFF | 65,535 | −1 |
# Hex to Decimal Conversion Table
| Hex | Decimal | Calculation |
|---|---|---|
| 0–9 | 0–9 | same digit value |
| A | 10 | 10 × 16⁰ |
| B | 11 | 11 × 16⁰ |
| C | 12 | 12 × 16⁰ |
| D | 13 | 13 × 16⁰ |
| E | 14 | 14 × 16⁰ |
| F | 15 | 15 × 16⁰ |
| 10 | 16 | 1 × 16¹ + 0 |
| 1A | 26 | 1 × 16¹ + 10 |
| 20 | 32 | 2 × 16¹ + 0 |
| FF | 255 | 15 × 16¹ + 15 |
| 100 | 256 | 1 × 16² |
Hexadecimal Values, Signed Numbers, and Conversion
How to convert hex to decimal?
Assign each hexadecimal digit its value (A=10 through F=15), multiply it by 16 raised to its position counting from zero at the right, and add the products. For example, 3B = 3×16¹ + 11×16⁰ = 59.
Can I enter hexadecimal numbers with a 0x prefix?
Yes. The converter accepts an optional 0x prefix, so 0xFF and FF both convert to 255.
How do hexadecimal fractions convert to decimal?
Digits after the hexadecimal point use negative powers of 16. For example, 0.8₁₆ = 8×16⁻¹ = 0.5₁₀. This tool uses exact integer arithmetic for the fractional conversion.
What do A, B, C, D, E, and F mean in hex?
They represent decimal values 10, 11, 12, 13, 14, and 15. Hex needs these extra symbols because one digit must represent sixteen possible values.
How is a signed hexadecimal value converted?
For two’s complement, use the entered bit width. If the highest bit is set, subtract 2 raised to that width from the unsigned value. FF at 8 bits is 255−256=−1; 00FF at 16 bits is positive 255.
Does this converter handle very large hexadecimal numbers?
Yes. Integer and fractional calculations use BigInt-based exact arithmetic, so values beyond JavaScript’s usual safe integer range do not lose digits. Input is capped at 256 hex digits to keep the browser responsive.
Related Tools
Useful tools selected for this workflow

Binary Converter
Convert binary to decimal and decimal to binary, perform exact binary arithmetic, and view hexadecimal, octal, bit-length, and calculation steps.

Convert Inches to Decimal
Convert inches to decimal.

Convert Decimal to Inches
Convert decimal to inches.

Weight Calculator
Convert weight and mass between different units including kilograms, pounds, ounces, grams, stone, and more. Fast and accurate weight conversion tool.

Color Converter
Convert colors between different formats such as hex, rgb, and hsl.

Integer Base Converter
Convert numbers between different bases.