Calculators.Life Calculator
Math

Hex to Decimal Converter

Input Parameters

Scenarios
Enter a valid hexadecimal string (0-9, A-F). Fractional hex values with a point (e.g., 0.8 or 3B.A) are supported.
Separate integers into standard groups of 3 digits (decimal) or nibbles of 4 bits (binary).

Computed Results

Decimal Value (Base 10)
59
Signed 2's Complement Decimal59
Binary Value (Base 2)111011
Octal Value (Base 8)73
Calculation StepsFormula: decimal = sum(d_i × 16^i) 3B_16 = (3 × 16^1) + (11 × 16^0) = 59_10

This tool converts base-16 hexadecimal strings into standard base-10 decimal numbers. It also provides the equivalent binary and octal values, along with the signed 2's complement decimal for applicable integers, showing the exact mathematical steps for the conversion.

Hex to Decimal Conversion Formula

Hexadecimal is a base-16 number system that uses sixteen distinct symbols: the numbers 0 through 9 represent values zero to nine, and the letters A through F represent values ten to fifteen. To convert a hexadecimal number to a decimal number, you multiply each digit by 16 raised to the power of its positional index, starting with 0 from the rightmost integer digit.

Decimal = ∑ (di × 16i)

For fractional hexadecimal values (numbers after a decimal point), the positional index becomes negative (e.g., -1, -2), meaning you divide by 16, 256, and so on.

Verified Conversion Examples

Here are examples of how different hexadecimal inputs are processed into decimal values based on the positional formula.

Basic Single Digit Conversion

Converting the maximum single hex digit, F:

Large Value with Digit Grouping

Converting a longer string, ABCDEF123, with digit grouping enabled for readability:

Fractional Hex Value

Converting a hex value with a fractional component, A.8:

Practical Use Cases

Hexadecimal to decimal conversion is primarily used in computer science, programming, and digital electronics. Because hex is a compact way to represent binary data (each hex digit maps exactly to four binary bits, or a "nibble"), it is frequently used to display memory addresses, error codes, and MAC addresses. Converting these values to base-10 decimal helps programmers and engineers interpret the underlying numerical values in a more human-readable format.

Frequently Asked Questions

How do letters convert to numbers in hexadecimal?

In the base-16 system, the letters A through F represent the decimal values 10 through 15. Specifically: A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15.

What is the signed 2's complement decimal?

Signed 2's complement is a mathematical method computers use to represent negative integers. If the most significant bit (the first binary digit) of the hex value is 1 (which occurs for hex digits 8 through F), the number is interpreted as negative in a signed context.

Can I convert negative hexadecimal numbers?

Yes. If you input a hexadecimal string with a minus sign (e.g., -FF), the calculator will process the absolute value and apply the negative sign to the final decimal, binary, and octal outputs.

Author portrait
About the Author
Arnab Biswas

Calculator developer and SEO strategist who builds practical online calculators and tests calculation logic, input handling, and expected results using real-world scenarios.