Hexadecimal to Decimal Converter

Free online hexadecimal to decimal converter with step-by-step explanation. Convert any hexadecimal number to decimal and see the sum of the powers of 16.

Accepts spaces and the 0x and # prefixes — only the digits 0 to 9 and the letters A to F are valid.
Quick Value Selection
Decimal Result (Base 10):
255

About this tool

The hexadecimal system (base 16) uses the digits 0 to 9 and the letters A to F, making it the preferred compact way to represent binary values in programming, CSS colors, and memory addresses. This tool translates any hexadecimal number into the corresponding decimal value and shows in detail the two classic conversion methods: the sum of the powers of 16 and the successive multiplication method.

Step-by-Step Resolution (Sum of the Powers of 16)

Each digit is worth the power of 16 matching its position. The table below uses the hexadecimal number entered in the input field, multiplying the decimal value of each digit by its weight and adding up the contributions:

DigitDecimal ValuePower (16^n)WeightContribution
F151611615 × 16 = 240
F15160115 × 1 = 15
Sum of the contributions (decimal result):255

Successive Multiplication Method

A practical alternative that avoids calculating powers: start from the leftmost digit, multiply the running total by 16 and add the value of the next digit until the end of the number:

#DigitCalculationRunning Total
1F0 × 16 + 1515
2F15 × 16 + 15255

Hexadecimal Digit Table

Hexadecimal needs 16 symbols for each position, so the letters A to F continue the count after 9. Use this reference to quickly identify the decimal value of each digit:

00
11
22
33
44
55
66
77
88
99
A10
B11
C12
D13
E14
F15

How to Use the Hexadecimal to Decimal Converter

1

Enter the Hexadecimal Number

Enter the value you want to convert into the input field. You can paste the number with spaces, with the '0x' prefix, or with the '#' used in CSS colors.

2

See the Decimal Result

The base-10 value appears automatically right below, with no need to click any button.

3

Copy or Explore the Step-by-Step

Click to copy the result, or scroll down to see the sum of the powers of 16 and the successive multiplication method applied to your number.

Practical Applications of Hexadecimal Conversion

Hexadecimal shows up everywhere in development and electronics. See where the conversion is used:

  • CSS Colors and DesignFinding the decimal value of each channel in a hexadecimal color to convert it to RGB or fine-tune palettes.
  • Programming and DebuggingReading memory addresses, hex dumps, error codes, and constants written with the 0x prefix.
  • Computer NetworksInterpreting MAC addresses, IPv6 address blocks, and packet headers displayed in hexadecimal.
  • Electronics and MicrocontrollersConverting register values, bit masks, and I2C device addresses found in datasheets.

Frequently Asked Questions About Hexadecimal to Decimal

What is FF in decimal?

The hexadecimal number FF equals 255 in decimal, the result of 15 × 16 + 15. It's the largest value representable in two hexadecimal digits and also the largest value of an unsigned byte.

What does the '0x' prefix mean before a number?

The '0x' prefix (e.g. 0x1F4) is the convention used in programming languages such as C, JavaScript, and Python to explicitly indicate that the following number is in base 16. This converter accepts the prefix and ignores it in the calculation.

Why does hexadecimal use the letters A to F?

Each base-16 position has to represent 16 distinct values, but the decimal system only offers the symbols 0 to 9. The letters A to F complete the count, standing for 10, 11, 12, 13, 14, and 15 respectively.

Can I convert a hexadecimal color such as #FF5733?

Yes. The '#' is ignored automatically and the value is treated as a single number, giving 16,734,003. If you want the separate RGB channels, convert each pair of digits individually: FF = 255, 57 = 87, and 33 = 51.

Recommended Reading:Wikipedia (Hexadecimal)

See also