English

Decimal to Hexadecimal (decimal to hex)

Divide the number by 16 again and again; each remainder (0 to 15, written 0 to F) is one hex digit, read from the last to the first.

Binary1111 1111
Octal377
Decimal255
HexadecimalFF
Show the working
DivideQuotientRemainder (digit)
255 ÷ 1615F
15 ÷ 160F
Read the remainders from the bottom up: FF

Decimal to hexadecimal table

DecimalHexadecimal
00
99
10A
15F
1610
311F
3220
6440
10064
1277F
12880
200C8
255FF
256100
1,0003E8
1,024400
4,095FFF
4,0961000
65,535FFFF

How it works

  • Divide by 16 and note the remainder, writing 10 to 15 as A to F; repeat with the quotient until it reaches 0.
  • Read the remainders from bottom to top.
  • Example: 255 ÷ 16 = 15 r 15 (F), 15 ÷ 16 = 0 r 15 (F), so 255 = FF.

Frequently asked questions

What is 1000 in hex?

3E8: 3 × 256 + 14 × 16 + 8 = 1000.

Why does hex use letters?

Base 16 needs sixteen digits, and A to F are used for the values 10 to 15.

Calculations run in your browser. Nothing you enter is sent anywhere or added to a searchable page address. How we calculate