Binary Calculator (Decimal ⇄ Binary)
Convert a decimal integer to binary and back.
Binary is the base-2 number system that computers use, with only the digits 0 and 1.
The math behind it
Convert by repeatedly dividing by 2 and reading the remainders from bottom to top. Each binary place is a power of 2.
Worked example
42 in binary is 101010.
FAQ
Why do computers use binary?
Because electronic switches have two stable states — on (1) and off (0).