A supplier sends back "the agreed contract, signed". A policy is reissued with "minor updates". A price list arrives as version 3 and you only ever read version 2. In each case you need to know exactly what changed, and reading two PDFs side by side is the least reliable way to find out. The eye skips over a changed digit, a removed "not" or a clause that moved to the next page.
This guide explains how PDF comparison works under the hood, how to run a text comparison in your browser, how to choose between word, line and character modes, and where comparison tools have genuine blind spots that you should cover by other means.
How PDF comparison works
A PDF does not store paragraphs the way a word processor does. It stores positioned pieces of text: this run of characters at these coordinates, in this font. To compare two PDFs, a tool first extracts the text of each page in reading order, then runs a diff algorithm over the two text streams.
A diff algorithm looks for the longest sequences the two versions have in common and reports everything else as insertions or deletions. The result is the familiar "tracked changes" view: removed text in red with a line through it, added text in green.
Two consequences follow from this design:
- Only text is compared. A swapped logo, a recoloured table or a moved signature line with identical text shows no difference.
- Comparison is aligned by page. Page 1 of version A is compared with page 1 of version B. If a paragraph was inserted on page 2, later text shifts, and subsequent pages may look changed even though their words are identical. The first highlighted change tells you where the real edit happened.
Compare two PDFs in your browser
Our Compare PDF tool extracts and compares the text locally, so confidential drafts are not uploaded.
- Open Compare PDF. Drop the original into the File A box and the revised version into the File B box.
- Wait while both files' text is extracted; a progress bar shows the status.
- Choose the comparison level: Words, Lines or Characters.
- Switch on Ignore case or Ignore extra spaces if formatting noise is cluttering the result, and Only pages with changes to hide identical pages in long documents.
- Read the summary tiles, Pages (A / B) and Pages with changes, plus the counts of added and removed items.
- Work through each page block. Each is labelled Changed, No changes, Only in A or Only in B. Green text was added in B; red struck-through text was removed from A.
Always put the older file in A. Swapping them does not break anything, but additions and deletions are reversed, which is confusing when you report back.
Choosing the right comparison mode
| Mode | Best for | Example of what it catches |
|---|---|---|
| Words | Contracts, letters, reports | "within 30 days" became "within 60 days" |
| Lines | Lists, schedules, code, text-based tables | A row was added to a list of deliverables |
| Characters | IDs, account numbers, names, prices | IBAN changed by one digit; "Smyth" became "Smith" |
Start with Words. If a paragraph is reported as heavily changed but you suspect only punctuation moved, try Characters on that page to see the precise edit. Use Lines when the document is essentially a list and you want each changed entry to stand out as a unit.
Other ways to compare PDFs
Microsoft Word's Compare feature
Word can open a PDF and convert it to an editable document, and its Review → Compare feature produces a proper redline between two documents. For documents that were originally created in Word, comparing the source files is the gold standard; ask the other party for the .docx if you can. Converting both PDFs to Word first also works, but conversion can introduce its own layout noise that shows up as false changes.
Paid PDF editors
Professional PDF suites include a compare function that can also detect visual changes to images and layout. If you regularly need to verify artwork, packaging or drawings, not just text, that capability is worth paying for.
Command line
On systems with the Poppler utilities, you can extract text and compare it with any diff tool:
pdftotext -layout old.pdf old.txt
pdftotext -layout new.pdf new.txt
diff old.txt new.txt
This is scriptable and fast, but reading raw diff output is harder than a highlighted page view.
Plain text comparison
If you already have the text of both versions, for example copied from an email, a general Text Diff tool gives an instant side-by-side comparison. PDF to Text can extract a PDF's text for that purpose.
Blind spots and how to cover them
Scanned documents
A scanned PDF is a picture with no text layer, so there is nothing to extract. The tool will tell you when a file has no selectable text. You need a version with OCR text before any text comparison can work, and OCR errors will appear as differences, so treat those results with care.
Layout and formatting changes
Bold, italics, font size, colour, spacing and images are not compared. If formatting carries meaning, such as a struck-through clause in the original that was meant to be deleted, review those pages visually as well. Opening both files in a PDF Reader in two windows makes a visual pass quicker.
Reflowed text
When a paragraph is rewritten, line breaks move. In Words mode with Ignore extra spaces on, most reflow noise disappears. If one version was exported with hyphenated line breaks, you may still see split words reported as changes.
Headers, footers and page numbers
Running headers and "Page 3 of 10" footers are text, so a change in the total page count shows up as a difference on every page. Recognise it and move on.
Tables
Text extraction reads tables row by row or column by column depending on how the PDF was built. Changed cells are still detected, but their context may look jumbled. Switch to Lines mode, which often keeps each row together.
A reliable review routine
For anything you are about to sign, a short routine catches most problems:
- Compare in Words mode with Only pages with changes switched on.
- Note every change and check it against what was agreed.
- Re-run suspicious pages in Characters mode, especially anything containing figures, dates, names or bank details.
- Do a quick visual scan of signature pages, schedules and any page with images or stamps.
- Keep both files. If a dispute arises, the original versions matter more than your notes.
Frequently asked questions
Can I compare two PDFs for free without uploading them?
Yes. A browser-based comparison like ours extracts and compares the text on your device, so neither file leaves your computer.
Does PDF comparison detect changes in images or formatting?
Not in a text comparison. It compares extracted words only, so image, colour, font and position changes without a text change are not reported.
Why does every page after page 2 show changes?
Text inserted early in the document pushes content onto later pages. Because pages are compared one to one, the shift looks like changes on each following page. The first highlighted edit is the real one.
Can I compare scanned PDFs?
Only if they contain an OCR text layer. Pure scans have no text to compare.
Which is better, comparing PDFs or comparing the Word files?
If both sides have the original Word documents, comparing those gives the cleanest redline. Comparing PDFs is the right choice when the PDF is the version that was actually sent or signed.