54 in binary = 110110 (11 0110)
In other bases: hexadecimal 36, octal 66. The binary number has 6 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 54 ÷ 2 | 27 | 0 |
| 27 ÷ 2 | 13 | 1 |
| 13 ÷ 2 | 6 | 1 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 110110.
| Power of 2 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 1 | 1 | 0 |
Add the powers of 2 where the bit is 1: 32 + 16 + 4 + 2 = 54.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 50 | 110010 | 32 | 62 |
| 51 | 110011 | 33 | 63 |
| 52 | 110100 | 34 | 64 |
| 53 | 110101 | 35 | 65 |
| 55 | 110111 | 37 | 67 |
| 56 | 111000 | 38 | 70 |
| 57 | 111001 | 39 | 71 |
| 58 | 111010 | 3A | 72 |