Other
Hamming Distance Calculator
Count the differing bits between two numbers.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
The Hamming distance is the number of bit positions where two values differ.
The math behind it
XOR the two numbers and count the 1 bits in the result.
Worked Example
156 (10011100) vs 99 (01100011) differ in 8 bits.
Frequently Asked Questions
Where is it used?
Error detection and correction, and comparing binary codes.
Advertisement