Skip to main content

Text & Lists

Levenshtein Distance Text Processor

Transform text with Levenshtein Distance and the selected rules. Enter the text, set the transformation rules, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Transform text with Levenshtein Distance and the selected rules. Enter the text, set the transformation rules, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

Levenshtein Distance Text Processor measures the minimum single-character edits needed to change one string into another.

3 Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Enter the two strings in the operation comparison fields.
  3. Keep whitespace when it is part of the values.
  4. Use the distance to compare similarity, not as a correction proposal.

Example

Input: kitten sitting

Settings: Levenshtein Distance Text Processor: Use the operation's comparison inputs.

Result: 3

Limits

  • Levenshtein Distance Text Processor: The metric counts insertions, deletions, and substitutions equally.
  • Levenshtein Distance Text Processor: It does not account for language meaning or keyboard proximity.
  • Levenshtein Distance Text Processor: The operation runs in the browser and does not need a network service.