Hamming Distance Calculator
Count how many positions differ between two texts of the same length, such as two bit strings.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Hamming Distance Calculator
- Type the first text.
- Type the second text. It must be the same length as the first.
- Read the Hamming distance, the number of positions that differ.
Frequently asked questions
Why must the texts be the same length?
Hamming distance compares positions side by side, so both texts need the same number of characters.
What is it used for?
It counts errors when comparing equal-length codes, such as bit strings or DNA sequences.
Are my texts sent anywhere?
No. The calculation runs in your browser.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.