# Decimal to Hex Converter

## Convert a decimal into a hex

Use this calculator to convert a decimal to a hex value. Decimal is a number system made up of 10 symbols (base 10). Hex is made up of 16 symbols (base 16).

Disclaimer: Whilst every effort has been made in building our calculator tools, we are not to be held liable for any damages or monetary losses arising out of or in connection with their use. Full disclaimer.

## How to convert from decimal to hex

1. Divide the decimal by 16 until the result is 15 or less.
2. Take the whole number (before the decimal point) and look up the corresponding hex value in the decimal and hex reference list below (e.g. 10 = A, 15 = F).
3. Take the remainder (after the decimal point) and multiply by 16.
4. Repeat steps 2 and 3 with the result, until you're left with no remainder.

### Decimal and hex reference list

```0  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15

0  1  2  3  4  5  6  7  8  9   A   B   C   D   E   F
```

## Example of decimal to hex conversion

Let's take the decimal 7803. First we divide it down by 16.

• 7803 ÷ 16 = 487.6875 (result over 15, must divide again)
• 487.6875 ÷ 16 = 30.48046875 (result over 15, must divide again)
• 30.48046875 ÷ 16 = 1.9050293
• The first decimal digit is 1. So now we begin multiplying the remainder by 16.

• 0.9050293 x 16 = 14.4804688 (second decimal digit is 14)
• 0.4804688 x 16 = 7.6875008 (third decimal digit is 7)
• 0.6875008 x 16 = 11.0000128 (rounds to 11, our last decimal digit)

So we have the resulting digits of 1-14-7-11.

Using the hex-decimal comparison list above again, 1 and 7 are unchanged, while 14 is E, and 11 is B.

Putting them all together gives us 1E7B. We can write it as 1E7B16 to show that it's a hex number.

Note: Should you wish you convert your decimal to a fraction, give the decimal to fraction calculator a try.