Xor Calculator
Perform XOR (exclusive OR) operation on two binary, hexadecimal, or decimal numbers. Supports multiple input bases and shows step-by-step bitwise result.
Was this calculator helpful?
How to use this tool?
How to Use the XOR Calculator
- Enter two numbers in the Input 1 and Input 2 fields. For example:
12and10(decimal). - Choose the base from the dropdown: Binary (base 2), Decimal (base 10), or Hexadecimal (base 16). The calculator accepts only digits valid for the selected base (e.g., only 0-9 for decimal, 0-1 for binary, 0-9 and A-F for hex).
- Click "Calculate XOR" to perform the bitwise XOR operation.
- View the result displayed in the same base you selected, along with a step-by-step breakdown showing each bit comparison.
- If an error appears, check that both inputs are non-empty and contain only valid characters for the chosen base.
Tip: The calculator automatically pads shorter binary numbers with leading zeros to match lengths. Use real-time validation (green/red borders) to confirm input correctness before calculating.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
XOR (exclusive OR) is a logical operation that outputs true only when inputs differ (one true, one false). In binary, 1 XOR 0 = 1, 1 XOR 1 = 0.
No, this calculator only accepts non-negative integers. Negative numbers are not supported.
Binary (base 2), Decimal (base 10), and Hexadecimal (base 16). Inputs must be valid for the selected base.