Decimal to Hex Calculator
Enter a decimal integer to convert it to hexadecimal.
How to Convert Decimal to Hex
Method: repeated division by 16
- Divide the number by 16. Note the remainder (0�15 → 0�9, A�F).
- Repeat with the quotient until it reaches 0.
- Read remainders from bottom to top — that is the hex result.
Example: 255 → 15 R15(F) → 0 R15(F) → FF
Quick reference
| Decimal | Hex | Binary |
|---|---|---|
| 10 | A | 1010 |
| 16 | 10 | 10000 |
| 32 | 20 | 100000 |
| 255 | FF | 11111111 |
| 256 | 100 | 100000000 |
