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