How to convert decimal to hex
Converting 500:
| Division | Quotient | Remainder |
|---|---|---|
| 500 ÷ 16 | 31 | 4 |
| 31 ÷ 16 | 1 | 15 → F |
| 1 ÷ 16 | 0 | 1 |
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
| Decimal | Hex | Decimal | Hex |
|---|---|---|---|
| 10 | A | 100 | 64 |
| 15 | F | 127 | 7F |
| 16 | 10 | 128 | 80 |
| 32 | 20 | 255 | FF |
| 64 | 40 | 256 | 100 |
| 65 | 41 (“A”) | 1000 | 3E8 |
| 97 | 61 (“a”) | 65535 | FFFF |
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
ConverterBinary to hexConvert binary to hexadecimal instantly with the nibble-grouping steps shown, plus a binary-to-hex table for 0000–1111 and worked examples.ConverterDecimal to binaryConvert any decimal number to binary and see the divide-by-2 working. Includes the formula, worked examples and a quick subtraction shortcut.TranslatorHex to ASCIIConvert hex bytes to ASCII or UTF-8 text instantly. Accepts spaces, 0x and \x prefixes or one long string. Includes a hex to ASCII table.
Last reviewed 28 November 2026. Conversions run entirely in your browser.