Binary Calculator & Converter
Calculate in base 2 or convert between binary and decimal without rounding the internal value.
Result
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
- Choose arithmetic, conversion to decimal, or conversion from decimal. Enter the second value only for arithmetic.
- 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
- Digits must be contiguous; do not use digit-group marks or hardware-width conventions.
- A parenthesis pair marks recurring digits; a trailing ellipsis means the expansion was abbreviated.
Sources & methodology
Related calculators
- Hexadecimal Calculator & Converter
Calculate in base 16 or convert between hexadecimal and decimal, including exact fractional values.
- IPv4 and IPv6 Subnet Calculator: CIDR, Masks and Ranges
Find the exact network block, address count, endpoints and IPv4 subnet mask from an address and prefix. No network lookup.
- Bandwidth, File Transfer Time and Data Calculator
Find ideal download or upload time, convert data units, or estimate average data usage and website traffic.
- URL Component Encoder and Decoder
Encode a single value or decode URL percent escapes without leaving this page. Choose form decoding only when plus signs mean spaces.