7 in Binary
7 in binary is 111.
Result 111.
Binary (base 2)111
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 7 ÷ 2 3 1 3 ÷ 2 1 1 1 ÷ 2 0 1 - Read the remainders from bottom to top: 111
| binary (base 2) | 111 |
|---|---|
| octal (base 8) | 7 |
| decimal (base 10) | 7 |
| hexadecimal (base 16) | 7 |
| Bits needed | 3 bits (fits in 1 byte) |
| 8-bit form | 0000 0111 |
| 16-bit form | 0000 0000 0000 0111 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 0000 0111 |
Quick method for 7
Find the powers of 2 that add up to 7: 4 + 2 + 1. Put a 1 in those places and 0 elsewhere: 111.
7 in other forms
- Place values: 4 + 2 + 1 = 7
- Hex: 7
- Octal: 7
- 3 bits — fits in one byte
- 3 one-bits (odd parity)
- Padded: 0000 0111
- 16-bit: 0000 0000 0000 0111
- One's complement (8-bit): 1111 1000
- Between 22 = 4 and 23 = 8
- −7 in 8-bit two's complement: 1111 1001
- ASCII: BEL (bell) — ASCII table
Going back: binary to decimal.
More numbers in binary
7 in binary: questions
What is 7 in binary?
111.
What is 7 in hex?
7.
How many bits is 7?
3.