Text similarity percentage
Compare two texts and get their similarity percentage along with the edit distance (the number of characters to change to get from one to the other).
How it works
The tool calculates the Levenshtein distance between the two texts: the minimum number of character insertions, deletions or substitutions needed to turn the first text into the second. This number is then converted into a similarity percentage, which is useful for detecting duplicate content, comparing two versions of an article, or checking whether a user's answer is close enough to an expected answer.
Does 100% mean the texts are identical?
Yes, a similarity of 100% corresponds to an edit distance of 0, meaning the two texts are strictly identical character by character (spaces and case included).
Why do case or spaces change the result?
The comparison is case-sensitive and space-sensitive because it works character by character without any prior normalization: "Hello" and "hello" are therefore considered different.
100% local processing: the two compared texts never leave your browser, and everything is calculated via WebAssembly on your device.