This is a hex compare / diff tool. XOR is the bit mask of what changed; Hamming distance is how many bits differ. 0x3C vs 0x3E at 8 bits is one bit, mask 0x02.
Examples — click a swatch
Click a bit on A or B to flip it. Red rings mark bits that differ.
A
B
XOR
Hex digits with a changed nibble are ringed.
Click a value to copy it
Batch (one per line or commas)
One pair per line: 0x3C 0x3E or 3C,3E. Fill example loads three rows; the table shows Hamming and XOR.
This page compares two integers of the same width and shows which bits changed. XOR is the mask of differing bits; Hamming distance is how many 1s that mask has. 0x3C vs 0x3E at 8 bits is distance 1, mask 0x02. 0x10 vs 0x01 is distance 2 even though subtraction is 15. HEX, XOR, Hamming stay untranslated. This is not the hex bitwise calculator (AND/OR/NAND and shifts), not a hex dump of two files, and not the text diff.
Values are masked to the width; shorter hex is zero-padded on the left. A Hamming distance of 1 is a single-bit flip. Similarity is matching bits divided by width. Related: hex bitwise if you need the XOR value as an operator among AND/OR, and hex dump to inspect a whole buffer.
No. 0x10 vs 0x01 subtracts to 15, but only two bits differ (Hamming 2, mask 0x11).
Both are padded to 00001111 and 00011111. Without a shared width you would be comparing different lengths.
Not here. Paste short hex values. For a byte dump of one buffer use hex dump.