Levenshtein Distance

Calculator to calculate the Levenshtein distance

Calculate Levenshtein distance


This function returns the Levenshtein distance of two character strings The Levenshtein distance (also edit distance) between two strings is the minimum number of operations to insert, delete, and replace to transform the first string into the second.

To calculate, enter the two texts, then click on the 'Calculate' button.


Calculator Levenshtein distance

 Text 1
 Text 2
 Result
Distance

Example of Levenshtein distance

The distance between the texts: "The gnu at the zoo" and "The gate at the zoo" is 3.

3 changes must be made.

  1. Replace the n in "gnu" with a
  2. Replace the u in "gnu" with t
  3. Append the e to "gate"
Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?