Home › Text Tools › Text Similarity Checker

Text Similarity Checker

Paste two texts to see how similar they are. You get a similarity percentage from three standard measures, cosine (word frequency), Jaccard (shared vocabulary) and Levenshtein (edit distance), and every phrase the texts share is highlighted side by side.

Last updated:

0%
Overall similarity—Average of the three measures
Cosine (word TF)0%Word frequency vectors
Jaccard (vocabulary)0%Shared ÷ all distinct words
Levenshtein0%Edit distance

Shared phrases highlighted

A Text A
B Text B

Shared phrases

    Advertisement
    Advertisement

    How to use the Text Similarity Checker

    1. Paste the first text into Text A and the second text into Text B.
    2. Choose options: ignore case, ignore punctuation, skip stop words and the minimum shared phrase length.
    3. Press Check similarity (results also update as you type).
    4. Read the scores: overall similarity, cosine, Jaccard and Levenshtein, each from 0% to 100%.
    5. Review the highlights: shared phrases are marked in both texts and listed below, longest first.

    The three similarity formulas

    MeasureFormulaLooks atOrder matters?
    Cosine similarity(A · B) ÷ (‖A‖ × ‖B‖), where A and B are word count vectorsWhich words are used and how oftenNo
    Jaccard similarity|A ∩ B| ÷ |A ∪ B| on the sets of distinct wordsShared vocabulary onlyNo
    Levenshtein similarity1 − distance ÷ length of the longer textCharacter insertions, deletions and substitutionsYes

    Worked example. Text A is “red apples and green apples” and text B is “green apples and red pears”. The word counts are A = {red 1, apples 2, and 1, green 1} and B = {green 1, apples 1, and 1, red 1, pears 1}. The dot product is 1 + 2 + 1 + 1 = 5, ‖A‖ = √7 and ‖B‖ = √5, so cosine = 5 ÷ √35 ≈ 84.5%. The vocabularies share 4 words out of 5 distinct words, so Jaccard = 80%.

    How to read the results

    • High cosine, low Levenshtein: the same words in a different order, which is typical of a rearranged or lightly paraphrased text.
    • High everything: the texts are close copies with small edits. The highlighted phrases show exactly which passages match.
    • Low Jaccard but some shared phrases: mostly different texts that reuse a few exact sentences or quotes.
    • Short texts swing a lot: with only a few words, one changed word moves every score by several percent.

    Shared phrases are found by matching runs of consecutive words (word n-grams) and extending each match as far as it goes, so a long copied sentence appears once rather than as many overlapping pieces. Phrase matching ignores punctuation and line breaks between words.

    Frequently asked questions

    How is the similarity percentage calculated?

    The tool computes three standard measures and shows each one. Cosine similarity compares how often each word is used, Jaccard similarity compares the sets of distinct words, and Levenshtein similarity is 1 minus the edit distance divided by the length of the longer text. The overall score is the average of the three.

    What is cosine similarity?

    Each text is turned into a vector of word counts (term frequency). Cosine similarity is the dot product of the two vectors divided by the product of their lengths. It ranges from 0% (no words in common) to 100% (the same words in the same proportions), and it ignores word order.

    What is the difference between Jaccard and cosine similarity?

    Jaccard only looks at which distinct words appear: shared words divided by all distinct words in both texts. Cosine also weighs how often each word appears, so repeated keywords matter more. Jaccard is usually the lower and stricter of the two.

    What does Levenshtein distance measure?

    It is the minimum number of single-character insertions, deletions or substitutions needed to turn one text into the other. Unlike the word measures, it is sensitive to order and spelling. For long texts it is computed on words instead of characters to stay fast, and the tool tells you when that happens.

    Is this a plagiarism checker?

    No. It compares only the two texts you paste and does not search the web or any database. It is useful for spotting reused passages, checking a paraphrase against its source or comparing two versions of a document.

    Why does removing stop words change the score?

    Stop words such as the, and, of and to appear in almost every English text, so they make unrelated texts look somewhat similar. Removing them lets cosine and Jaccard focus on meaningful words. Shared phrases always keep stop words so the phrases read naturally.

    Are my texts stored or uploaded?

    No. All calculations run in your browser with JavaScript. Nothing is sent to a server, and the texts are only kept in your own browser's local storage so they are still there if you reload.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    Text CompareFind the differences between two texts.Compare Two ListsFind items only in list A, only in list B, in both lists, or in either, with copy and sort.Word Frequency CounterFind the most used words and phrases in any text and turn them into a word cloud.Keyword Density CheckerFind the most used 1, 2 and 3-word phrases in your text and their keyword density %.Word CounterCount words and characters and clean up text.Character CounterCount characters with and without spaces, words, lines and bytes, with live limit bars.Grammar CheckerCheck grammar, spelling and punctuation with clickable suggestions and one-click fixes.Word Count to PagesHow many pages is 1,000 words? Estimate pages by font, size, spacing and margins.X Post Character CounterCount X (Twitter) post characters and split long text into a thread.YouTube Title Length CheckerCheck YouTube title length, preview truncation and score it for clicks.Sentence CounterCount sentences and paragraphs, see average sentence length and spot long sentences.Readability CheckerScore your text with Flesch, Flesch-Kincaid, Gunning Fog, SMOG and more readability tests.Reading Time CalculatorEstimate how long a text takes to read or speak at any speed, and copy a “5 min read” badge.Palindrome CheckerCheck if a word, sentence or number is a palindrome and find the longest palindrome in text.Syllable CounterCount syllables per word, line and total, and check haiku 5-7-5 instantly.Text SummarizerSummarize long text into its key sentences and keywords, privately in your browser.Spell CheckerCheck spelling online: misspelled words are highlighted with suggestions you can click to fix.DictionaryLook up English word definitions with pronunciation audio, examples, synonyms and antonyms.Letter Frequency CounterCount how often each letter appears, compare with English frequencies and see top bigrams.Antonym FinderFind opposites of any word: direct antonyms, near antonyms and definitions, click to copy.British to American Spelling ConverterConvert UK spelling to US spelling and back (colour/color, organise/organize) with highlights.Homophone FinderLook up homophones like there/their/they're with definitions and examples from 400+ sets.N-Gram GeneratorGenerate word or character n-grams (1-5) with frequency counts, stopword filter and CSV export.Passive Voice CheckerHighlight passive voice in your writing, see the passive sentence %, and get active rewrites.Periodic Table Word SpellerSpell words and names with chemical element symbols and download them as element tiles.Related Words FinderFind words related to any word or topic: associations, describing adjectives and more.Synonym FinderFind synonyms grouped by relevance, filter by syllables or first letter and click to copy.Words That Start With FinderFind words that start with, end with or contain any letters, filtered by length.AI Token CounterCount GPT tokens in any text, see every token highlighted and estimate the API input cost.Elevator Pitch GeneratorBuild 10, 30 and 60-second elevator pitches with word counts and speaking time.Abbreviation FinderLook up what common abbreviations and acronyms stand for, or find the abbreviation for a phrase.Describing Words FinderEnter a noun and get adjectives that commonly describe it, sorted by how often they are used.Keyword ExtractorPull the top keywords and key phrases from any text with RAKE or TF-IDF scores.Line CounterCount total, non-empty, blank and unique lines in text or a .txt file, with line length stats.Paragraph CounterCount paragraphs in any text, with words and sentences per paragraph and the longest and shortest.Resume Keyword ScannerCompare your resume to a job description: match score, missing skills and keyword counts.Scrabble Word CheckerCheck if a word is playable, see its Scrabble score, hooks, anagrams and two-letter word meanings.Sentiment AnalyzerScore the sentiment of reviews and messages per sentence, with positive and negative words.Spelling Bee SolverEnter the 7 honeycomb letters to get every word, pangrams highlighted, points and a hint grid.Spelling PracticeType your weekly spelling words, hear each one read aloud, spell it and retry the misses.Spelling Test GeneratorTurn a word list into a spoken, auto-graded spelling test or a printable test with answer key.Transition Words FinderFind transition words by category with examples, and check the transitions in your essay.Writing Style AnalyzerHighlight hard sentences, adverbs, passive voice and complex words, with a grade level.Food Allergen CheckerPaste an ingredient list to highlight the 9 major food allergens and their hidden names.GC Content CalculatorDNA/RNA GC %, AT %, base counts, GC skew and a sliding-window GC plot from any sequence or FASTA.Google Ads Character CounterWrite responsive search ads with live 30/90/15 counters, pins, keyword insertion checks and a preview.ORF FinderFind open reading frames in all 6 frames of a DNA sequence, with positions, lengths and protein translations.Podcast Intro Script GeneratorWrite podcast intro and outro scripts in five tones, with sponsor, call to action and read time.Restriction Enzyme FinderFind cut sites for 180+ restriction enzymes in DNA, with fragment sizes, a site map and a virtual gel.SAT Vocabulary Flashcards363 high-frequency SAT words with definitions and examples: flip cards, quizzes and saved progress.Text HighlighterHighlight chosen words and phrases in several colors, count each one and copy the colored text.SMS Character CounterCount SMS characters and segments, detect GSM-7 vs Unicode and find the characters that cost extra.Social Media Character CounterCheck one post against X, Instagram, TikTok, LinkedIn, YouTube and more limits at once.
    See all 53 Text Counters & Analyzers →