Skip to content
ToolsOnDuty - free online tools
Text Tools

Levenshtein Distance Calculator

Measure the minimum insertions, deletions and substitutions needed to change one string into another.

Free foreverRuns in your browserNo sign-up

Result

Enter your values and select calculate distance.

About the Levenshtein Distance Calculator

Levenshtein Distance Calculator is a focused browser-based utility. Measure the minimum insertions, deletions and substitutions needed to change one string into another.

The calculation runs locally in your browser, so the supplied value is not uploaded to ToolsOnDuty. The same capability is also available through the authenticated developer API.

Key features

  • Fast local processing with explicit validation
  • Copy-ready structured result
  • No account, upload or paid data provider required

How to use

  1. 1Enter the two strings to compare.
  2. 2Choose any available conversion or formatting options.
  3. 3Run the tool and review their edit distance.

Examples

Levenshtein Distance Calculator example
Input: the two strings to compare
Output: their edit distance

Frequently asked questions

Is my input uploaded?
No. This website tool runs in your browser. Only the optional public API version sends input to the authenticated API route.
Can I use this in an application?
Yes. The Developers documentation lists the authenticated endpoint, request parameters and response example.
Should I verify the result?
Yes. Deterministic tools are designed for repeatable results, but format-specific or heuristic output should still be checked for your use case.