Hexadecimal to Decimal Converter

Convert hexadecimal numbers (base 16) into decimal numbers (base 10) with this free online hexadecimal to decimal calculator. Enter your hexadecimal value to get the decimal result and learn how the conversion works.

Convert Hexadecimal to Decimal

Valid characters are 0–9 and A–F. The optional 0x prefix is supported. Spaces between digits are ignored.

Clear

How to Convert Hexadecimal to Decimal

Hexadecimal is a base-16 number system. It uses the digits 0 through 9 and the letters A through F. The letters represent decimal values 10 through 15.

To convert a hexadecimal number to decimal, multiply each digit by the appropriate power of 16 and add the results.

Example: Convert 2F to decimal

2F (hexadecimal)
= 2 × 16¹ + 15 × 16⁰
= 32 + 15
= 47 (decimal)

Therefore, hexadecimal 2F is equal to decimal 47.

Example: Convert A5 to decimal

A5 (hexadecimal)
= 10 × 16¹ + 5 × 16⁰
= 160 + 5
= 165 (decimal)

Hexadecimal Digit Reference Table

Each hexadecimal digit has a decimal value between 0 and 15.

Hexadecimal Decimal Binary Hexadecimal Decimal Binary
0 0 0000 8 8 1000
1 1 0001 9 9 1001
2 2 0010 A 10 1010
3 3 0011 B 11 1011
4 4 0100 C 12 1100
5 5 0101 D 13 1101
6 6 0110 E 14 1110
7 7 0111 F 15 1111

Frequently Asked Questions

What is hexadecimal to decimal conversion?

It converts a number written in base 16 into its equivalent in base 10. Hexadecimal uses digits 0–9 and letters A–F.

What is FF in decimal?

FF in hexadecimal equals 255 in decimal: 15 × 16 + 15 = 255.

What is 1A3 in decimal?

1A3 in hexadecimal equals 419 in decimal: 1 × 256 + 10 × 16 + 3 = 419.

Can I convert very large hexadecimal numbers?

Yes. The calculator uses string arithmetic rather than converting the complete value into a PHP integer. It supports inputs up to 1,000 hexadecimal digits.

Does the converter accept lowercase letters?

Yes. Both uppercase and lowercase hexadecimal letters are accepted.

Can I enter a number beginning with 0x?

Yes. Both FF and 0xFF are valid inputs.

Related Number Conversion Tools