Decimal to HEX
Convert a nonnegative decimal integer to hexadecimal precisely.
Make this result useful
Use it now, or keep a copy for later. We never save your tool input automatically.
How to use this tool
Enter one decimal whole number and process it.
Important to know
Convert a nonnegative decimal integer to hexadecimal precisely.
Negative numbers and fractions are not supported. Output uses uppercase A–F.
Formula and methodology
Divide by 16 repeatedly, map remainders 10–15 to A–F, and reverse the digits.
Example
255 in decimal is FF in hexadecimal.
Frequently asked questions
Is this the same as text-to-hex?
No. This converts one number; Text to Hex encodes the bytes of text.