Decimal to Hexadecimal converter is a free online tool to convert the entered value. Try the below converter now!
What is Decimal?
The decimal system is a base-10 numeral system that uses ten digits: 0 through 9. It is the standard number system use in everyday life, from counting to financial transactions and calculations.
- Example: 255 (decimal)
Each decimal digit is multiplied by powers of 10, starting from the rightmost position.
25510 = 2 * 102 + 5 * 101 + 5 * 100 = 200 + 50 + 5 = 255
What is Hexadecimal?
The hexadecimal system is a base-16 numeral system that uses sixteen symbols: 0 through 9 and the letters A through F, where A = 10, B = 11, C = 12, D = 13, E = 14, and F = 15. Hexadecimal provides a concise way to represent large binary numbers.
- Example: FF (hexadecimal)
Each hexadecimal digit represents a power of 16.
FF16 = 15 * 161 + 15 * 160 = 240 + 15 = 255
Decimal to Hexadecimal Conversion
To convert a decimal number to hexadecimal, the repeated division by 16 method is used. The decimal number is repeatedly divided by 16, and the remainders are recorded. The hexadecimal equivalent is obtained by reading the remainders in reverse order, starting from the last remainder.
Steps to Convert Decimal to Hexadecimal
- Divide the decimal number by 16.
- Record the remainder (either a digit between 0 and 9, or a letter from A to F).
- Divide the quotient by 16 and record the remainder.
- Repeat the process until the quotient becomes zero.
- Read the hexadecimal number by writing the remainders in reverse order.
Example Conversions
Let’s go through a few examples to better understand how to convert decimal numbers to hexadecimal.
Example 1: Convert 255 (decimal) to hexadecimal.
- Divide 255 by 16: quotient = 15, remainder = 15 (F)
- Divide 15 by 16: quotient = 0, remainder = 15 (F)
Now, reading the remainders from bottom to top: FF
So, 255 (decimal) is equal to FF (hexadecimal).
Example 2: Convert 100 (decimal) to hexadecimal.
- Divide 100 by 16: quotient = 6, remainder = 4
- Divide 6 by 16: quotient = 0, remainder = 6
Now, reading the remainders from bottom to top: 64
So, 100 (decimal) is equal to 64 (hexadecimal).
Example 3: Convert 500 (decimal) to hexadecimal.
- Divide 500 by 16: quotient = 31, remainder = 4
- Divide 31 by 16: quotient = 1, remainder = 15 (F)
- Divide 1 by 16: quotient = 0, remainder = 1
Now, reading the remainders from bottom to top: 1F4
So, 500 (decimal) is equal to 1F4 (hexadecimal).
Decimal to Hexadecimal Conversion Table
Here’s a quick reference table showing common decimal numbers converted to their hexadecimal equivalents:
Decimal | Hexadecimal |
---|---|
1 | 1 |
5 | 5 |
10 | A |
15 | F |
16 | 10 |
25 | 19 |
50 | 32 |
100 | 64 |
255 | FF |
500 | 1F4 |
1024 | 400 |
Online Decimal to Hexadecimal Converter
Online tools provide a fast and accurate way to convert decimal numbers to hexadecimal, especially when working with large numbers or needing quick results. These tools are commonly used in computer programming, web development, and digital electronics.
Steps to Use an Online Converter
- Enter the decimal number in the input field.
- Click the “Convert” button.
- The tool will display the hexadecimal equivalent of the decimal number.