Score how alike two strings are, based on matching characters and how out of order they are.
Jaro similarity looks for characters that appear in both strings close to the same position — within a small window based on the strings' length — and counts how many of those matches are "out of order" (transposed) rather than straightforward. More matches, and fewer out-of-order ones, mean a higher score. It was originally designed for matching names and records — census data, customer databases, mailing lists — where small typos or reordered characters shouldn't stop two entries from being recognized as the same person or place.
Jaro similarity scores how alike two strings are, from 0 (nothing alike) to 1 (identical). It looks for characters that appear in both strings close to the same position — within a small window based on the strings' length — and counts how many of those matches are "out of order" (transposed) rather than straightforward.
It was originally designed for matching names and records — census data, customer databases, mailing lists — where a small typo or a swapped pair of letters shouldn't stop two entries from being recognized as the same person.
Jaro(s1, s2) = (1/3) × (m/|s1| + m/|s2| + (m−t)/m) where m = number of matching characters, t = number of transpositions
Two characters are considered "matching" if they're the same and within a window of max(|s1|, |s2|)/2 − 1 positions of each other — this is what lets Jaro tolerate letters being slightly out of position, not just exact alignment.
Among the matched characters, any pair that appears in a different relative order between the two strings counts as a "transposition," which lowers the score. The final score averages how complete the matching was on each side with how many matches were in the right order.
Comparing "DIXON" and "DICKSONX":
The two strings are identical, character for character.
Levenshtein counts edit operations needed to transform one string into another. Jaro instead scores based on matching characters within a proximity window and penalizes out-of-order matches — it tends to handle short strings like names better than raw edit distance.
Only loosely — it only requires matches to be within a limited window of each other, not in the exact same position, which is what lets it tolerate small reorderings.
If the strings you're comparing are more likely to share a common prefix (like names), use Jaro-Winkler — it boosts the score when both strings start with the same characters.
No — the comparison runs entirely in your browser.