161 in binary = 10100001 (1010 0001)
In other bases: hexadecimal A1, octal 241. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 161 ÷ 2 | 80 | 1 |
| 80 ÷ 2 | 40 | 0 |
| 40 ÷ 2 | 20 | 0 |
| 20 ÷ 2 | 10 | 0 |
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10100001.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
Add the powers of 2 where the bit is 1: 128 + 32 + 1 = 161.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 157 | 10011101 | 9D | 235 |
| 158 | 10011110 | 9E | 236 |
| 159 | 10011111 | 9F | 237 |
| 160 | 10100000 | A0 | 240 |
| 162 | 10100010 | A2 | 242 |
| 163 | 10100011 | A3 | 243 |
| 164 | 10100100 | A4 | 244 |
| 165 | 10100101 | A5 | 245 |