String Similarity Comparer (Jaro-Winkler, Dice, Cosine)
Scores two strings with ten common similarity measures at once so you can see how they differ.
Use the tool
Why this tool exists
No single similarity score fits every job. Jaro-Winkler suits short names because it rewards a shared start. Dice and cosine on letter pairs suit longer text. Edit distance is easy to explain but harsh on long strings.
Paste two strings and see all scores from 0 to 1 side by side, each with a one-line description of what it measures. The Jaro-Winkler scores use the usual prefix length of 4 and scale of 0.1, and match the published values for MARTHA and MARHTA.
How to use it
- Enter the two strings.
- Choose whether to ignore case and collapse whitespace.
- Compare the scores in the table.
- Pick the measure that suits your data and set your own threshold.
Frequently asked questions
Which score should I use for names?
Jaro-Winkler is a common choice for short names. Test it on your own data and set a threshold from examples.
Why are bigram scores 0 for one-letter strings?
A single character has no pairs of letters, so there is nothing to compare unless the strings are equal.
Are the scores comparable to each other?
Roughly, since all run from 0 to 1, but they measure different things. Compare scores of one measure across pairs.
Is there a length limit?
5000 characters per string.