58 in binary = 111010 (11 1010)
In other bases: hexadecimal 3A, octal 72. The binary number has 6 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 58 ÷ 2 | 29 | 0 |
| 29 ÷ 2 | 14 | 1 |
| 14 ÷ 2 | 7 | 0 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 111010.
| Power of 2 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 1 | 0 | 1 | 0 |
Add the powers of 2 where the bit is 1: 32 + 16 + 8 + 2 = 58.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 54 | 110110 | 36 | 66 |
| 55 | 110111 | 37 | 67 |
| 56 | 111000 | 38 | 70 |
| 57 | 111001 | 39 | 71 |
| 59 | 111011 | 3B | 73 |
| 60 | 111100 | 3C | 74 |
| 61 | 111101 | 3D | 75 |
| 62 | 111110 | 3E | 76 |