๐Ÿงฐ UtlKit

String Similarity

Compare two strings and calculate Levenshtein distance and similarity percentage.

Distance
3
Similarity
57.1%
Operations
7
Similarity
Edit Operations (7)
1. Replace 'k' โ†’ 's'
2. Match 'i'
3. Match 't'
4. Match 't'
5. Replace 'e' โ†’ 'i'
6. Match 'n'
7. Insert 'g'
๐Ÿ›

Report a Problem

Found a bug or have a suggestion? Help us improve this tool.

๐Ÿ“Š Data Summary (auto-filled)

Tool: string-similarity ยท /tools/string-similarity/

str1: kitten

str2: sitting

What is this tool?

String similarity calculator compares two text strings and measures how alike they are using multiple algorithms. Supports Levenshtein distance (edit distance), Jaccard similarity, cosine similarity, and Longest Common Subsequence. Useful for fuzzy matching, plagiarism detection, spell checking, and data deduplication.

How to use

  1. 1

    Enter first string

    Input the first text to compare.

  2. 2

    Enter second string

    Input the second text to compare.

  3. 3

    View results

    See similarity scores from multiple algorithms.

Frequently Asked Questions

What is Levenshtein distance?

Levenshtein distance counts the minimum number of single-character edits (insertions, deletions, substitutions) needed to transform one string into another. Distance of 0 means identical strings. Lower distance = more similar.

Which algorithm to use?

Levenshtein for typos, Cosine for text.

Can I process very large text?

The browser can handle text up to several megabytes. For very large files consider splitting them first.