87 in binary = 1010111 (101 0111)
In other bases: hexadecimal 57, octal 127. The binary number has 7 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 87 ÷ 2 | 43 | 1 |
| 43 ÷ 2 | 21 | 1 |
| 21 ÷ 2 | 10 | 1 |
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 1010111.
| Power of 2 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 1 | 0 | 1 | 1 | 1 |
Add the powers of 2 where the bit is 1: 64 + 16 + 4 + 2 + 1 = 87.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 83 | 1010011 | 53 | 123 |
| 84 | 1010100 | 54 | 124 |
| 85 | 1010101 | 55 | 125 |
| 86 | 1010110 | 56 | 126 |
| 88 | 1011000 | 58 | 130 |
| 89 | 1011001 | 59 | 131 |
| 90 | 1011010 | 5A | 132 |
| 91 | 1011011 | 5B | 133 |