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.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

Was this calculator helpful?

How to use this tool?

How to Use the XOR Calculator

  1. Enter two numbers in the Input 1 and Input 2 fields. For example: 12 and 10 (decimal).
  2. 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).
  3. Click "Calculate XOR" to perform the bitwise XOR operation.
  4. View the result displayed in the same base you selected, along with a step-by-step breakdown showing each bit comparison.
  5. 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

Generate Charts
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.

Reviewed by Experts

Eurico José Kiala

Eurico José Kiala

Mathematician

Teacher

LinkedIn
João Lino

João Lino

Mathematician

LinkedIn
Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0