Decimal to hexadecimal: divide by 16, map remainders to 0-F, read bottom to top. Or skip the math and type your number into a free converter that shows the hex result as you type.
Get hex, binary, and octal from any decimal instantly.
Convert Now →Convert 750 to hex:
Read bottom to top: 2EE. Verify: 2×256 + 14×16 + 14 = 750.
Hex digit mapping for values above 9:
| Decimal Value | Hex Digit |
|---|---|
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
| Decimal | Hex | Context |
|---|---|---|
| 0 | 0 | Zero |
| 10 | A | First letter digit |
| 15 | F | Max single hex digit |
| 16 | 10 | First two-digit hex |
| 100 | 64 | |
| 127 | 7F | Max signed 8-bit |
| 255 | FF | Max unsigned byte |
| 256 | 100 | First three-digit hex |
| 1000 | 3E8 | |
| 4096 | 1000 | 16 cubed |
| 65535 | FFFF | Max 16-bit |
| 16777215 | FFFFFF | Max 24-bit (white RGB) |
RGB values (0-255) convert to two hex digits each. RGB(66, 135, 245) becomes #4287F5. The Color Picker handles this automatically.
Debuggers show addresses in hex. 0x0040F2A0 is more readable than 4256416 decimal.
MAC addresses use hex: 00:1A:2B:3C:4D:5E. Each pair is one byte.
Code points are in hex. The fire emoji is U+1F525 (128293 decimal). If you work with HTML entities or URL encoding, hex is everywhere.
hex(750) → '0x2ee'(750).toString(16) → '2ee'Integer.toHexString(750) → "2ee"printf("%X", 750) → 2EE| Format | Example | Where |
|---|---|---|
| 0x prefix | 0x2EE | C, C++, Java, Python, JavaScript |
| # prefix | #FF0000 | CSS colors |
| h suffix | 2EEh | Assembly language |
| U+ prefix | U+1F525 | Unicode code points |
Since 16 = 2⁴, each hex digit maps to exactly 4 bits. 1 hex digit = 4 bits. 2 hex digits = 1 byte. FF tells you all 8 bits are set. 255 decimal does not convey that.
Related: Percentage Calculator, Base64 Encoder, JSON Formatter.