Enter numbers in decimal format (e.g., 42, 255)
Perform arithmetic and bitwise operations on numbers.
Binary math
Enter numbers in decimal format (e.g., 42, 255)
The Binary Calculator takes two numbers — entered in decimal or directly in binary — and computes everything at once: addition, subtraction, multiplication, integer division with remainder, modulo, and the bitwise operations AND, OR, and XOR. Every result is displayed in decimal, binary, and hexadecimal side by side. The engine runs on BigInt, so arithmetic is exact beyond 2^53 and bitwise operations are arbitrary-width — none of the 32-bit truncation JavaScript's own operators inflict. Negative numbers are supported and shown in sign-magnitude form, the way humans read them.
JavaScript's &, |, and ^ coerce numbers to 32-bit signed integers, silently mangling anything larger. This calculator uses BigInt operators, which are arbitrary-width — a bitwise AND of two 64-bit values is computed exactly, with no truncation or sign surprises.
As integer division truncated toward zero, with the remainder shown alongside — so 100 ÷ 7 reports 14 remainder 2. Division or modulo by zero shows no result rather than an error page.
In sign-magnitude form — -26 appears as -11010 — because that's the readable convention for a calculator. It deliberately does not show two's-complement bit patterns, which depend on a fixed width.
No — all computation is local. Nothing you enter is uploaded, stored, or tracked.