27 in binary = 11011 (1 1011)
In other bases: hexadecimal 1B, octal 33. The binary number has 5 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 27 ÷ 2 | 13 | 1 |
| 13 ÷ 2 | 6 | 1 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 11011.
| Power of 2 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 1 | 1 |
Add the powers of 2 where the bit is 1: 16 + 8 + 2 + 1 = 27.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 23 | 10111 | 17 | 27 |
| 24 | 11000 | 18 | 30 |
| 25 | 11001 | 19 | 31 |
| 26 | 11010 | 1A | 32 |
| 28 | 11100 | 1C | 34 |
| 29 | 11101 | 1D | 35 |
| 30 | 11110 | 1E | 36 |
| 31 | 11111 | 1F | 37 |