The Short Answer
To compare two texts, put the old version on one side of a diff checker and the newer one opposite it. The tool lines them up and colours what's different: red for text that was taken out, green for text that was put in, and a highlight on the exact words that changed inside a line. You don't have to read both versions side by side and hope you spot the edits.
That's the theory. To see how it holds up, we ran three real comparisons through our free Diff Checker: a freelance contract with a few quiet edits, a piece of code that someone re-indented, and two Word documents, one of them full of tracked changes. Below are the steps, what each test showed, and the cases where a diff checker can mislead you if you don't know how it works.
Compare Two Texts in Four Steps
Nothing to install and no account. A laptop or a phone will do.
Step 1: Add the old and new versions
Open Diff Checker. The left box, Original, takes the older text and the right box, Modified, the newer one. Paste into each, or press Open file to load a .txt, code, .docx or .pdf file. Dragging a file onto a box works too.
Step 2: Pick a view
Side by side puts the two versions in columns, which suits a wide screen. Unified stacks the changes in one column, like git, and is what phones get by default.
Step 3: Tell it what to ignore
Under Ignore you can skip Capital letters, Blank lines and spacing, or any text matching a pattern, such as dates in a log. Leave them all off when every character counts, as in a contract.
Step 4: Step through the changes
The arrow buttons jump from one change to the next. Below the comparison, the Change report lists each edit in a sentence, and you can save it as a PDF, HTML, Markdown or .patch file.
How to Read the Result
A row of coloured counters sits above the comparison: how many lines changed, were added, were removed and moved, plus a similarity score. In the comparison itself, a line with a minus sign exists only in the original, and a line with a plus sign exists only in the new version. When a line was edited rather than replaced, the two versions sit next to each other with just the altered words shaded. Blue lines with a ↕ mark have moved, and a small note tells you the line number at the other end.
Unchanged stretches fold away into a grey bar, so a 300-line file with two edits shows you two short blocks instead of a wall of text. Untick Hide unchanged lines if you'd rather see everything.
Test 1: Two Versions of a Contract
This is the job most people bring to a diff checker. A client sends back "the agreement with a couple of small tweaks". Our test agreement had eight lines. The returned version kept the same title and wording almost everywhere, but four things had shifted, and one clause had been moved up the page so it no longer sat where you'd expect it. Here's what the report picked up:
| What changed | Report says | Why it matters |
|---|---|---|
| Clause 7 (portfolio rights) | Moved from line 8 to line 3 | Shown once, in blue, as a move. Not as a deleted clause plus a new one. |
| Clause 4 (payment) | “30” → “60” | Only the number is highlighted inside an otherwise identical sentence. |
| Clause 5 (revisions) | “two rounds” → “one round” | Two words, caught as one edit. |
| Clause 6 (notice) | “14” → “7” | A number near the end of a long line, easy to read past. |
| Clause 8 (extra fees) | Added line 9 | A new clause nobody mentioned in the email. |
The report's headline counted five differences (three changed lines, one added, one moved) and put the texts at 89.7% similar. Notice how small the edits are. Thirty days becoming sixty is one number in a short sentence. Reading both versions by eye, that's exactly the kind of change you skim past, because the sentence around it looks familiar.
The moved clause is worth a second look. A basic line-by-line diff would report clause 7 as deleted at the bottom and added near the top, and you'd spend a minute checking whether its wording had changed. Here it's marked as a move, so you know straight away the text is identical and only its position is new.
Test 2: Code That Was Only Re-indented
Our second test was a seven-line JavaScript function. In the new version, someone had switched from two-space to four-space indentation and, while they were in there, renamed qty to quantity. That rename breaks any other code that still says qty, so it's the one edit you need to find.
| Setting | Result | What you see |
|---|---|---|
| Compare exactly | 5 changed lines | Every re-indented line is flagged, and the real edit hides among them. |
| Ignore changes in spacing | 1 changed line: “qty” → “quantity” | 4 lines that differ only in spacing are counted as unchanged. |
With every space counted, five of the seven lines lit up and the report said "spacing changed" five times. Switch Spaces to Ignore changes in spacing and the noise drops away, leaving one line and one renamed variable. Use this whenever a file has been through an auto-formatter, or was copied out of an email that changed tabs into spaces. For code you're about to commit, compare once with spacing ignored to review the logic, then once exactly, so a stray tab in a Makefile or a YAML file doesn't slip through.
Test 3: Two Word Documents With Tracked Changes
For the third test we made two .docx versions of an event brief with a small table of stall owners. The second file had a tracked change still in it: "09:15" crossed out and "08:45" inserted, never accepted. Many people send documents in exactly that state.

Diff Checker read the second file as if the tracked change had been accepted. The deleted "09:15" was left out and the inserted "08:45" counted, so the arrival time showed up as a normal edit. The finishing time, 16:00 to 17:00, was caught too. Table cells came through one per line in reading order, which is why the change of coffee-stall owner appears as "Bilal" removed and "Hina" added rather than as an edited line: a line with one short word has too little in common with its replacement to be paired with it.
Word can do this comparison itself, and it keeps the formatting. The diff checker is the quicker choice when you don't have Word on the computer in front of you, when a colleague sent a PDF of one version and a .docx of the other, or when you want a short list of changes to paste into an email.
Words or Characters?
Highlight is set to Words by default, and that's right for prose and most code: a changed word is shaded as a whole, which is easier to read than a scatter of single letters. Switch to Characters when the difference is inside a word. Spelling ("organise" against "organize"), a reference number with one wrong digit, or the letter O typed where a zero belongs are all easier to spot one character at a time.
What the Similarity Score Means
The percentage counts words. It takes the words that survived untouched in each version and divides them by the total word count of both. In the contract, the original had 78 words and the new version 87. Four were taken out and thirteen put in, so 74 + 74 untouched words out of 165 gives 89.7%. Moved lines count as untouched.
Use it as a rough gauge of how heavily a text was edited. A draft that comes back at 98% had light changes; one at 40% was largely rewritten. It doesn't measure how important the changes are. Our contract scored nearly 90%, and it doubled the payment window.
Saving and Sharing the Change Report
Every comparison produces a report you can keep. Each format suits a different reader:
- PDF report: for a client or a manager who wants a record of what was agreed to change.
- HTML report: opens in any browser, with the changed blocks in colour.
- Markdown: pastes cleanly into a GitHub issue, a Jira ticket or a wiki page.
- .patch file: a standard unified diff for developers.
The .patch file follows the unified format described in the GNU diff manual, so git apply or patch -p1 can apply the same edits to a second copy of the same file. For the contract, the patch's hunk header read @@ -1,8 +1,9 @@: eight lines in the original, nine in the new version.
Is It Safe to Paste Private Text?
Diff Checker works out the comparison inside your browser tab. Neither text is sent to our server or saved after you close the page. The site itself runs analytics and ads (details in our Privacy Policy), and neither of them ever sees your text.
That matters for contracts, HR letters, unreleased code and config files that hold passwords. Some online diff tools send your text to their server to do the comparison, and a saved link can mean a saved copy. Before pasting anything sensitive into any tool, check whether it says the work happens in the browser.
One thing to know about our Share link button: it packs both texts into the address, in the part after the # sign. That part of an address isn't sent to servers when the link is opened, but anyone you send the link to can read both texts. Treat it like forwarding the documents.
Other Ways to Compare Files
In Microsoft Word
On the Review tab, choose Compare, then Compare Documents, and pick the original and revised files. Word builds a third document with the differences shown as revision marks, formatting included. Microsoft explains each option on its compare and merge support page.
With git or the command line
Developers can run git diff --no-index old.txt new.txt on any two files, even outside a repository. The git diff documentation names Myers as its default algorithm. It's the same method our checker uses to line texts up, first published by Eugene Myers in a 1986 paper in Algorithmica.
In a code editor
VS Code compares two open files if you right-click the first in the Explorer, choose Select for Compare, then right-click the second and choose Compare with Selected. It's handy when both files are already in a project.
What a Diff Checker Won't Catch
Formatting
Bold, fonts, colours and page layout aren't compared. A Word file or PDF is read as text, so a heading that was made bigger, or a table that lost its borders, won't show up. If the look of a document matters, compare it in Word as well.
Scanned pages
A scanned PDF is a picture of text, with nothing for a diff checker to read. Make it searchable first with OCR PDF, then compare. To set two PDFs against each other word by word, there's also Compare PDF.
Lines that moved and changed
The checker only calls something a move when the lines match exactly at both ends. Move a paragraph and fix a typo in it as well, and it disappears from one spot and turns up as new text in the other. Read those pairs together.
Copying in other words
A diff tells you what changed between two versions of the same text. It isn't a plagiarism checker: a paraphrased paragraph has different words, so it shows as entirely new.
Questions About Comparing Texts and Files
How can I find the differences between two texts online?
Paste the older version into the Original box of a diff checker and the newer one into Modified. Removed text turns red, added text green, and edited lines show the changed words highlighted. In VelixaKit Diff Checker a change report underneath lists every edit with its line number.
Can I compare two Word documents without Microsoft Word?
Yes. Open each .docx file in Diff Checker and it reads the paragraphs and table cells as text. In our test, a tracked change that hadn't been accepted was read as if it had: the deleted words were left out and the inserted ones counted. Formatting isn't compared.
Why does the checker flag lines I didn't change?
Usually because of spacing. Re-indenting code, or text copied from an email, changes tabs and spaces you can't see. In our test, five lines of a function were flagged for spacing alone; with Ignore changes in spacing switched on, only the one real edit was left.
What does the similarity percentage mean?
It is the share of words left untouched in both versions. Our contract test scored 89.7%: 74 of 78 words were kept in the original and 74 of 87 in the new version. It shows how much was edited, not how serious the edits are, and it isn't a plagiarism score.
Can a diff checker compare PDF files?
It can compare their text if the PDF has a text layer. A scanned PDF has none, so make it searchable with OCR PDF before comparing. For comparing two PDFs word by word in their own tool, use Compare PDF.
How long can the texts or files be?
There's no daily or monthly limit and no sign-up. Files can be up to 25 MB each. Big texts are worked out off the main page thread, so scrolling and typing stay responsive.
Should I use the side-by-side view or the unified view?
Side by side shows the old version in a left column and the new one in a right column, which is easiest on a wide screen. Unified puts both in one column, with removed lines marked minus and added lines marked plus, the way git shows changes. Phones open in unified view.
Is it safe to compare confidential documents?
With VelixaKit Diff Checker, yes: both texts are compared inside your browser and aren't uploaded or stored. Be careful with the Share link button, though. It puts both texts inside the link, so anyone you send it to can read them.
Check Before You Sign or Send
Reading two versions by eye works for a paragraph. Past that, small edits get missed, and they tend to be the ones that matter: a date, a number, a single word in a clause. A diff checker takes a few seconds and shows you every one. When you next get a document back with "just a few small changes", open Diff Checker, drop in both versions and read the report before you reply. Once you're happy with what changed, our guide on how to sign a PDF covers signing it without printing anything.
