138 in binary = 10001010 (1000 1010)
In other bases: hexadecimal 8A, octal 212. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 138 ÷ 2 | 69 | 0 |
| 69 ÷ 2 | 34 | 1 |
| 34 ÷ 2 | 17 | 0 |
| 17 ÷ 2 | 8 | 1 |
| 8 ÷ 2 | 4 | 0 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10001010.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 |
Add the powers of 2 where the bit is 1: 128 + 8 + 2 = 138.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 134 | 10000110 | 86 | 206 |
| 135 | 10000111 | 87 | 207 |
| 136 | 10001000 | 88 | 210 |
| 137 | 10001001 | 89 | 211 |
| 139 | 10001011 | 8B | 213 |
| 140 | 10001100 | 8C | 214 |
| 141 | 10001101 | 8D | 215 |
| 142 | 10001110 | 8E | 216 |