HEX to Decimal

Hexadecimal to Decimal Converter

Enter a hex value, such as 1E, in the left field below and click the Convert button to utilize this online hex to decimal converter tool. You can convert up to 16 hex characters to decimal, with a maximum value of 7fffffffffffff.

Hexadecimal System (Hex System)

The basis of the hexadecimal system (abbreviated hex) is 16. (radix). It employs 16 symbols since it is a base-16 numeric system. The first six letters of the English alphabet are A, B, C, D, E, and F, and the first ten decimal numbers are 0 through 9 (0, 1, 2, 3, 5, 6, 7, and 8). The need to represent the numbers 10, 11, 12, 13, 14, and 15 in a single symbol necessitates the employment of the letters.

In mathematics and information technology, hex is employed to represent binary integers because it is more aesthetically pleasing. Hex is a binarily abridged language since each hex digit represents four binary digits.

A half-byte (also known as a nibble) consists of four binary digits. These can be more amiably represented in hex, where they range from 00 to FF. Accordingly, a single byte can store binary values between 0000 0000 and 1111 1111.

In HTML programming, colors are denoted by a 6-digit hexadecimal number. For example, white is denoted by FFFFFF, whereas black is denoted by 000000.

Decimal System

The decimal numeral system is the most widely used and accepted system in daily life. It bases itself on the number 10. (radix). Consequently, it has ten symbols: The digits 0 through 9, namely 0, 1, 2, 3, 4, 5, 6, 7, and 9.

Many ancient civilizations used the decimal numeral system, which is one of the earliest numeral systems that is now known. The Hindu-Arabic numeral system solved the problem of representing huge numbers in the decimal system. The Hindu-Arabic numeral system assigns positions to the digits of a number. This system uses powers of base 10 to calculate numbers, and the digits are raised to the nth power according to their placements.

Consider the decimal number 2345.67 as an example:

  1. The number 5 is in the place of ones (100 equals 1), and the number 4 is in the place of tens (101)
  2. 3 is in the hundreds position (102)
  3. 2 is in the thousands position (103)

In the meantime, the digits 6 and 7 are in the tenths (1/10, which is 10-1) and the hundredths (1/100, which is 10-2) positions, respectively, after the decimal point.
Therefore, the following is another way to express the number 2345.67: (2 * 103) + (3 * 102) + (4 * 101) + (5 * 100) + (6 * 10-1) + (7 * 10-2)

How to convert from hex to decimal?

  1. The sum of the digits multiplied by 10 is a standard decimal number.
  2. Each digit multiplied by the matching power of 10 results in 137 in base 10:
  3. 13710 = 1×102+3×101+7×100 = 100+30+7
  4. The same rules apply to reading hex numbers. However, each digit counts as a power of 16 rather than 10.

For hex numbers with n digits:

... dn-1... d3 d2 d1 d0

Multiply each hex digit by the matching power of 16 and add the results:

Decimal: dn-116n-1 +... + d3163, d2162, d1161, and d0160

Example:

0.8 in base 16:

0.816 = 0×160+8×16-1 = 0+0.5 = 0.510

Hex to decimal conversion table

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×161+0×160 = 16
11 17 1×161+1×160 = 17
12 18 1×161+2×160 = 18
13 19 1×161+3×160 = 19
14 20 1×161+4×160 = 20
15 21 1×161+5×160 = 21
16 22 1×161+6×160 = 22
17 23 1×161+7×160 = 23
18 24 1×161+8×160 = 24
19 25 1×161+9×160 = 25
1A 26 1×161+10×160 = 26
1B 27 1×161+11×160 = 27
1C 28 1×161+12×160 = 28
1D 29 1×161+13×160 = 29
1E 30 1×161+14×160 = 30
1F 31 1×161+15×160 = 31
20 32 2×161+0×160 = 32
30 48 3×161+0×160 = 48
40 64 4×161+0×160 = 64
50 80 5×161+0×160 = 80
60 96 6×161+0×160 = 96
70 112 7×161+0×160 = 112
80 128 8×161+0×160 = 128
90 144 9×161+0×160 = 144
A0 160 10×161+0×160 = 160
B0 176 11×161+0×160 = 176
C0 192 12×161+0×160 = 192
D0 208 13×161+0×160 = 208
E0 224 14×161+0×160 = 224
F0 240 15×161+0×160 = 240
100 256 1×162+0×161+0×160 = 256
200 512 2×162+0×161+0×160 = 512
300 768 3×162+0×161+0×160 = 768
400 1024 4×162+0×161+0×160 = 1024
Cookie
We care about your data and would love to use cookies to improve your experience.