255 in binary = 11111111 (1111 1111)
In other bases: hexadecimal FF, octal 377. The binary number has 8 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 255 ÷ 2 | 127 | 1 |
| 127 ÷ 2 | 63 | 1 |
| 63 ÷ 2 | 31 | 1 |
| 31 ÷ 2 | 15 | 1 |
| 15 ÷ 2 | 7 | 1 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 11111111.
| Power of 2 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
Add the powers of 2 where the bit is 1: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 251 | 11111011 | FB | 373 |
| 252 | 11111100 | FC | 374 |
| 253 | 11111101 | FD | 375 |
| 254 | 11111110 | FE | 376 |
| 256 | 100000000 | 100 | 400 |
| 300 | 100101100 | 12C | 454 |
| 350 | 101011110 | 15E | 536 |
| 365 | 101101101 | 16D | 555 |