Decimal to Hex Converter

Convert decimal to hexadecimal numbers easily. Free decimal to hex converter for developers.

dec
=
β€”
hex

How it works

Hexadecimal (base 16) uses digits 0-9 and letters A-F to represent values. This converter transforms any decimal (base 10) number into its hexadecimal equivalent, useful for colour codes, programming, and computer memory addressing.

Common Decimal to Hex

10A
15F
1610
255FF
256100
4095FFF

How to Convert Decimal to Hexadecimal

Divide the decimal number by 16 repeatedly, recording remainders. The remainders form the hex digits (read from bottom to top). For decimal 255: 255 Γ· 16 = 15 remainder 15. 15 Γ· 16 = 0 remainder 15. Reading bottom-up: 15, 15 = 'FF' hex.

Most useful in programming, color manipulation, and data inspection. Decimal 256 = '100' in hex (just one more than 255 = FF). Decimal 65535 = 'FFFF' (two bytes, max value). Browser developer tools often show colour values in both hex and decimal RGB formats.

Common Decimal to Hex

DecimalHex
10A
1610
3220
10064
12880
255FF
10003E8
65535FFFF

Frequently Asked Questions

Why do hex addresses look weird?

Hex digits A-F look like letters but represent values 10-15. So 'A2' hex = 162 decimal. The mix of letters and digits is the trade-off for compactness - hex packs more value per character than decimal or binary.

Can hex be capitalised differently?

Yes - 'FF' and 'ff' are both valid hex for 255. Most conventions favour uppercase for HTML/CSS color codes (#FF0000), lowercase or mixed for programming (0xff). Both work; consistency within a codebase matters.

More tools β†’