21 in Binary
BINARY
0001 0101
The decimal number 21 in binary is 10101.
All Representations of 21
| System | Value |
|---|---|
| Decimal | 21 |
| Binary | 0001 0101 |
| Hexadecimal | 15 |
| Octal | 25 |
| ASCII | (code 21) |
Step-by-Step Conversion
| Dividend | ÷ 2 | Quotient | Remainder (bit) |
|---|---|---|---|
| 21 | ÷ 2 | 10 | 1 |
| 10 | ÷ 2 | 5 | 0 |
| 5 | ÷ 2 | 2 | 1 |
| 2 | ÷ 2 | 1 | 0 |
| 1 | ÷ 2 | 0 | 1 |
| Read remainders bottom to top: | 10101 | ||
Powers of 2 in 21
21 = 24 (16) + 23 (8) + 22 (4) + 21 (2) + 20 (1)
24 = 16
23 = 8
22 = 4
21 = 2
20 = 1
Nearby Values
← Back to Decimal to Binary Converter
Frequently Asked Questions
- What is 21 in binary?
21 in binary is 10101.
- How do you convert 21 to binary?
Divide 21 repeatedly by the target base, recording remainders. Read the remainders from bottom to top to get the binary result: 10101.
- What are all the representations of 21?
Decimal: 21, Binary: 10101, Hexadecimal: 15, Octal: 25, ASCII: character "null" (code 21).