12 in Binary
Decimal 12 equals 1100 in binary.
12 in all number bases
Decimal12
Hexadecimal0xC
Binary1100
Octal14
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
12Hex
0xCBinary
0b1100Octal
0o14How 12 converts from decimal to binary
Divide by 2 repeatedly and keep each remainder, then read the remainders from bottom to top:
12÷ 2 =6remainder0
6÷ 2 =3remainder0
3÷ 2 =1remainder1
1÷ 2 =0remainder1
Result (remainders bottom to top): 1100
This tool runs entirely in your browser - nothing you enter is uploaded or stored.