Enter the number
Type a decimal number in the box; the base is already selected.
Type a decimal number and get its hexadecimal value instantly, together with binary, decimal, hexadecimal and octal, the bit count and a copy button. Free, in your browser.
100% private — the calculation is done in your browser and nothing is sent to any server.
Type a decimal number in the box; the base is already selected.
Hexadecimal, decimal, hexadecimal, binary and octal appear together.
Use the copy button next to the value you need.
To convert decimal to hexadecimal, type your number in the converter above and read the hexadecimal value. For example, 214 in decimal is D6 in hexadecimal. The other bases are shown at the same time.
Developers convert decimal to hex to write colours (255, 128, 0 is FF8000), set memory offsets, build byte arrays and read register maps. The number 214 becomes D6: two digits instead of three, and a value that lines up neatly with a byte.
Here is 214 (decimal) converted step by step:
| Decimal | Hex | Binary |
|---|---|---|
| 0 | 00 | 00000000 |
| 16 | 10 | 00010000 |
| 32 | 20 | 00100000 |
| 48 | 30 | 00110000 |
| 64 | 40 | 01000000 |
| 80 | 50 | 01010000 |
| 96 | 60 | 01100000 |
| 112 | 70 | 01110000 |
| 128 | 80 | 10000000 |
| 144 | 90 | 10010000 |
| 160 | A0 | 10100000 |
| 176 | B0 | 10110000 |
| 192 | C0 | 11000000 |
| 208 | D0 | 11010000 |
| 224 | E0 | 11100000 |
| 240 | F0 | 11110000 |
| 255 | FF | 11111111 |
| Decimal | Hexadecimal | Decimal |
|---|---|---|
| 10 | A | 10 |
| 42 | 2A | 42 |
| 100 | 64 | 100 |
| 255 | FF | 255 |
| 300 | 12C | 300 |
| 1000 | 3E8 | 1000 |
| 4095 | FFF | 4095 |
| 65535 | FFFF | 65535 |
To check the result, convert it back: D6 in hexadecimal is 214 in decimal. Your input may only contain the decimal digits 0 1 2 3 4 5 6 7 8 9; any other character is not a valid decimal number.
More utilities that also run without leaving your browser.