123 in binary
123 in binary is 1111011. In hexadecimal it is 7B and in octal 173.
123 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 123 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 1111011.
- 3
Check by adding powers of 2: 64 + 32 + 16 + 8 + 2 + 1 = 123.
LaTeX source of the formulas on this page
\[ 123_{10} = 1111011_{2} \]Dividing 123 by 2
| Number | Division | Remainder |
|---|---|---|
| 123 | 123 ÷ 2 = 61 | 1 |
| 61 | 61 ÷ 2 = 30 | 1 |
| 30 | 30 ÷ 2 = 15 | 0 |
| 15 | 15 ÷ 2 = 7 | 1 |
| 7 | 7 ÷ 2 = 3 | 1 |
| 3 | 3 ÷ 2 = 1 | 1 |
| 1 | 1 ÷ 2 = 0 | 1 |
Questions
What is 123 in binary?
1111011.
What is 123 in hexadecimal?
7B.
What is 123 in octal?
173.
How many bits does 123 need?
7 bits.