Decimal to hex converter

Decimal numbers to Hexadecimal conversion

Decimal to hex converter

Decimal Number to convert

How to Convert Decimal to Hex

Divide by 16 and write down the remainder (10–15 → A–F); repeat with the quotient until it is 0; read the remainders from bottom to top.

Example: 1,000 in hex

Divide by 16, keep the remainder
divisionquotientremainder
1,000 ÷ 16628
62 ÷ 16314 = E
3 ÷ 1603

↑ Read the remainders from bottom to top: 3E8

Frequent values
Decimal numberHexadecimal number
1610
271B
3220
10064
12880
200C8
255FF
256100
1,0003E8
65,535FFFF

See Also

FAQ

What is hexadecimal used for?

Hexadecimal is widely used in programming and computing to represent memory addresses, CSS color codes (like #FF5733), and binary data in a more compact, human-readable form — each hex digit stands for exactly 4 bits.

How do you convert a decimal number to hexadecimal?

Divide the decimal number by 16 repeatedly, writing down each remainder as a hex digit (0-9 stay the same, 10-15 become A-F), then read the remainders from last to first. For example, dividing 1,000 by 16 repeatedly gives remainders that read back as 3E8.

Is 0 a valid hexadecimal digit?

Yes. 0 is a valid hex digit and a valid decimal number to convert — decimal 0 converts to hexadecimal 0.