Skip to content
UnitChart

Convert decimal to hex

Decimal (base 10) to hexadecimal (base 16). Type a value below, or use the reference table further down.

255 (decimal) = FF (hexadecimal)

Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.

How to convert decimal to hex

Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.

Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.

decimal to hex conversion table

Use this decimal to hex chart for quick reference.

decimal to hexadecimal conversion table
Decimal (base 10)Hexadecimal (base 16)
00
11
22
33
44
55
66
77
88
99
10A
11B
12C
13D
14E
15F
1610
3220
6440
10064
1277F
12880
255FF
256100
512200
10003E8
10233FF
1024400
4095FFF
40961000
65535FFFF
6553610000

Common decimal to hex values

81012151620242530325064100128200255256500100010244096

What is decimal?

Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.

What is hexadecimal?

Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.

Frequently asked questions

How do you convert decimal to hexadecimal?

Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.

What is 255 decimal in hexadecimal?

255 in decimal is FF in hexadecimal. In plain decimal that value is 255.

What digits does decimal use?

Decimal is base 10 and uses 0-9. Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.

Other base conversions