Decimal to hexadecimal converter

Enter a whole number to convert it to hex. Divide by 16 repeatedly, convert each remainder to a hex digit (10 = A … 15 = F), then read the remainders bottom-up — 255 becomes FF.

To

How to convert decimal to hex

Converting 500:

DivisionQuotientRemainder
500 ÷ 16314
31 ÷ 16115 → F
1 ÷ 1601

Bottom-up: 1F4. Check: 1×256 + 15×16 + 4 = 500 ✓

Alternative: convert to binary first, then group into fours — no division by 16 needed.

Decimal to hex reference

DecimalHexDecimalHex
10A10064
15F1277F
161012880
3220255FF
6440256100
6541 (“A”)10003E8
9761 (“a”)65535FFFF

Frequently asked questions

What is 255 in hex?

FF. 255 = 15×16 + 15, and 15 is F.

What is 1000 in hexadecimal?

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

Where is decimal to hex used?

Web colours (rgb(255,136,0) = #FF8800), memory addresses, Unicode code points (U+1F600) and network hardware addresses.

Keep going

Last reviewed 28 November 2026. Conversions run entirely in your browser.