# Online Hexadecimal to Decimal converter

Online Web Code Test |
Online Image Picker |
Online Color Picker

# Hexadecimal to Decimal converter

## How to convert from hex to decimal

#### Hexadecimal to Decimal

The decimal numeral system is the most commonly used and the standard system in daily life. It uses the number 10 as its base (radix). Therefore, it has 10 symbols: The numbers from 0 to 9; namely 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.

A regular decimal number is the sum of the digits multiplied with power of 10.

137 in base 10 is equal to each digit multiplied with its corresponding power of 10:

137_{10} = 1×10^{2}+3×10^{1}+7×10^{0} = 100+30+7

The hexadecimal system (shortly hex), uses the number 16 as its base (radix). As a base-16 numeral system, it uses 16 symbols. These are the 10 decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) and the first six letters of the English alphabet (A, B, C, D, E, F). The letters are used because of the need to represent the values 10, 11, 12, 13, 14 and 15 each in one single symbol.

Hex numbers are read the same way, but each digit counts power of 16 instead of power of 10.

For hex number with n digits:

d_{n-1} ... d_{3} d_{2} d_{1} d_{0}

Multiply each digit of the hex number with its corresponding power of 16 and sum:

decimal = d_{n-1}×16^{n-1} + ... + d_{3}×16^{3} + d_{2}×16^{2} + d_{1}×16^{1}+d_{0}×16^{0}

#### How to Calculate Hexadecimal to Decimal

Hex is a base 16 number and decimal is a base 10 number. We need to know the decimal equivalent of every hex number digit. See below of the page to check the hex to decimal chart.

Here are the steps to convert hex to decimal:

1. Get the decimal equivalent of hex from table.

2. Multiply every digit with 16 power of digit location.

(zero based, 7DE: E location is 0, D location is 1 and the 7 location is 2)

3. Sum all the multipliers.

#### Example:

E7A9 in base 16 is equal to each digit multiplied with its corresponding 16^{n}:

E7A9_{16} = 14×16^{3}+7×16^{2}+10×16^{1}+9×16^{0} = 57344+1792+160+9 = 59305_{10}