— ——About this tool
A binary calculator operates directly on base-2 numbers. Enter two binary operands, choose an operation, and see the result without converting to decimal by hand. Arithmetic (+, −, ×, ÷) and bitwise operations (AND, OR, XOR, NOT, left and right shift) are all supported.
Pick a bit width (8, 16, 32 or 64) and the result is masked to that width, so you can see exactly how overflow wraps — just like a fixed-size CPU register. Every result is shown simultaneously in binary, decimal and hex, and division by zero and invalid input are caught with a clear message.
All math runs locally — the values you enter never leave your browser.
Frequently asked questions
Which operations are supported?
Addition, subtraction, multiplication and integer division, plus the bitwise operations AND, OR, XOR, NOT (on the first operand) and left/right shift. Results appear in binary, decimal and hex together.
How does bit width affect the result?
The result is masked to the chosen width, so an 8-bit add of 11111111 + 1 wraps to 00000000. This mirrors how a fixed-size register overflows; widen the bit width to avoid wrapping.
Is the shift logical or arithmetic?
Right shift is logical — it fills with zeros from the left — operating on the unsigned bit pattern within the chosen width.