Convert Decimal Number (Base 10) to Hexadecimal Number (Base 16)

Decimal to Hexadecimal Converter Sign

This calculator will convert decimal numbers into hexadecimal numbers and display an interactive conversion chart showing how it arrived at the result.

Tapping any number within the generated conversion chart will display an explanation of how the calculator arrived at the number located within the tapped cell.

If you would like to convert base 16 to base 10 numbers, please visit the Hex to Decimal Converter.

Read more ...

Also on this page:

Decimal to Hexadecimal Converter

Convert decimal to hexadecimal number (base 10 to base 16).

Special Instructions

Learn More

Selected Data Record:

A Data Record is a set of calculator entries that are stored in your web browser's Local Storage. If a Data Record is currently selected in the "Data" tab, this line will list the name you gave to that data record. If no data record is selected, or you have no entries stored for this calculator, the line will display "None".

DataData recordData recordSelected data record: None
Decimal:Decimal number:Decimal number (base 10):Decimal number (base 10):

Decimal number (base 10):

Enter the decimal (base 10) number you would like to convert into a hexadecimal number. Note that the entered number may only consist of digits 0-9, a single decimal point, and the leading number must not be a zero. For numbers containing a decimal point, the decimal to hex converter will only convert out to the last digit entered and will not round the result.

Hexadecimal:Hexadecimal:Hexadecimal (base 16) equivalent:Hexadecimal (base 16) equivalent:

Hexadecimal (base 16) equivalent:

This is the hexadecimal equivalent to the entered decimal number. Note that after clicking the Convert Decimal to Hexadecimal button the converter will display an interactive conversion chart and a conversion summary, both of which will help you to see how the converter arrived at the result.

If you would like to save the current entries to the secure online database, tap or click on the Data tab, select "New Data Record", give the data record a name, then tap or click the Save button. To save changes to previously saved entries, simply tap the Save button. Please select and "Clear" any data records you no longer need.

Help and Tools

Learn

What hexadecimals are and how to convert a decimal number into a hexadecimal.

What is a Hexadecimal Number?

The easiest way to understand what a hexadecimal number is is to compare it to something you already know -- a decimal number. As you know, a decimal number uses the base 10 system for counting and expressing value. It's called "base 10" because it uses ten digits (0,1,2,3,4,5,6,7,8,9) to count and express values.

The hexadecimal system, on the other hand, uses the base-16 method for counting and expressing value. It's called "base 16" because it uses 16 digits to count and express value. However, since we only have 10 numeric characters to work with, the hexadecimal system uses letters to express values that are greater than 9.

Here is how the base 16 (hexadecimal) numbering system compares to the base 10 numbering system you are accustomed to:

Decimal System vs. Hexadecimal System

Base 10:0123456789101112131415
Base 16 :0123456789ABCDEF

Now, since we are looking to convert a base 10 number into a base 16 number, let's compare the base 10 place values to the place values in a base 16 system:

Place Values of Decimal and Hex Systems

Power of 10:103102101100.10-110-210-3
Place value :1000100101.1/101/1001/1000
Power of 16:163162161160.16-116-216-3
Place value :4096256161.1/161/2561/4096

So you see, since each place value in a base 10 number is different than the corresponding place value in a base 16 system, we need a method for converting 0-9 base 10 place values into 0-F base 16 place values.

How to Convert Decimal to Hexadecimal

To convert a base 10 number into a base 16 number, the first step is to find the first base 16 place value that is greater than or equal to the decimal number you are converting -- starting at the 160 place and working your way to the left. For example, suppose you want to convert the decimal number 125 into a hexadecimal number. In that case, you would find the first base 16 place value that is greater than or equal to 125, which would be 256:

First Base 16 Value Greater than 12510

Power of 16:162161160
Place value :256161

Once you have located your base 16 place value starting point, the next step is to create a conversion chart, like this:

Conversion Chart

APower of 16:162161160
BRemainder of Division:125  
CPlace value (A result):256161
DQuotient of  B ÷ C:   
EHex (D > 9 to letter):   
Notice that the decimal you want to convert is placed in left-most cell of Row B, just above the base 16 place value row (C).

Next, attempt to divide the amount in row B into the amount in row C. If the amount in row C is greater than the amount in row B, enter a "0" in row D and move the amount in row B one cell to the right. Otherwise, if the amount in row C is less than the amount in row B, enter the number of times row C goes into row B in row D and enter the remainder in the next open cell in row B. Then simply repeat this process for each subsequent column. Finally, change all numbers in row D that are greater than 9 to their letter equivalent (10=A, 11=B, 12=C, 13=D, 14=E, and 15=F). Here is how the completed conversion chart would look:

Conversion Chart for Converting 12510 to Hexadecimal

APower of 16:162161160
BRemainder of Division:12512513
CPlace value (A result):256161
DQuotient of  B ÷ C:0713
EHex (D > 9 to letter):07D
Divide each cell in row C into the corresponding cell in row B and move the remainder of each division to the next cell in row B. Repeat for all columns. Note that the above is how the decimal to hex converter will show its work.

From the above, we can see that the base 10 number 125 converts to the base 16 number 7D (7*16 + 13*1 = 125). Note that the leading zeros are dropped since they represent no value (just like the base 10 system).

As you can see, converting a decimal number to a hexadecimal number is a simple process of identifying the first base 16 place value greater than or equal to the base 10 number you are converting, and then dividing each place value into the remainder of previous division.

Adjust Calculator Width:

Move the slider to left and right to adjust the calculator width. Note that the Help and Tools panel will be hidden when the calculator is too wide to fit both on the screen. Moving the slider to the left will bring the instructions and tools panel back into view.

Also note that some calculators will reformat to accommodate the screen size as you make the calculator wider or narrower. If the calculator is narrow, columns of entry rows will be converted to a vertical entry form, whereas a wider calculator will display columns of entry rows, and the entry fields will be smaller in size ... since they will not need to be "thumb friendly".

Show/Hide Popup Keypads:

Select Show or Hide to show or hide the popup keypad icons located next to numeric entry fields. These are generally only needed for mobile devices that don't have decimal points in their numeric keypads. So if you are on a desktop, you may find the calculator to be more user-friendly and less cluttered without them.

Stick/Unstick Tools:

Select Stick or Unstick to stick or unstick the help and tools panel. Selecting "Stick" will keep the panel in view while scrolling the calculator vertically. If you find that annoying, select "Unstick" to keep the panel in a stationary position.

If the tools panel becomes "Unstuck" on its own, try clicking "Unstick" and then "Stick" to re-stick the panel.