Convert decimal to hex
Decimal (base 10) to hexadecimal (base 16). Type a value below, or use the reference table further down.
Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.
How to convert decimal to hex
Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.
Conversions here use arbitrary-precision integers, so values beyond 64 bits convert exactly rather than being rounded.
decimal to hex conversion table
Use this decimal to hex chart for quick reference.
| Decimal (base 10) | Hexadecimal (base 16) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 8 | 8 |
| 9 | 9 |
| 10 | A |
| 11 | B |
| 12 | C |
| 13 | D |
| 14 | E |
| 15 | F |
| 16 | 10 |
| 32 | 20 |
| 64 | 40 |
| 100 | 64 |
| 127 | 7F |
| 128 | 80 |
| 255 | FF |
| 256 | 100 |
| 512 | 200 |
| 1000 | 3E8 |
| 1023 | 3FF |
| 1024 | 400 |
| 4095 | FFF |
| 4096 | 1000 |
| 65535 | FFFF |
| 65536 | 10000 |
Common decimal to hex values
81012151620242530325064100128200255256500100010244096
What is decimal?
Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.
What is hexadecimal?
Hexadecimal is base 16, using 0 to 9 then A to F for the values ten to fifteen. One hex digit encodes exactly four bits, so a byte is always two hex digits — which is why colours, memory addresses and hashes are written in hex.
Frequently asked questions
How do you convert decimal to hexadecimal?
Divide repeatedly by 16 and read the remainders from last to first. 255 in base 16 is FF.
What is 255 decimal in hexadecimal?
255 in decimal is FF in hexadecimal. In plain decimal that value is 255.
What digits does decimal use?
Decimal is base 10 and uses 0-9. Decimal is base 10, the everyday number system, using the digits 0 to 9. Each place is worth ten times the one to its right.