What is 31 in Binary?
Decimal 31 in binary is 11111, in hexadecimal is 0x1F, and in octal is 37. See the step-by-step division-by-2 conversion table.
Exact Answer
3110 = 111112
Binary (Base 2)
11111
Hexadecimal (Base 16)
0x1F
Octal (Base 8)
37
Bit Length
5 bits
Step-by-Step Solution: 31₁₀ = 11111₂
Step 1
Successive Division by 2
Divide 31 repeatedly by 2 and read the remainders from bottom to top to obtain 11111.
3110 = 111112
Summary & Alternative Representations
| Property / Format | Value |
|---|---|
| Binary (Base 2) | 11111 |
| Hexadecimal (Base 16) | 0x1F |
| Octal (Base 8) | 37 |
| 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 31 in binary?
31 in binary is 11111, which requires 5 bits.