Decimal to Hex
Enter a decimal integer. Get its hexadecimal representation. Common in programming and web colors.
Convert to hex
Enter an integer and click Convert.
How it works
Repeated division by 16; remainders (0–9, A–F) form the hex string from least to most significant digit.
When to use it
Use for color codes, memory addresses, or any hex output.
Frequently asked questions
- Negative numbers? We show unsigned hex. For signed values use two's complement convention.