21 in binary

21 in binary = 10101 (1 0101)

In other bases: hexadecimal 15, octal 25. The binary number has 5 bits.

How to convert 21 to binary

Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.

DivisionQuotientRemainder
21 ÷ 2101
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

Remainders bottom to top: 10101.

Check: binary 10101 to decimal

Power of 2168421
Bit10101

Add the powers of 2 where the bit is 1: 16 + 4 + 1 = 21.

Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.

Numbers near 21

DecimalBinaryHexOctal
17100011121
18100101222
19100111323
20101001424
22101101626
23101111727
24110001830
25110011931

All numbers in binary ยท Roman numerals