Hex to Decimal Converter

Oct 9, 2021

Convert multiple hexadecimal numbers to their decimal equivalents. You can also see the detailed calculations.

Input: Paste Hex numbers below (1 per line if multiple)



Hexadecimal is a numeric system widely used by systems designers and computer programmers. It contains 16 symbols from 0 to 9 and A to F, thus having a base of 16.

Decimal is the numeric system most used by us humans. It consists of the Hindu-Arabic numerals, a set of 10 digits from 0 to 9.

Conversion from Hex to Decimal

A Hex can be converted to Decimal using these steps:-

  1. Take each digit of the hex number from left to right
  2. Convert the hex digit to its decimal equivalent using the table
  3. Multiply every decimal number obtained with 16 power of digit location
  4. Multiply the leftmost number with 16n - 1, where n is the number of digits in the original hex number
  5. For the following number, multiply it with 16n - 2
  6. Repeat the steps for every hex digit, reducing the power of 16 each time until it reaches 0
  7. Add the resultant numbers together to get the decimal equivalent of your original number

Example Hex to Decimal Conversion

Let's say your Hex value is A54, and you want to convert it to its decimal form.

  1. Step 1: Break the Hex number into digits: A 5 4
  2. Step 2: Convert each hex digit into Decimal
    • A10
    • 55
    • 44
  3. Step 3: Multiply each digit with a power of 16
    • 10 becomes (10 x 162) = 2560
    • 5 becomes (5 x 161) = 80
    • 4 becomes (4 x 160) = 4
  4. Step 4: Add the numbers: 2560 + 80 + 4 = 2644
  5. Step 5: 2644 is the decimal equivalent of your hex number A54

Hex to Decimal Table

Give below is a table showing all hex digits and their decimal equivalents.

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

Common usages of Hex

Hex is used in HTML to represent colors. For example, FF0000 refers to the color red. Hex editors use it to display binary data stored in files. You can express any byte from 0-255 using two hexadecimal digits. 00 represents the NULL character whose byte value is 0, and FF means 'ÿ' (the Latin small letter y with diaeresis). Thus, a hex digit represents a nibble, and two of them represent a byte.

Example Hex to Decimal Conversion

  • (45)16 = (4 x 161) + (5 x 160) = (69)10
  • (45)16 = (1 x 162) + (10 x 161) + (4 x 160) = (420)10
Comments 0

History
Oct 9, 2021
See calculations
Jan 28, 2018
Tool Launched