Jaro–Winkler Similarity Calculator
Compare two strings and get the Jaro similarity, the Jaro distance and the Jaro–Winkler score, with the matching characters, transpositions, common prefix and substituted formula laid out. No signup, nothing uploaded — it all runs in your browser.
How it works
Jaro–Winkler similarity scores how alike two strings are on a 0-to-1 scale, tuned for short strings such as names. It builds on the Jaro similarityfrom M. A. Jaro's 1989 record-linkage work and adds W. E. Winkler's 1990 bonus for a shared leading prefix. Identical strings score 1; strings with no characters in common score 0.
Jaro similarity rewards common characters and penalises those that are out of order. Two characters count as a match only when they are equal and lie within a matching window of each other:
window = max(0, ⌊max(|s1|, |s2|) / 2⌋ − 1)
With the matching characters m and transpositions t counted, the Jaro score is:
Jaro = (1/3) · ( m/|s1| + m/|s2| + (m − t)/m )
A transposition is a pair of matched characters that appear in a different order in the two strings. You count them by taking the matched characters of each string in order, tallying the positions where the sequences disagree, and halving that tally — the count is always even. If m = 0, the Jaro score is defined as 0 rather than a divide-by-zero.
Winkler then boosts strings that agree at the start, since typos tend to fall later in a word. Let ℓ be the length of the common prefix, capped at 4, and p the scaling factor (default 0.1):
JW = Jaro + ℓ · p · (1 − Jaro)
The ceiling p ≤ 0.25 keeps the score at or below 1, because the largest prefix bonus is 4 × 0.25 = 1 of the remaining gap. Setting p = 0 collapses Jaro–Winkler back to plain Jaro. The Jaro distance is 1 − Jaro and the Jaro–Winkler distance is 1 − JW. This tool implements the standard prefix bonus with no boost threshold — the most widely cited definition — and reproduces the published reference values for MARTHA/MARHTA, DWAYNE/DUANE and DIXON/DICKSONX exactly.
Worked examples
Frequently asked questions
Sources & references
- M. A. Jaro (1989) — Advances in record linkage methodology, JASA 84(406):414–420 (base matching window and transposition formula)
- W. E. Winkler (1990) — String Comparator Metrics and Enhanced Decision Rules in the Fellegi-Sunter Model (prefix bonus, p = 0.1, ℓ ≤ 4)
- Wikipedia — Jaro–Winkler distance (worked formula and the MARTHA/MARHTA reference)
The formulas on this page were last cross-checked against these sources on 2026-07-09. Jaro–Winkler is a fixed algorithm definition, so the tool needs no rate or schedule updates — only the reference examples are periodically re-reconciled.
Related tools
Comments & feedback
Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.
Found a bug, edge case, or want to suggest an improvement?
Email me at [email protected] — most fixes ship within 24 hours.