Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)

Binary Calculator

Perform arithmetic and bitwise operations on binary numbers. Add, subtract, multiply, divide, and use AND, OR, XOR, shift operations.

The Binary Calculator performs arithmetic and bitwise operations on binary (base 2) numbers. Binary is the fundamental number system used by computers, using only two digits: 0 and 1.

  1. Enter the first binary number (using only 0s and 1s)
  2. Select an operator: arithmetic (+, −, ×, ÷, %) or bitwise (&, |, ^, <<, >>)
  3. Enter the second binary number
  4. Click Calculate or press Enter to see results in all number bases
  • Full arithmetic operations: addition, subtraction, multiplication, division, modulo
  • Bitwise operations: AND, OR, XOR, left shift, right shift
  • Results displayed in binary, octal, decimal, and hexadecimal
  • Support for large numbers using BigInt
  • Quick examples for common operations
What is binary?
Binary is a base-2 number system using only 0 and 1. Each digit represents a power of 2. For example, 1010 in binary equals 10 in decimal (8+2).
What are bitwise operations?
Bitwise operations work on individual bits. AND (&) returns 1 only if both bits are 1. OR (|) returns 1 if either bit is 1. XOR (^) returns 1 if bits are different.
How do shift operations work?
Left shift (<<) multiplies by 2 for each position shifted. Right shift (>>) divides by 2. For example, 1 << 4 = 16 (shifting 1 left by 4 positions).
0b
0b
BIN
OCT
DEC
HEX
Enter values to calculate
Try examples
Operator Name Example
+ Addition 1010 + 0101 = 1111
Subtraction 1010 − 0011 = 0111
× Multiplication 1010 × 0010 = 10100
÷ Division 1010 ÷ 0010 = 0101
% Modulo 1010 % 0011 = 0001
& AND 1010 & 1100 = 1000
| OR 1010 | 1100 = 1110
^ XOR 1010 ^ 1100 = 0110
« Left Shift 0001 << 4 = 10000
» Right Shift 1000 >> 2 = 0010
Enter binary numbers using only 0 and 1
Supports arithmetic (+, −, ×, ÷, %) and bitwise (&, |, ^, <<, >>) operations
Results shown in BIN, OCT, DEC, and HEX formats
Use shift operations for quick multiplication/division by powers of 2
Want to learn more? Read documentation →
1/5

Base Arithmetic Calculator

Binary Calculator (current page) Hex Calculator Octal Calculator
Start typing to search...
Searching...
No results found
Try searching with different keywords