Advertisement

Hex to Decimal Converter

2
16
10

Advertisement

What is a Decimal System?

There are two main systems used in daily life: the decimal and the binary systems. The decimal and the binary systems. Decimal and binary. Both systems work from a base of 10 (radix). As such, it has ten symbols: 0 to 9. These are 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Understanding Binary Numbers.

What is a Hexadecimal System (Hex System)?

The hexadecimal system (shortly hex) uses 16 as its base (radix). 16 symbols are used to represent the base-16 numeral system. It consists of the first six letters of the English alphabet (A, B, C, D, E, F) and the first ten decimal digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9). Because of the need to represent each of the values 10, 11, 12, 13, 14 and 15 in one single symbol, the letters are used.
Hex is a more user-friendly method of representing binary numbers in mathematics and information technology. The hex digit represents four binary digits, which is why hex is a language to write binary in an abbreviated form.

Half a byte is made up of four binary digits (also called nibbles). Hence, one byte can carry binary values between 0000 0000 and 1111 1111. These can be represented in hex, ranging from 00 to FF, in a more friendly manner.
The hexadecimal representation of colors in HTML is FFFFFF for white, and 000000 for black.

How to Convert Hexadecimal numbers to Decimal numbers?

Advertisement

The hexadecimal number is a base 16 number, while the decimal number is a base 10. The decimal equivalent of every hex digit is needed for conversion.
For hex number with n digits:

d n-1 ... d 3 d 2 d 1 d 0

To sum each hex digit with its power of 16, multiply it by 16:

decimal = d n-1×16 n-1 + ... + d 3×16 3 + d 2×16 2 + d 1×16 1+d 0×16 0

The easiest method is to use our Hexadecimal to Decimal converter tool. To use this tool follow the steps below:

  1. First enter the Hex number in the input box.
  2. Click on the Convert Button to start the conversion from hex to a decimal value.
  3. The tool will then give you the binary value and decimal value of the given hex number in the two display boxes respectively.
  4. In case you want to group the digits, you can select the Digit grouping checkbox.

Conversion table for Hex to decimal

Hex
base 16
Decimal
base 10
Calculation
0 0 -
1 1 -
2 2 -
3 3 -
4 4 -
5 5 -
6 6 -
7 7 -
8 8 -
9 9 -
A 10 -
B 11 -
C 12 -
D 13 -
E 14 -
F 15 -
10 16 1×16 1+0×16 0 = 16
11 17 1×16 1+1×16 0 = 17
12 18 1×16 1+2×16 0 = 18
13 19 1×16 1+3×16 0 = 19
14 20 1×16 1+4×16 0 = 20
15 21 1×16 1+5×16 0 = 21
16 22 1×16 1+6×16 0 = 22
17 23 1×16 1+7×16 0 = 23
18 24 1×16 1+8×16 0 = 24
19 25 1×16 1+9×16 0 = 25
1A 26 1×16 1+10×16 0 = 26
1B 27 1×16 1+11×16 0 = 27
1C 28 1×16 1+12×16 0 = 28
1D 29 1×16 1+13×16 0 = 29
1E 30 1×16 1+14×16 0 = 30
1F 31 1×16 1+15×16 0 = 31
20 32 2×16 1+0×16 0 = 32
30 48 3×16 1+0×16 0 = 48
40 64 4×16 1+0×16 0 = 64
50 80 5×16 1+0×16 0 = 80
60 96 6×16 1+0×16 0 = 96
70 112 7×16 1+0×16 0 = 112
80 128 8×16 1+0×16 0 = 128
90 144 9×16 1+0×16 0 = 144
A0 160 10×16 1+0×16 0 = 160
B0 176 11×16 1+0×16 0 = 176
C0 192 12×16 1+0×16 0 = 192
D0 208 13×16 1+0×16 0 = 208
E0 224 14×16 1+0×16 0 = 224
F0 240 15×16 1+0×16 0 = 240
100 256 1×16 2+0×16 1+0×16 0 = 256
200 512 2×16 2+0×16 1+0×16 0 = 512
300 768 3×16 2+0×16 1+0×16 0 = 768
400 1024 4×16 2+0×16 1+0×16 0 = 1024

Advertisement