Math

Binary Calculator (Decimal ⇄ Binary)

Convert a decimal integer to binary and back.

Parameters Live Compute
Calculated Output
Binary 101010
Bit length 6
Formula: Repeated division by 2
Step-by-Step Breakdown
1. Values used:
2. Decimal number = 42
3.
4. Binary = 101010
5. Bit length = 6
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

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.

Frequently Asked Questions

Why do computers use binary?

Because electronic switches have two stable states — on (1) and off (0).

Advertisement