XOR Hex Numbers Online
Perform bitwise XOR on two hexadecimal numbers. View the result in hex, decimal, and binary.
XOR Result (A ^ B)
Paste two hex values, hit XOR, and get the bitwise result in hex, decimal, and binary side by side. BigInt handles arbitrarily large numbers — XOR a 256-bit key against another and nothing truncates. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter the first hex number in the "Hex Value A" field. You can include an optional "0x" prefix.
Enter the second hex number in the "Hex Value B" field.
Click XOR to compute the bitwise XOR of the two values.
View the result in hexadecimal, decimal, and binary formats. Copy any result with one click.
Frequently Asked Questions
What is XOR (exclusive OR)?
XOR is a bitwise operation that compares two binary values bit by bit. For each pair of bits, XOR returns 1 if exactly one of the bits is 1, and 0 if both bits are the same. For example, 1 XOR 0 = 1, 1 XOR 1 = 0, 0 XOR 0 = 0. It is commonly used in cryptography, error detection, and low-level programming.
How does XOR work with hexadecimal numbers?
Hexadecimal numbers are first converted to their binary representation, then XOR is applied bit by bit. The result is converted back to hex (and also shown in decimal and binary). For example, 0xF0 XOR 0x0F = 0xFF, because 11110000 XOR 00001111 = 11111111.
What happens when the hex numbers have different lengths?
The shorter number is zero-padded on the left to match the length of the longer number. For example, XOR of "FF" and "1FF" treats the first value as "0FF", so 0FF XOR 1FF = 100.
What is the maximum hex number I can XOR?
This tool uses BigInt arithmetic, so it can handle arbitrarily large hex numbers. There is no practical limit on the number of hex digits you can enter.