2 in Binary
2 in binary is 10. It takes 2 bits to write, and as a full byte it is 00000010.
How to convert 2 to binary
Divide by 2, write down the remainder, and repeat with the quotient until it reaches 0. The remainders, read from the last row up to the first, spell out 10.
| Division | Quotient | Remainder |
|---|---|---|
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Check it the other way
To verify, read 10 left to right, giving each digit its place value and adding up the places that hold a 1.
| Bit | Place value | Contributes |
|---|---|---|
| 1 | 21 = 2 | 2 |
| 0 | 20 = 1 | 0 |
Adding the contributions: 2 + 0 = 2. The conversion checks out.
2 in every base
| Format | Value |
|---|---|
| Binary | 10 |
| Decimal | 2 |
| Hexadecimal | 2 |
| Octal | 2 |
| As a byte (8-bit) | 00000010 |
Worth knowing about 2
Two is the base of the whole system, which is why it is the first number binary cannot write in one digit: it carries over to 10, just as ten does in decimal.
Convert another number
- Binary
- Hex
- Octal
Nearby numbers
Or browse the full table at numbers in binary.
FAQ
What is 2 in binary?
2 converts to 10 in binary. Every 1 in the pattern marks a power of two that is part of the total, and every 0 marks one that is skipped. Add the marked powers and the sum is exactly 2. Padded to a byte, it reads 00000010.
How many bits does 2 need?
10 is 2 bits long, so 2 needs 2 bits at minimum. The count grows by one whenever a number reaches the next power of two. Inside a byte, the leftover positions are filled with zeros, which is why 2 appears as 00000010 in most computer contexts.
What is 2 in hex?
2 written in base 16 is 2. Programmers lean on hex because each digit maps to exactly four bits, turning long binary strings into short codes. For completeness, 2 in octal is 2 and in binary it is 10. They all name the same quantity.