How to use
Choose whether to convert a decimal integer to binary, convert binary to decimal, or perform arithmetic on two binary values. Binary strings may contain only 0 and 1; do not add prefixes such as 0b. For example, decimal 42 converts to 101010 because 32 + 8 + 2 = 42. When adding 1010 and 11, the result is 1101.
What the result means
Division returns an integer quotient and remainder, so check both if the division is not exact. This tool uses whole numbers and JavaScript BigInt, allowing large integer values without ordinary floating-point rounding. It does not perform signed two's-complement or floating-point encoding. Negative integers are supported for conversion and arithmetic.
Further reading: Cornell University — From Switches to Numbers · Berkeley Python Numerical Methods — Base-N and Binary · University of Wisconsin–Madison — A Beginner’s Guide to Programming.
Related calculators