← All tools

Edit Distance & String Similarity

Measure how different two strings are. Computes the Levenshtein edit distance (minimum single-character insertions, deletions, and substitutions to turn one string into the other), a similarity percentage, and (for equal-length inputs) the Hamming distance. Shows a color-coded alignment of the edits. Toggle between character and word granularity. Everything runs in your browser; nothing is uploaded.

A with edits
B with edits

Legend: unchanged is plain; substitution changes A into B; deletion removes from A; insertion adds to B. Word mode treats whitespace-separated tokens as units.