Text & OCR

Text Similarity (Levenshtein, n-grams)

Compare two texts with several measures — similarity %, edit distance, Hamming, longest common subsequence, shared words (Jaccard), cosine and Dice — or list the n-grams of one text.

In the browser

Your text is processed in your browser and is never uploaded.

About this tool

Compare two texts with several measures — similarity %, edit distance, Hamming, longest common subsequence, shared words (Jaccard), cosine and Dice — or list the n-grams of one text.

Similarity % is 1 − Levenshtein distance ÷ length of the longer text, counted in visible characters. Jaccard compares the sets of words, cosine their frequencies, Dice the shared letter pairs.

Example: “kitten” vs “sitting” → edit distance 3, similarity 57.14 %.

These measure spelling, not meaning: “car” and “automobile” score low. Use Diff Checker to see exactly which lines changed.

Quick steps

  1. Paste your text or open a file (or press Try an example).
  2. Choose the options — the result updates as you type.
  3. Copy the result or download it as a file.

Everything runs in your browser. Nothing you type is sent to 1CLIK.

FAQ

How does the Text Similarity (Levenshtein, n-grams) work?

Similarity % is 1 − Levenshtein distance ÷ length of the longer text, counted in visible characters. Jaccard compares the sets of words, cosine their frequencies, Dice the shared letter pairs.

What should I keep in mind?

These measure spelling, not meaning: “car” and “automobile” score low. Use Diff Checker to see exactly which lines changed.

Is my text uploaded or saved?

No. It is processed on your device in a separate background task that is stopped if it takes too long; nothing is stored or sent.

A useful next step

Site policies: Privacy · Terms