24 in binary
Binary (base 2)
11000
| Hexadecimal | 18 |
| Octal | 30 |
| Bits | 5 |
In other bases: hexadecimal 18, octal 30. The binary number has 5 bits.
How to convert 24 to binary
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 24 ÷ 2 | 12 | 0 |
| 12 ÷ 2 | 6 | 0 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 11000.
Check: binary 11000 to decimal
| Power of 2 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|
| Bit | 1 | 1 | 0 | 0 | 0 |
Add the powers of 2 where the bit is 1: 16 + 8 = 24.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
Numbers near 24
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 20 | 10100 | 14 | 24 |
| 21 | 10101 | 15 | 25 |
| 22 | 10110 | 16 | 26 |
| 23 | 10111 | 17 | 27 |
| 25 | 11001 | 19 | 31 |
| 26 | 11010 | 1A | 32 |
| 27 | 11011 | 1B | 33 |
| 28 | 11100 | 1C | 34 |