17 in binary = 10001 (1 0001)
In other bases: hexadecimal 11, octal 21. The binary number has 5 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 17 ÷ 2 | 8 | 1 |
| 8 ÷ 2 | 4 | 0 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10001.
| Power of 2 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 0 | 1 |
Add the powers of 2 where the bit is 1: 16 + 1 = 17.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
| 16 | 10000 | 10 | 20 |
| 18 | 10010 | 12 | 22 |
| 19 | 10011 | 13 | 23 |
| 20 | 10100 | 14 | 24 |
| 21 | 10101 | 15 | 25 |