Decimal to Hexadecimal
255 = FF in hex
Result (hexadecimal)
ff
255 in decimal is FF in hexadecimal. Developers use this to write colour codes, byte values and memory addresses. For other values, use the Number Converter.
How it works
Divide by 16 repeatedly and read the remainders (0–9, A–F) from bottom to top
Decimal to hexadecimal table
| Decimal | Hexadecimal |
|---|---|
| 10 | A |
| 15 | F |
| 16 | 10 |
| 100 | 64 |
| 255 | FF |
| 256 | 100 |
| 1000 | 3E8 |
| 65535 | FFFF |
Frequently asked questions
What is 100 in hex?
100 in decimal is 64 in hex.
What is 4096 in hex?
4096 is 1000 in hex (16 × 16 × 16).
Should hex letters be upper or lower case?
Both mean the same value. This converter shows lower case, which is common in code; colour codes are often written in upper case.