Binary Calculator & Converter

Calculate in base 2 or convert between binary and decimal without rounding the internal value.

Use a point for a fraction and a leading minus for a negative value. Do not group digits.

Result

Enter values and select Calculate.

How is this calculated?

Weight binary digits by powers of two and keep arithmetic exact before formatting the result.

Worked example: See a recurring binary quotient

Divide binary 1 by binary 11 (decimal 3). The quotient is 0.(01) in binary and 0.(3) in decimal; the exact ratio is 1/3.

Method and limits

Parentheses mark recurring digits, and an ellipsis marks an abbreviated result. Arithmetic keeps exact values internally. The sign is written explicitly; this is not a fixed-width two’s-complement tool.

How to use this calculator

  1. Choose arithmetic, conversion to decimal, or conversion from decimal. Enter the second value only for arithmetic.
  2. Check the input base on the field label. Read the result in the labeled base; the exact ratio in arithmetic uses decimal integers.

See a recurring binary quotient

Divide binary 1 by binary 11 (decimal 3). The quotient is 0.(01) in binary and 0.(3) in decimal; the exact ratio is 1/3.

Read a fractional bit pattern

Each step left of the point doubles the place value. Immediately right of the point the places are one half, one quarter, and one eighth. For example, 101.01 is 4 + 1 + 1/4 = 5.25.

Check addition with the decimal row

Binary 1011 means decimal 11 and binary 111 means decimal 7. Their sum is 10010, which is 18 in decimal. Carry to the next column when a column totals two.

Recognize a repeat

Binary 1 ÷ 11 is one third. Its fractional bits repeat 01 indefinitely. The ratio row is the exact answer even when an expansion is too long to show fully.

Frequently asked questions

Can I type 0b?
Yes, in binary input modes. Examples are 0b1010 and -0b1.1.
What does a leading minus sign mean?
It means a negative quantity. This tool does not infer signed values from bit width or interpret two’s complement.
Can I paste spaced bit groups?
Enter a contiguous digit string with at most one point. Remove spaces, commas and other digit separators.
What does an ellipsis mean?
The expansion exceeded the display limit. If available, use the exact ratio rather than the shortened digit string.

Common mistakes and limits

Sources & methodology

Related calculators