Convert between binary, decimal, hexadecimal and octal โ type in any field and all others update instantly.
Click any field result to copy to clipboard.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 8 | 1000 | 8 | 10 |
| 10 | 1010 | A | 12 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 32 | 100000 | 20 | 40 |
| 64 | 1000000 | 40 | 100 |
| 128 | 10000000 | 80 | 200 |
| 255 | 11111111 | FF | 377 |
Decimal (base 10) is what we use daily โ digits 0-9. Binary (base 2) uses only 0 and 1, the language computers operate in. Hexadecimal (base 16) uses 0-9 and A-F โ widely used in programming, memory addresses and web colour codes (#FF5733). Octal (base 8) uses digits 0-7, still used in Unix file permissions.
Understanding number bases is essential in computer science, low-level programming, digital electronics and cryptography. A single byte (8 bits) can hold values from 0 (00000000) to 255 (11111111) in binary, or 0x00 to 0xFF in hex.