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.
- Enter the first binary number (using only 0s and 1s)
- Select an operator: arithmetic (+, −, ×, ÷, %) or bitwise (&, |, ^, <<, >>)
- Enter the second binary number
- 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).
No comments yet. Be the first to comment!