21 in Binary

21=
101015-bit

The decimal number 21 in binary is 10101.

All number bases

Decimal21Base 10
Binary10101Base 2
Hexadecimal15Base 16
Octal25Base 8

How to convert decimal to binary

To convert 21 to binary, repeatedly divide by 2 and record the remainders from bottom to top. 21 = 10101₂ (5-bit binary number). In hexadecimal: 15. In octal: 25.

Convert any decimal number

Loading tool...