It is a very simple way to use this conversion tool. All you need to do is provide decimal number like 123456 into the left textbox and then click on Convert button to obtain hexadecimal value in the right textbox.

Incorrect Decimal Value

You might need: Decimal to Binary conversion

The base of the decimal number system is 10. In this number system, 10 digits are used - 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. We know that in decimal number system successive positions to the left of the decimal point represents units, tens, hundreds, etc. It is used in our day to day life.

The base of the hexadecimal number system is 16. Hence, there are 16 symbols or digits in this system. The first ten digits are similar to that of decimal number system - 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. The rest six digits are represented by the symbols A, B, C, D, E, and F, representing decimal numbers 10, 11, 12, 13, 14, and 15 respectively. The largest single digit is F (1 less than the base 16). Each digit in hexadecimal number system represents a power of the base (16). This number system is used to represent colors in HTML programming; FF0000 represents Red, 00FF00 represents Green, 0000FF represents Blue, etc.

Let's understand the conversion by following these steps-

- Divide the decimal number by 16.
- Write the remainder from Step 1 as the rightmost digit (least significant digit) of the new hexadecimal number.
- Divide the quotient obtained from the previous division by 16.
- Write the remainder from step 3 as next digit (to the left) of the new hexadecimal number.

Continue to perform steps 3 and 4, until you get the value of quotient equal to zero.

The steps mentioned above will become clearer when we apply them in an example. Suppose we have a decimal number 427 that we want to convert into hexadecimal number.

Hence, 427_{10} = 1AB_{16}

The following table provides a list of few decimal numbers and their corresponding hexadecimal numbers-

Decimal Numbers | Hexadecimal Numbers |
---|---|

0 | 0 |

1 | 1 |

2 | 2 |

3 | 3 |

4 | 4 |

5 | 5 |

6 | 6 |

7 | 7 |

8 | 8 |

9 | 9 |

10 | A |

11 | B |

12 | C |

13 | D |

14 | E |

15 | F |