Perform binary arithmetic and bitwise operations instantly. Add, subtract, multiply, divide binary numbers. Apply AND, OR, XOR, NOT, and shift operations. See results in binary, decimal, hex, and octal.
This binary calculator performs arithmetic and bitwise operations on binary numbers. It supports addition, subtraction, multiplication, and division, as well as bitwise AND, OR, XOR, NOT, and shift operations. All calculations happen in your browser for maximum privacy and speed. Results are displayed simultaneously in binary, decimal, hexadecimal, and octal formats.
A binary calculator is a tool that performs mathematical and logical operations on numbers represented in binary format (base-2), using only the digits 0 and 1. It is especially useful for programmers, computer science students, and anyone working with digital logic.
This calculator supports all basic bitwise operations: AND (both bits must be 1), OR (at least one bit must be 1), XOR (exactly one bit must be 1), NOT (flip all bits), left shift (move bits left), and right shift (move bits right).
In unsigned mode, all bits represent positive values. In signed mode (two's complement), the most significant bit indicates the sign: 0 for positive, 1 for negative. This is how computers internally represent signed integers.
Use 8-bit for single bytes, 16-bit for small integers, 32-bit for standard integers (int in C), and 64-bit for large integers (long long in C). Choose the width that matches your use case.