WrittenCheck

Free Diff Checker

Compare two texts and see exactly what changed. Paste or open two versions to find every added, removed and moved word, side by side or inline, then copy across the changes you want to keep.

  • Free, no sign-up
  • Words, characters or lines
  • Finds moved text
  • Text never leaves your device

Or drop it here

Empty

Or drop it here

Empty
Compare by
No differences

Add two versions of a text above. Every added, removed and moved word shows up here.

Nothing you paste or open is sent anywhere.

More free writing tools

What is a diff checker?

A diff checker compares two versions of a text and shows exactly what changed between them. It lines the versions up, keeps the parts they share, and marks everything that was removed, added or moved. Instead of reading two drafts side by side and hoping you spot the edits, you see each one highlighted, with a count of how much changed.

The name comes from "difference". Programmers have used diff tools for decades to review code, and the same idea works for any text: contracts, essays, translations, product descriptions, policies, subtitles or two answers from a chatbot.

How to compare two texts online

  1. Add the original. Paste or type the older version into the Original text box, or open a Word, PDF or text file.
  2. Add the changed version. Paste the newer version into the Changed text box. The comparison runs as soon as both boxes have text.
  3. Choose how to compare. Words suits most writing, Characters suits codes, numbers and spelling, and Lines suits code and lists. Turn on Ignore case, Ignore spacing or Join wrapped lines if formatting is hiding the real edits.
  4. Read the differences. Removed text is red and struck through, added text is green, and moved text is purple. The arrows above the result jump from one difference to the next.
  5. Merge and save. Copy any change across with the small arrow buttons, then copy the summary, download a .diff file or save a PDF report.

Words, characters or lines: which should you use?

All three options line up the two texts in the same way. They differ in how closely they look inside a changed line.

Compare byWhat it marksBest for
WordsWhole words that changed inside a lineEssays, articles, emails, contracts and most writing
CharactersSingle letters, digits and marksOrder numbers, prices, dates, spelling fixes and short codes
LinesWhole lines, without looking inside themCode, lists, spreadsheets saved as CSV and log files

For example, "Order ABC-1042 shipped" against "Order ABC-1043 shipped" is one changed word by words, so the similarity is 66.7%. By characters, only the final digit is marked and the similarity is 95%.

How to read the result

The summary at the top tells you how big the change is. The table underneath shows where it is.

  • Red, struck through: text that is in the original but not in the changed version.
  • Green: text that is new in the changed version.
  • Purple: text that was moved. It was removed in one place and added, word for word, somewhere else, so it isn't counted as removed or added.
  • Line numbers on each side match the lines in your boxes, so you can find a change in the original file.
  • Differences are groups of changed lines that sit together. "3 differences" means three separate places where the texts part ways.

Side by side shows the two versions in two columns, like a printed redline. Inline shows one column, with removed and added words next to each other in reading order, which is easier on a phone. Only show changes hides long runs of matching lines and leaves three lines of context around each change; click a fold to open it.

What the similarity percentage means

The similarity percentage is the share of words that both versions have in common. Moved text counts as shared, because the words are still there. 100% means the texts match under your settings. The checker never shows 100% when there is a difference, so a tiny edit in a long text reads 99.9%.

In word mode the count uses words; in character mode it uses characters, leaving out spaces. That's why the same edit can score differently in each mode. Similarity tells you how much of the wording survived, not whether the meaning changed: swapping "must" for "may" is one word, but it can change a whole clause.

Getting a clean comparison

Sometimes a comparison lights up almost everything, even though only a few words changed. The cause is nearly always formatting rather than wording.

What you seeWhy it happensWhat to turn on
Every line of a paragraph is marked as changedThe text was wrapped at a different width, often after copying from a PDF or an emailJoin wrapped lines
Changes you can't seeExtra spaces, tabs or blank linesIgnore spacing
Headings or names marked as changedOnly the capital letters differIgnore case
Small grey labels such as ZWSP inside a changeHidden characters, such as zero-width spaces, which some editors and AI chat tools leave in textNothing: they are real differences. Our text cleaner removes them
A paragraph marked as removed and added againIt moved and changed a little on the wayCompare by words; moved text of four words or more is found even inside edited paragraphs

With these settings, a re-wrapped refund policy we tested went from one difference across three lines to no differences at all, because only the line breaks had changed.

Compare two Word documents or PDF files

Use Open on each side to load a .docx, .pdf, .odt, .rtf, .html or plain text file. The file is read in your browser and only its text is compared, so fonts, tracked changes, comments and images are left out. You can also drop a file onto a box, or drop two files at once to fill both boxes.

PDF text arrives with a line break at the end of every printed line, so the checker turns on Join wrapped lines for you when you open a PDF. Scanned PDFs that are only pictures of pages have no text to compare.

Merge changes and save the comparison

Each difference has two arrow buttons. The right arrow copies the original's version of that part into the changed text, and the left arrow copies the changed version back into the original. Undo takes back up to 50 merges. Typing in either box clears the undo history.

  • Copy differences copies a plain summary: the counts, then every difference with removed words in [- -] and added words in {+ +}.
  • .diff file downloads a unified diff of the exact texts, the standard format that code review and patch tools read.
  • PDF report opens your browser's print window with a coloured report of every difference, ready to save as a PDF and send to someone who doesn't have the files.

How to read a unified diff

A unified diff is plain text, so it's easy to email or attach to a ticket. Here is the start of one:

--- original.txt
+++ changed.txt
@@ -1,3 +1,3 @@
 one
-two
+2
 three

The first two lines name the old and new file. The @@ line says this group starts at line 1 and covers 3 lines in each version. A line that starts with a space is unchanged, a minus sign marks a removed line, and a plus sign marks an added line. The .diff file always compares the exact texts, line by line, even when Ignore case or Ignore spacing is on, so patch tools can apply it.

Real results from the checker

We ran these pairs of texts through the diff checker. The sample letter is the one behind Try a sample.

TextsSettingResult
Interview letter: new date and time, reworded opening, two sentences swapped, new sign-offWords3 differences, 6 words added, 8 removed, 14 words moved in 2 blocks, 86.5% similar
Same letterLines3 differences, whole lines marked, 7.7% similar
Contract clause: "shall" to "must", 30 to 14 days, 60 to 30 days, "by bank transfer" addedWords1 difference, 6 words added, 3 removed, 80% similar
Refund policy re-wrapped at a different widthWords1 difference across 3 lines, 87.1% similar
Same refund policyJoin wrapped linesNo differences, 100%
"Order ABC-1042 shipped" and "Order ABC-1043 shipped"Characters1 character changed, 95% similar
"Terms and Conditions apply." in lower caseIgnore caseNo differences, 100%

The letter shows why moved text matters. Without it, the swapped sentences would count as 14 words removed and 14 added, and the similarity would drop sharply even though nothing was rewritten.

What people use a diff checker for

  • Editing and proofreading: see what an editor, a colleague or a grammar tool changed before you accept it.
  • Contracts and policies: catch a changed number, date or "may" that became "must" between two drafts.
  • Students and teachers: compare a first draft with the final essay, or check how much a rewrite changed.
  • AI rewrites: see exactly which words a paraphrasing or rewriting tool changed, and how similar the result still is.
  • Translation and subtitles: spot lines that changed in the source so only those need translating again.
  • Code, settings and data: compare two versions of a config file, a CSV export or a log, line by line with the code font on.
  • Websites: check what changed in a page's text, a product description or a policy between two dates.

Diff checking and AI writing

A diff shows what changed, not who or what wrote it. If you want to know whether a text was written by AI, use our AI detector. If you have the original and an AI-edited version, the diff checker shows how much of your own wording is left. Many rewriting tools swap words for synonyms and reorder clauses, so a low similarity can still hide the same ideas.

How the checker works

The checker first lines up the two texts row by row. In long texts, lines that appear exactly once in both versions are used as fixed points. The rest is matched with the classic shortest-edit-script method described by Eugene Myers in 1986, which finds the smallest set of removals and additions. Changed lines that sit together are then paired by how many words they share, so an edited line sits opposite its new version instead of being listed as one line removed and another added.

Inside each pair it compares word by word (or character by character), then tidies up the result: a stray space or comma between two changes is folded into one change so the edit reads naturally. Last, it looks for runs of four or more words that were removed in one place and added in another, and marks them as moved. Words are found with your browser's own word breaker, so Chinese, Japanese and Thai, which don't put spaces between words, are compared properly too. Arabic, Urdu and other right-to-left scripts display in their own direction.

Your text stays private

The diff checker runs entirely in your browser. Your texts and files are not uploaded, sent or saved anywhere. Once the page has loaded, comparing pasted text keeps working even without an internet connection. Only your settings, such as the compare mode and layout, are kept, in your own browser.

Common questions

How do I compare two texts for differences?

Paste the original into the left box and the changed version into the right box. The differences appear straight away below: removed words in red, added words in green and moved words in purple. Use the arrows to jump between them.

Is this diff checker free?

Yes. It's free with no sign-up and no daily limit. Each box takes up to 1 million characters.

Can I compare two Word documents or PDFs?

Yes. Click Open on each side and pick a .docx, .pdf, .odt, .rtf or text file. The text is read in your browser and compared; formatting, images and comments are left out. Scanned PDFs without real text can't be compared.

Does it find text that was moved?

Yes. A run of four or more words that was removed in one place and added unchanged in another is marked in purple as moved, so it doesn't count as a removal and an addition. Whole lines that moved are found too.

What does the similarity percentage mean?

It's the share of words both texts have in common, counting moved text as shared. 100% means no differences under your settings. In character mode it uses characters instead of words.

Can I ignore spaces, line breaks and capital letters?

Yes. Ignore spacing treats any run of spaces or tabs as one space and skips blank lines. Join wrapped lines compares paragraphs instead of lines, which helps with text copied from PDFs. Ignore case treats capital and small letters as the same.

What is the difference between side by side and inline?

Side by side shows the original and the changed text in two columns, row by row. Inline shows one column with removed and added words next to each other, which suits small screens and short edits.

Can I merge the two texts?

Yes. Each difference has two arrow buttons: one copies the original's version into the changed text, the other copies the changed version back into the original. Undo takes back the last 50 merges.

Can I compare code?

Yes. Compare by lines or words and turn on Code font for even columns. The .diff file is a standard unified diff that code review and patch tools can read.

Does it work in other languages?

Yes. It compares any language your browser can show, including Chinese, Japanese and Thai, which are split into words with the browser's word breaker, and right-to-left scripts such as Arabic and Urdu.

Why does it show changes I can't see?

The texts differ in something invisible: extra spaces, tabs, a different line break or a hidden character such as a zero-width space. Changed spaces show as dots and hidden characters as small labels. Turn on Ignore spacing if spaces don't matter to you.

Is my text saved or uploaded?

No. Everything runs in your browser and nothing is sent anywhere. Only your settings are kept, in your own browser.

Sources

  • Myers, E. W. (1986). An O(ND) difference algorithm and its variations. Algorithmica, 1(2), 251-266.
  • Hunt, J. W., and McIlroy, M. D. (1976). An algorithm for differential file comparison. Bell Laboratories Computing Science Technical Report 41.
  • Free Software Foundation. Comparing and Merging Files (GNU diffutils manual), section on the unified format.
  • Unicode Consortium. Unicode Standard Annex #29: Unicode Text Segmentation (word boundaries).

Last updated 11 November 2026.