Decimal to Hexadecimal Converter
Convert decimal (base-10) numbers to hexadecimal (base-16).
Try an example:
- Binary (2)
11111111- Octal (8)
377- Decimal (10)
255- Hexadecimal (16)
ff
Converting Decimal to Hexadecimal
Hexadecimal packs four bits into a single digit (0–9 then A–F), making it a compact way to write byte values, colors, and memory addresses.
How to convert Decimal to Hexadecimal by hand
- Divide the decimal number by 16 and record the remainder.
- Convert remainders 10–15 to the letters A–F.
- Repeat with the quotient until it reaches 0.
- Read the remainders from bottom to top.
Worked example
255 (decimal) → FF (hex) — 255 = 15×16 + 15, and 15 = F, so FF.
More converters
- Decimal to Binary
- Binary to Decimal
- Hexadecimal to Decimal
- Binary to Hexadecimal
- Hexadecimal to Binary
- Decimal to Octal
Frequently asked questions
How do I convert Decimal to Hexadecimal?
Divide the decimal number by 16 and record the remainder. Convert remainders 10–15 to the letters A–F. Repeat with the quotient until it reaches 0. Read the remainders from bottom to top. Or just use the converter on this page — it does it instantly. Example: 255 (decimal) becomes FF (hex).
What is 255 (decimal) in hexadecimal?
255 (decimal) converts to FF (hex). 255 = 15×16 + 15, and 15 = F, so FF.
Is this converter free and private?
Yes — it is free and unlimited, and the conversion runs entirely in your browser, so nothing is uploaded to a server.