XOR Calculator
Bitwise XOR in hex, binary, decimal, or text
Free XOR calculator — compute the bitwise XOR of two values in hex, binary, decimal, or text, and see the result in all four formats instantly in your browser.
How to use XOR Calculator
- Enter Value A and pick its format — hex, binary, decimal, or text.
- Enter Value B and pick its format — each value can use a different format.
- Click Calculate XOR to see the result in hex, binary, decimal, and text.
- Copy any result format with one click.
Features
- Four input formats: hex, binary, decimal, and text
- Result shown in all four formats at once
- Byte-wise XOR — a shorter input repeats to match the longer one
- Reversible: (A XOR B) XOR B gives back A
- Runs fully in your browser — nothing is uploaded
- Copy buttons for every result format
Frequently asked questions
What is a bitwise XOR calculator?
A bitwise XOR calculator compares two values bit by bit and returns 1 wherever the bits differ, 0 wherever they match: 1 XOR 1 = 0, 1 XOR 0 = 1, 0 XOR 1 = 1, 0 XOR 0 = 0. It is the tool for hex, binary, and decimal XOR, and for the repeating-key XOR used in simple ciphers.
What is 12 XOR 10?
6. In binary, 12 is 1100 and 10 is 1010, so bit by bit: 1 XOR 1 = 0, 1 XOR 0 = 1, 0 XOR 1 = 1, 0 XOR 0 = 0 — 0110, which is 6 in decimal and 06 in hex.
What is 0 XOR 0?
0. XOR returns 1 only where the bits differ, and 0 XOR 0 has no differing bits — the same rule gives 0 XOR 1 = 1 and 1 XOR 1 = 0.
How do I XOR two hex values?
Enter both values in hex and calculate: FF XOR 0F = F0. The tool also shows the same answer as binary 11110000 and decimal 240, so you can check the result in whichever base your next step needs.
Can I XOR text?
Yes — pick the text format for both values. The tool XORs the characters byte by byte: 'hello' XOR 'key' is hex 030015070a, because the shorter key repeats across the longer word. Bytes that are not printable characters show as a dot in the text result.
What happens if the two values have different lengths?
The shorter value repeats, byte by byte, until it covers the longer one — that is how repeating-key XOR works. XOR is also reversible: XOR the result with B again and you get A back, (A XOR B) XOR B = A.
Login to use this free online tool. Create a free account to get started.















