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