Number Base (Radix) Converter
Decimal to Hexadecimal Converter
Convert base-10 integers to base-16 hex values for programming and color codes.
Number Base (Radix)
(DEC)
Example: 255 DEC
(HEX)
e.g. FFHEX
Standard: Base 16 (1 hex digit = 4 bits / 1 nibble)
Enter any number above to convert Decimal to Hexadecimal. Click (i) for brief unit info.
Converting the other way?
Switch directly to the reverse calculator: Hexadecimal to Decimal Converter
How to Convert Decimal (Base 10) to Hexadecimal (Base 16)
Official Mathematical Formula
Hex = successive division by 16
Where the input value in DEC is transformed using the exact standardized conversion factor to produce the output in HEX.
Practical Calculation Example
You can verify this calculation directly using our interactive tool above.
Quick Conversion Reference Table (DEC → HEX)
Decimal (Base 10) (DEC) | Hexadecimal (Base 16) (HEX) | Copy |
|---|---|---|
| 1 DEC | 1 HEX | |
| 2 DEC | 2 HEX | |
| 3 DEC | 3 HEX | |
| 5 DEC | 5 HEX | |
| 10 DEC | A HEX | |
| 15 DEC | F HEX | |
| 20 DEC | 14 HEX | |
| 25 DEC | 19 HEX | |
| 50 DEC | 32 HEX | |
| 75 DEC | 4B HEX | |
| 100 DEC | 64 HEX | |
| 250 DEC | FA HEX | |
| 500 DEC | 1F4 HEX | |
| 1000 DEC | 3E8 HEX |
Related Number Base (Radix) Calculators
All Number Base (Radix) Tools →Decimal (Base 10) to Hexadecimal (Base 16) FAQs
10=A, 11=B, 12=C, 13=D, 14=E, 15=F.