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