Decimal to hex

Enter the Decimal number:

The number in hex (base 16) representation:

What Is Hexadecimal?

This is a free online hex converter. Hexadecimal notation is used as a human-friendly representation of binary values in computer programming and digital electronics. Most programming languages such as Java and C have built-in functions that convert between hex format and other formats such as binary and text.

How to convert from decimal to hex?

Conversion steps:

  1. Divide the number by 16.
  2. Get the integer quotient for the next iteration.
  3. Get the remainder for the hex digit.
  4. Repeat the steps until the quotient is equal to 0.

Example:

Convert 7562

Division
by 16
Quotient Remainder
(decimal)
Remainder
(hex)
Digit #
7562/16 472 10 A 0
472/16 29 8 8 1
29/16 1 13 D 2
1/16 0 1 1 3