Convert Decimal to Hexadecimal
Enter a Decimal number to get its Hexadecimal value — plus every other common base. Exact even for huge integers, all in your browser.
That's not a valid number for the selected base.
- Binary base 2
-
- Octal base 8
-
- Decimal base 10
-
- Hexadecimal base 16
-
-
Worked example
255 in Decimal converts to ff in Hexadecimal. The converter above is pre-filled with this value — edit it to see the result update live.
Decimal to Hexadecimal reference table
| Decimal | Decimal | Hexadecimal |
|---|---|---|
| 10 | 10 | a |
| 16 | 16 | 10 |
| 32 | 32 | 20 |
| 100 | 100 | 64 |
| 255 | 255 | ff |
Common uses
Handy for converting everyday numbers into hex formats used for memory addresses, color codes, or protocol fields.
Related conversions
Need another base? The full number base converter handles any base from 2 to 36 and converts them all simultaneously.
Frequently asked questions
How do I convert Decimal to Hexadecimal?
Enter your Decimal value into the converter above and it shows the Hexadecimal equivalent — along with every other base — instantly. For example, 255 in Decimal becomes ff in Hexadecimal.
Can it handle very large numbers?
Yes. The converter uses arbitrary-precision math, so even numbers with hundreds of digits convert exactly without the rounding errors you'd get from a normal calculator.
Is my data sent to a server?
No. Every conversion runs locally in your browser using standard JavaScript BigInt math, so nothing you enter is uploaded.