How do you convert between number bases?
Every base represents the same value with different digits. Decimal uses 0–9, binary uses 0–1, octal uses 0–7, and hexadecimal uses 0–9 plus A–F. To convert, the value is parsed from its base into a number, then re-rendered in the target base. Type in any field here and the others update instantly.
Common values
| Decimal | Binary | Hex |
|---|---|---|
| 10 | 1010 | A |
| 255 | 11111111 | FF |
| 256 | 100000000 | 100 |
For developers and students
Binary, hex, and octal show up everywhere in programming — colors, permissions, memory addresses, bitmasks. Converting by hand is error-prone. This live converter shows all four bases at once.