- About Decimal to Hex Converter Online Tool:
- Decimal Numeral System:
- Hex Numeral System:
- How to convert from decimal to hex?
- How to convert from hex to decimal
- Example #1
- Example #2
- Example #3
- Decimal to hex conversion result in base numbers
- Decimal System
- Hexadecimal System (Hex System)
- How to Convert Decimal to Hex
About Decimal to Hex Converter Online Tool:
This online decimal to hex converter tool helps you to convert one input decimal number (base 10) into a hex number (base 16).
Decimal Numeral System:
Decimal numeral system (also called Hindu-Arabic, or Arabic) has 10 digits, include (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) , it’s the most used number system in our daily life. Decimal numeral system is also one of the most ancient number system, it’s inspired by 10 fingers of human.
Hex Numeral System:
Hex numeral system (also called hexadecimal) has 16 digits, include (0, 1, 2, 3, 4, 5, 6, 7, 8, 9) just like decimal numeral system, plus (a, b, e, d, e, f) 6 additional characters. Which means it’s is a number system of base 16. Since Hex numeral system can represent any binary string in a readable way, It is widely used in computer science. The SHA256 hash string is often appears as Hex style string, the Color System used in HTML is also be written down as Hex number, from #000000 (pure black) to #FFFFFF (pure white).

How to convert from decimal to hex?
Step 1: Divide the decimal number by 16, get the integer quotient and the remainder.
Step 2: Convert the remainder to the hex digit in that position.
Step 3: Using the integer quotient to repeat the steps until the integer quotient equals to 0.
Example: Convert decimal number «2024» to hex number (result is «7E8»):
How to convert from hex to decimal
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
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:
Multiply each digit of the hex number with its corresponding power of 16 and sum:
Example #1
3B in base 16 is equal to each digit multiplied with its corresponding 16 n :
3B 16 = 3×16 1 +11×16 0 = 48+11 = 59 10
Example #2
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
Example #3
0.8 16 = 0×16 0 +8×16 -1 = 0+0.5 = 0.5 10
To use this decimal to hex converter tool, you have to type a decimal value like 79 into the left field below, and then hit the Convert button. Therefore, you can convert up to 19 decimal characters (max. value of 9223372036854775807) to hex.
Decimal to hex conversion result in base numbers
Decimal System
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.
As one of the oldest known numeral systems, the decimal numeral system has been used by many ancient civilizations. The difficulty of representing very large numbers in the decimal system was overcome by the Hindu–Arabic numeral system. The Hindu-Arabic numeral system gives positions to the digits in a number and this method works by using powers of the base 10; digits are raised to the n th power, in accordance with their position.
For instance, take the number 2345.67 in the decimal system:
- The digit 5 is in the position of ones (10 0 , which equals 1),
- 4 is in the position of tens (10 1 )
- 3 is in the position of hundreds (10 2 )
- 2 is in the position of thousands (10 3 )
- Meanwhile, the digit 6 after the decimal point is in the tenths (1/10, which is 10 -1 ) and 7 is in the hundredths (1/100, which is 10 -2 ) position
- Thus, the number 2345.67 can also be represented as follows: (2 * 10 3 ) + (3 * 10 2 ) + (4 * 10 1 ) + (5 * 10 0 ) + (6 * 10 -1 ) + (7 * 10 -2 )
Hexadecimal System (Hex System)
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 is used in mathematics and information technologies as a more friendly way to represent binary numbers. Each hex digit represents four binary digits; therefore, hex is a language to write binary in an abbreviated form.
Four binary digits (also called nibbles) make up half a byte. This means one byte can carry binary values from 0000 0000 to 1111 1111. In hex, these can be represented in a friendlier fashion, ranging from 00 to FF.
In html programming, colors can be represented by a 6-digit hexadecimal number: FFFFFF represents white whereas 000000 represents black.
How to Convert Decimal to Hex
Decimal to hexadecimal conversion can be achieved by applying the repeated division and remainder algorithm. Simply put, the decimal number is repeatedly divided by the radix 16. In between these divisions, the remainders give the hex equivalent in reverse order.
Here is how to convert decimal to hex step by step:
- Step 1: If the given decimal number is less than 16, the hex equivalent is the same. Remembering that the letters A, B, C, D, E and F are used for the values 10, 11, 12, 13, 14 and 15, convert accordingly. For example, the decimal number 15 will be F in hex.
- Step 2: If the given decimal number is 16 or greater, divide the number by 16.
- Step 3: Write down the remainder.
- Step 4: Divide the part before the decimal point of your quotient by 16 again. Write down the remainder.
- Step 5: Continue this process of dividing by 16 and noting the remainders until the last decimal digit you are left with is less than 16.
- Step 6: When the last decimal digit is less than 16, the quotient will be less than 0 and the remainder will be the digit itself.
- Step 7: The last remainder you get will be the most significant digit of your hex value while the first remainder from Step 3 is the least significant digit. Therefore, when you write the remainders in reverse order — starting at the bottom with the most significant digit and going to the top- you will reach the hex value of the given decimal number.
Now, let’s apply these steps to, for example, the decimal number (501)10