171 in binary = 10101011 (1010 1011)
In other bases: hexadecimal AB, octal 253. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 171 ÷ 2 | 85 | 1 |
| 85 ÷ 2 | 42 | 1 |
| 42 ÷ 2 | 21 | 0 |
| 21 ÷ 2 | 10 | 1 |
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 10101011.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 |
Add the powers of 2 where the bit is 1: 128 + 32 + 8 + 2 + 1 = 171.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 167 | 10100111 | A7 | 247 |
| 168 | 10101000 | A8 | 250 |
| 169 | 10101001 | A9 | 251 |
| 170 | 10101010 | AA | 252 |
| 172 | 10101100 | AC | 254 |
| 173 | 10101101 | AD | 255 |
| 174 | 10101110 | AE | 256 |
| 175 | 10101111 | AF | 257 |