Decimal to Hex Calculator

Enter a decimal integer to convert it to hexadecimal.

How to Convert Decimal to Hex

Method: repeated division by 16

  1. Divide the number by 16. Note the remainder (0�15 → 0�9, A�F).
  2. Repeat with the quotient until it reaches 0.
  3. Read remainders from bottom to top — that is the hex result.

Example: 255 → 15 R15(F) → 0 R15(F) → FF

Quick reference

DecimalHexBinary
10A1010
161010000
3220100000
255FF11111111
256100100000000

Related Calculators

Have Feedback or a Suggestion? Contact Us
Top