Binary Calculator
Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.
Enter two numbers in binary, octal, decimal or hex and pick an operation.
Use the Binary Calculator
Binary Calculator
Shift amount must be a non-negative integer 0–63.
Enter operands and click Calculate to see the result in all four bases.
Base 2 — grouped in 4-bit nibbles
Base 8 (octal)
Base 10 (decimal)
Base 16 (hexadecimal, uppercase)
Remainder
Quick answer
Enter two numbers in binary, octal, decimal or hex and pick an operation. 1011 + 110 = 10001 (11 + 6 = 17), shown in 4-bit groups as 0001 0001 next to the octal, decimal and hex results. It also runs AND, OR, XOR, NOT and bit shifts, and integer division with the remainder.
Examples
| Binary | Decimal | Result |
|---|---|---|
| 1011 + 110 | 11 + 6 | 10001 (17) |
| 1101 − 101 | 13 − 5 | 1000 (8) |
| 101 × 11 | 5 × 3 | 1111 (15) |
| 1100 ÷ 11 | 12 ÷ 3 | 100 (4) |
| 1100 AND 1010 | 12 AND 10 | 1000 (8) |
| 1100 XOR 1010 | 12 XOR 10 | 110 (6) |
| 1011 << 2 | 11 << 2 | 101100 (44) |
Enter two numbers and an operation.
Summary
Add, subtract, multiply, divide, or apply bitwise operations to binary/hex/octal/decimal numbers.
How it works
- Enter Operand A and select its base (BIN, OCT, DEC, or HEX).
- Choose an operation from the dropdown: +, -, x, /, AND, OR, XOR, <<, >>, or NOT.
- For the unary NOT operation, Operand B is ignored automatically.
- Enter Operand B and select its base (also BIN, OCT, DEC, or HEX).
- Click Calculate to see the result displayed in binary, octal, decimal, and hexadecimal.
Use cases
- Debug bitwise flag logic in embedded systems or low-level programming.
- Convert numbers between binary, octal, decimal, and hexadecimal at once.
- Verify AND/OR/XOR masks when working with network subnets or permissions.
- Check the result of left/right shift operations used in performance-optimized code.