125 in binary = 1111101 (111 1101)
In other bases: hexadecimal 7D, octal 175. The binary number has 7 bits.
Divide by 2 repeatedly and note each remainder. Read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 125 ÷ 2 | 62 | 1 |
| 62 ÷ 2 | 31 | 0 |
| 31 ÷ 2 | 15 | 1 |
| 15 ÷ 2 | 7 | 1 |
| 7 ÷ 2 | 3 | 1 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Remainders bottom to top: 1111101.
| Power of 2 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| Bit | 1 | 1 | 1 | 1 | 1 | 0 | 1 |
Add the powers of 2 where the bit is 1: 64 + 32 + 16 + 8 + 4 + 1 = 125.
Need another number or the reverse direction? Use the binary to decimal converter or the text to binary converter.
| Decimal | Binary | Hex | Octal |
|---|---|---|---|
| 121 | 1111001 | 79 | 171 |
| 122 | 1111010 | 7A | 172 |
| 123 | 1111011 | 7B | 173 |
| 124 | 1111100 | 7C | 174 |
| 126 | 1111110 | 7E | 176 |
| 127 | 1111111 | 7F | 177 |
| 128 | 10000000 | 80 | 200 |
| 129 | 10000001 | 81 | 201 |