This converter converts decimal numbers to hexadecimal. Enter a number and the result appears instantly.

Hexadecimal (base-16) uses digits 0–9 and letters A–F. It is a compact way to represent binary data: each hex digit = 4 bits. This makes hex essential for programming, web colors, and memory addresses.
Web colors use hex: #FF5733 = red 255, green 87, blue 51. Memory addresses: 0x7FFF = 32,767. Unicode: U+00E9 = é.
Hex is more compact than binary: the byte 11111111 (8 digits) = FF (2 digits). This is why hex is preferred for displaying binary data.
All calculations run locally in your browser — nothing is sent to any server.
Repeatedly divide by 16 and record remainders (using A–F for 10–15). Read remainders bottom-to-top.
Example: 255 ÷ 16 = 15 R15 → F, 15 ÷ 16 = 0 R15 → F. Result: FF.
Each hex digit = 4 bits. Two hex digits = 1 byte (0–255). Four hex digits = 2 bytes (0–65,535).
| Feature | Decimal (base-10) | Hexadecimal (base-16) |
|---|---|---|
| Digits | 0–9 | 0–9, A–F |
| Example: 255 | 255 | FF |
| Example: 1000 | 1000 | 3E8 |
| Used for | Everyday math | Colors, addresses, data |
| Compactness | Standard | More compact than binary |

Have an idea, found a bug, or want to suggest a feature? Drop us a message – we respond within 24 hours.