12 in Binary
12 in binary is 1100. It takes 4 bits to write, and as a full byte it is 00001100.
How to convert 12 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 1100.
| Division | Quotient | Remainder |
|---|---|---|
| 12 ÷ 2 | 6 | 0 |
| 6 ÷ 2 | 3 | 0 |
| 3 ÷ 2 | 1 | 1 |
| 1 ÷ 2 | 0 | 1 |
Check it the other way
To verify, read 1100 left to right, giving each digit its place value and adding up the places that hold a 1.
| Bit | Place value | Contributes |
|---|---|---|
| 1 | 23 = 8 | 8 |
| 1 | 22 = 4 | 4 |
| 0 | 21 = 2 | 0 |
| 0 | 20 = 1 | 0 |
Adding the contributions: 8 + 4 + 0 + 0 = 12. The conversion checks out.
12 in every base
| Format | Value |
|---|---|
| Binary | 1100 |
| Decimal | 12 |
| Hexadecimal | C |
| Octal | 14 |
| As a byte (8-bit) | 00001100 |
Worth knowing about 12
Twelve, the dozen, earned its everyday popularity by splitting evenly into halves, thirds, quarters, and sixths, more clean divisions than ten can manage.
Convert another number
- Binary
- Hex
- Octal
Nearby numbers
Or browse the full table at numbers in binary.
FAQ
What is 12 in binary?
12 in binary is 1100. Each digit's place is worth double the one to its right, starting from 1. Add up the places holding a 1 and you get 12 back. As a full 8-bit byte it is written 00001100, the same value padded with leading zeros.
How many bits does 12 need?
12 needs 4 bits in binary: 1100. A number needs one more bit each time it crosses a power of two, which is why the counts climb slowly. Stored in a computer it usually occupies a full 8-bit byte anyway, written 00001100 with zeros filling the front.
What is 12 in hex?
12 in hexadecimal is C. Hex is base 16, so every hex digit stands for exactly four binary digits, which makes it a compact way to write the same value. In octal, base 8, 12 becomes 14. All three are just different spellings of the number 12.