31 in binary

31 in binary = 11111 (1 1111)

In other bases: hexadecimal 1F, octal 37. The binary number has 5 bits.

How to convert 31 to binary

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

DivisionQuotientRemainder
31 ÷ 2151
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201

Remainders bottom to top: 11111.

Check: binary 11111 to decimal

Power of 2168421
Bit11111

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

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

Numbers near 31

DecimalBinaryHexOctal
27110111B33
28111001C34
29111011D35
30111101E36
321000002040
331000012141
341000102242
351000112343

All numbers in binary ยท Roman numerals