How to use it
- Type a whole number (commas are fine).
- Read the hex result.
- Follow the division table, reading remainders from bottom to top.
- Copy the result or reverse the conversion.
How to convert decimal to hex
Divide the number by 16, note the remainder (0–15), and repeat with the quotient until it reaches 0. Convert remainders 10–15 to the letters A–F and read them from bottom to top.
Example: 500
| Division | Quotient | Remainder |
|---|---|---|
| 500 ÷ 16 | 31 | 4 |
| 31 ÷ 16 | 1 | 15 → F |
| 1 ÷ 16 | 0 | 1 |
Reading up: 1F4. Check: 1 × 256 + 15 × 16 + 4 = 256 + 240 + 4 = 500.
The converter builds this table for your number and shows the letter for any remainder above 9. Results are exact for numbers of any size. Negative numbers are not converted, because their hex form depends on the storage format.
Common values worth remembering: 255 = FF, 256 = 100, 4,095 = FFF, 65,535 = FFFF. Programmers often write hex with a 0x prefix (0x1F4) and web colors with # (#1F4 is shorthand for #11FF44, so mind the context). For the reverse direction, use hex to decimal; for bits, see decimal to binary.
Frequently asked questions
What is 255 in hex?
FF.
What is 16 in hex?
Why use hexadecimal?
Two hex digits describe exactly one byte, so hex is a compact, readable way to write binary data, colors and memory addresses.
Last updated: November 12, 2026