400 in binary = 110010000 (1 1001 0000)
In other bases: hexadecimal 190, octal 620. The binary number has 9 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 400 ÷ 2 | 200 | 0 |
| 200 ÷ 2 | 100 | 0 |
| 100 ÷ 2 | 50 | 0 |
| 50 ÷ 2 | 25 | 0 |
| 25 ÷ 2 | 12 | 1 |
| 12 ÷ 2 | 6 | 0 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 110010000.
| Power of 2 | 256 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Add the powers of 2 where the bit is 1: 256 + 128 + 16 = 400.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 256 | 100000000 | 100 | 400 |
| 300 | 100101100 | 12C | 454 |
| 350 | 101011110 | 15E | 536 |
| 365 | 101101101 | 16D | 555 |
| 450 | 111000010 | 1C2 | 702 |
| 500 | 111110100 | 1F4 | 764 |
| 512 | 1000000000 | 200 | 1000 |
| 550 | 1000100110 | 226 | 1046 |