31 in Binary = 11111
Binary Representation
11111
Decimal 31 = 11111 (binary)
31 in All Number Bases
Decimal
31
Binary
11111
Octal
37
Hexadecimal
1F
How to Convert 31 to Binary
- Divide 31 by 2, record the remainder
- Continue dividing the quotient by 2
- Read the remainders from bottom to top
- Result: 11111
Try the Number Base Converter
Conversions
Binary (2)
0b11111
Octal (8)
0o37
Decimal (10)
31
Hexadecimal (16)
0x1F
Binary Bits
0
0
0
1
1
1
1
1
| Decimal | Binary | Octal | Hex |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 127 | 1111111 | 177 | 7F |
| 128 | 10000000 | 200 | 80 |
| 255 | 11111111 | 377 | FF |