What is 21 in Hexadecimal (Hex)?
Decimal 21 in binary is 10101, in hexadecimal is 0x15, and in octal is 25. See the step-by-step division-by-16 conversion table.
Exact Answer
2110 = 1516
Binary (Base 2)
10101
Hexadecimal (Base 16)
0x15
Octal (Base 8)
25
Bit Length
5 bits
Step-by-Step Solution: 21₁₀ = 15₁₆
Step 1
Successive Division by 16
Divide 21 repeatedly by 16 and convert remainders (0–15 to 0–F) to obtain 15.
2110 = 1516
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.