Perform binary arithmetic (add, subtract, multiply, divide) and convert between binary, decimal, hexadecimal, and octal.
Enter a value in any base to convert to all others:
| Base | Value |
|---|
Binary is base-2, using only 0 and 1. It is the fundamental language of computers and digital electronics. Each digit is a "bit" (binary digit).
| Operation | Examples |
|---|---|
| Addition | 0+0=0, 0+1=1, 1+1=10 (carry), 1+1+1=11 |
| Subtraction | Use two's complement for negative numbers |
| AND | 1 AND 1 = 1; all others = 0 |
| OR | 0 OR 0 = 0; all others = 1 |
| XOR | 1 XOR 1 = 0; 0 XOR 1 = 1 |