What is 21 in Binary?
Decimal 21 in binary is 10101, in hexadecimal is 0x15, and in octal is 25. See the step-by-step division-by-2 conversion table.
Exact Answer
2110 = 101012
Binary (Base 2)
10101
Hexadecimal (Base 16)
0x15
Octal (Base 8)
25
Bit Length
5 bits
Step-by-Step Solution: 21₁₀ = 10101₂
Step 1
Successive Division by 2
Divide 21 repeatedly by 2 and read the remainders from bottom to top to obtain 10101.
2110 = 101012
Summary & Alternative Representations
| Property / Format | Value |
|---|---|
| Binary (Base 2) | 10101 |
| Hexadecimal (Base 16) | 0x15 |
| Octal (Base 8) | 25 |
| Bit Length | 5 bits |
Was this solution helpful?
Help us improve our free step-by-step tools
Frequently Asked Questions
How many bits are needed to represent 21 in binary?
21 in binary is 10101, which requires 5 bits.