39 in binary = 100111 (10 0111)
In other bases: hexadecimal 27, octal 47. The binary number has 6 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 39 ÷ 2 | 19 | 1 |
| 19 ÷ 2 | 9 | 1 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 100111.
| Power of 2 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|
| Bit | 1 | 0 | 0 | 1 | 1 | 1 |
Add the powers of 2 where the bit is 1: 32 + 4 + 2 + 1 = 39.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 35 | 100011 | 23 | 43 |
| 36 | 100100 | 24 | 44 |
| 37 | 100101 | 25 | 45 |
| 38 | 100110 | 26 | 46 |
| 40 | 101000 | 28 | 50 |
| 41 | 101001 | 29 | 51 |
| 42 | 101010 | 2A | 52 |
| 43 | 101011 | 2B | 53 |