BinaryConverter

Decimal to Hex Converter

Convert decimal to hexadecimal instantly — type on the left and the result appears on the right. Everything runs in your browser, nothing is uploaded.

How to convert decimal to hex

To write a decimal number in hexadecimal, divide it repeatedly by 16 and read the remainders, using the letters A to F for the values 10 to 15.

Method: repeated division by 16, reading the remainders from last to first.

  1. Divide by 16 and note the remainderDivide the decimal number by 16 and write down the remainder.
  2. Repeat until you reach 0Keep dividing each quotient by 16, noting each remainder.
  3. Read the remainders (A–F for 10–15)Read the remainders from last to first, writing any value from 10 to 15 as A to F.

Examples 26 = 1A255 = FF

Decimal to Hex Table

Common decimal values with their hexadecimal equivalents.

Decimal to Hex conversion table
DecimalHexadecimal
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
2014
3220
5032
6440
10064
12880
255FF
256100
512200
10003E8

Frequently asked questions

How do you convert decimal to hex?

Divide the number by 16, note the remainder (writing 10–15 as A–F), repeat with the quotient until it is 0, then read the remainders from last to first. 255 gives FF.

What is 255 in hex?

255 is FF, the largest value a single byte can hold.

What is 16 in hex?

16 in decimal is 10 in hex, because hex rolls over after F.