Browser-based document tool · your documents are never uploaded

Document Similarity Checker

Compare two or more of your own documents (pasted text, TXT, Markdown, DOCX or PDF) and see which passages they share. This tool does not search the web or any database of published work; it only compares the files you give it with each other.

It answers "how much of document A also appears in document B?" for documents you supply, such as drafts, versions or a student's submissions to each other. It cannot tell you whether text exists anywhere else.

Documents (3 of 12)

81 words
80 words
40 words

Settings

Smaller finds looser overlap and more coincidences.

Fingerprints catch any shared run of 8+ words.

Similarity matrix

Select a cell to see the matching passages.

Draft ADraft BUnrelated
Draft A—
Draft B—
Unrelated—

Draft A vs Draft B

33 shared 5-word shingles · 42.9% of Draft A appears in Draft B, 43.4% the other way

Draft A · 39 matched words

Climate adaptation planning starts with an honest inventory of local risks. Coastal towns face flooding, inland towns face heat and drought, and most face both in different seasons. A good plan names the assets at risk, estimates the cost of doing nothing, and ranks responses by cost and by how many residents they protect. The council should publish its assumptions so that neighbours can challenge them. Our own survey found that three in four residents had never seen the flood maps.

Draft B · 39 matched words

Chapter two: a town that wants to prepare must begin with an honest inventory of local risks. Coastal towns face flooding, inland towns face heat and drought, and most face both in different seasons. The authors argue that a plan names the assets at risk first. Separately, budgets are a political choice, and the cheapest option is rarely the most just one. Our own survey found that three in four residents had never seen the flood maps, which surprised nobody.

Longest shared passages

  1. 24 words: with an honest inventory of local risks. Coastal towns face flooding, inland towns face heat and drought, and most face both in different seasons
  2. 15 words: Our own survey found that three in four residents had never seen the flood maps

Document Similarity Checker

Operator: Abdulla Al Fahad. How tools are built and checked

Sometimes the question is not whether text exists somewhere on the internet but how much of one document you hold is also in another you hold. A second draft against the first. A contractor's report against the template they were given. A batch of essays against each other. This tool answers that question for documents you supply, and it says plainly what it cannot do: it does not search the web, a publication database or any archive of student work, so it cannot tell you whether a passage was copied from somewhere else.

Unlike the Text Compare tool, which marks word-by-word edits between two versions of one text, this one finds shared passages across two or more different documents and scores each pair. Add two or more documents by pasting text or opening TXT, Markdown, DOCX or PDF files. Each pair gets similarity figures in a matrix, and selecting a pair shows both texts side by side with the shared passages highlighted, plus a list of the longest matches. You choose how strict the comparison is, and can ignore quoted text and very short matches so that a shared quotation or a common phrase does not inflate the score.

Key features

  • Two to twelve documents from pasted text, .txt, .md, .docx and text-based .pdf files
  • Word shingles of 3 to 10 words (default 5), with Jaccard similarity and containment in each direction
  • Winnowing fingerprints, which catch any shared run of at least n plus w minus one words with a much smaller fingerprint
  • Pairwise matrix you can switch between Jaccard, containment and winnowing, and download as CSV
  • Side-by-side highlighting of matching passages and a list of the longest ones, with word counts
  • Options to ignore quoted text and to ignore matches shorter than a chosen number of words

Shingles, containment and winnowing, and what this cannot do

Every document is reduced to a list of words: runs of letters and digits in any alphabet, with apostrophes inside a word kept, compared in lower case. Punctuation, line breaks and extra spaces do not matter, so a paragraph re-flowed in a different editor still matches. Numbers count as words. A shingle is a window of n consecutive words, hashed to a number; a document of w words has w − n + 1 of them, and a document shorter than n words has none and scores zero against everything.

Jaccard similarity is the number of shingles two documents share divided by the number in either, so it is high only when both documents are mostly the same. Containment is the number shared divided by the number in one document, so it answers a different question: the share of document A found in B can be 90% even if B is ten times longer. The matrix lets you read either, and the pair summary prints both directions.

Winnowing keeps one hash from every window of w shingles, the smallest, taking the rightmost on ties, and compares those fingerprints instead of all the shingles. With a shingle size of 5 and a window of 4, any shared passage of at least 8 words is guaranteed to share at least one fingerprint, and the fingerprint set is a fraction of the size. It suits long documents and the figure is shown as its own matrix option.

File reading is shared with the other document tools here: text and Markdown up to 10 MB, DOCX up to 25 MB and PDF up to 50 MB, with PDF text taken from its text layer only. A scanned PDF with no text layer yields nothing, and the page warns about pages with no text because there is no OCR. Older .doc files are refused with advice to save as .docx. Each document can have up to 400,000 words.

Ignoring quoted text blanks out text between straight double quotes, curly double quotes, guillemets and German low-high quotes, and lines that begin with >, before the words are counted; the blanked passages appear struck through in the highlighted view. Single quotes are not treated as quotations because an apostrophe is indistinguishable from one. Ignoring short matches removes any highlighted run shorter than the number you choose, which is how you stop a stock phrase of six words from being reported as a copied passage.

How it works

Each document is prepared once: words, hashes, shingle set and fingerprint set. A pair is scored by counting shared hashes. To find passages, every word of A that begins a shingle also present in B is marked as matched, and the marks are merged into runs; the same is done for B against A. Runs shorter than your minimum are dropped, and each remaining run in A is paired with the first place its opening shingle appears in B.

Settings take effect about a third of a second after you stop typing or moving a slider. Everything runs in this tab; the documents are not sent to a server or compared with anything outside the files you added.

When to run it

  • Checking how much of a revised grant proposal was carried over unchanged from last year's version
  • Comparing a supplier's quotation text against the template you issued, to see which clauses were rewritten
  • Looking for shared paragraphs across a stack of submissions that were all written from the same briefing
  • Confirming that two versions of a policy differ only where you expected

Running a check

  1. Add documents: Add files for TXT, MD, DOCX or PDF, or Add pasted text and paste into the box. Load example shows three sample texts.
  2. Name each document so the matrix is readable.
  3. Adjust the shingle size, winnowing window and minimum match length, and tick Ignore quoted text if quotations should not count.
  4. Read the matrix, choosing Jaccard, containment or winnowing, and click a cell to select a pair.
  5. Read the highlighted passages in both documents and the list of the longest shared ones.

Example

Draft A (81 words) against Draft B (80 words), shingle size 5, minimum match 8

A: "...starts with an honest inventory of local risks. Coastal towns face flooding, inland towns face heat and drought, and most face both in different seasons..."
B: "...must begin with an honest inventory of local risks. Coastal towns face flooding, inland towns face heat and drought, and most face both in different seasons..."
The closing survey sentence is also identical.
Third document: a lentil soup recipe.

Result

A vs B   Jaccard 27.5%   winnowing 22.7%
         42.9% of A appears in B, 43.4% of B in A
         33 shared shingles, 39 matched words in each
Longest passage: 24 words ("with an honest inventory ... different seasons")
Second passage: 15 words ("Our own survey found ... the flood maps")
A vs soup recipe   0.0%

Tips for best results

  • Use containment when documents differ a lot in length, such as a short abstract against a full report; Jaccard will look small even when the short one is entirely copied.
  • Raise the shingle size to 7 or 8 to ignore common phrases, and lower it to 3 or 4 to catch lightly reworded text, accepting more coincidental matches.
  • Tick Ignore quoted text when documents quote the same source on purpose, so the score reflects the authors' own wording.
  • Compare the same pair with different minimum match lengths. A score that collapses at 20 words was made of short overlaps; one that barely moves contains long copied passages.
  • For PDFs, check the word count under each document after loading. A figure near zero means the file is a scan.

Limits

Paraphrase, translation and reordered sentences with no run of n matching words are invisible to this method. A low score does not prove that text was not borrowed.

A high score is not proof of copying. Boilerplate, legal clauses, bibliographies and shared source material produce legitimate overlap.

Text extracted from PDF can be broken by columns, headers and hyphenation, which lowers the match against the same text in a DOCX or pasted version.

The matrix compares only what you added. It cannot find overlap with anything else, and it does not claim to be a plagiarism detector.

Common errors and how to fix them

"is an older .doc file or a password-protected Word file"
Open it in Word, remove any password, save as .docx and add that copy.
"has more than 400,000 words"
Split the document into parts and compare each part, or paste the sections you care about.
"pages have no text layer"
The PDF contains page images rather than text. Run it through an OCR tool and add the result, or paste the text.
The matrix shows 0.0% for similar-looking documents
Lower the shingle size, or check that the documents are long enough: anything shorter than the shingle size has no shingles to compare.

Best practices

  • Decide your settings before you look at the scores, and keep them the same across every pair you compare.
  • Read the highlighted passages, not just the numbers; a score is a prompt to look, not a verdict.
  • Say what the tool compared when you report a result: the documents in the set, the shingle size and the minimum match length.

Reading the three measures

Jaccard answers how alike the two documents are as wholes. Containment answers how much of one is inside the other, which is usually the question when one document might be built from another. Winnowing is a sampled version of the same overlap that scales to long texts; each fingerprint stands for a whole window of shingles, so its percentage will not equal the Jaccard figure (22.7 against 27.5 in the example above) and it is best read for ranking pairs rather than as a precise share.

When pairs are ranked, the order is usually the same under all three measures. If they disagree, trust the highlighted passages: they are the underlying evidence that the other numbers summarise.

Frequently asked questions

Does this check my text against the internet?

No. It compares only the documents you add here with each other. It has no web search and no database of published work.

Can it compare a DOCX with a PDF?

Yes. Every format is reduced to plain words first. PDF text extraction can split lines in columns and headers, which lowers the match against the same text in another format.

What shingle size should I use?

Five words is a reasonable start for prose. Use 3 or 4 for short texts or light rewording, and 7 or more when common phrases cause noise.

Why does the highlighted text sometimes start in the middle of a sentence?

A match is a run of words, not a sentence. The run begins at the first word of the first matching shingle and ends at the last word of the last one.