How to compare two PDF files
A contract comes back from the other side and you need to know what changed. Reading two versions line by line is slow, and easy to get wrong. This guide shows how to compare two PDFs in your browser and get a report that highlights every added and removed word.
What the comparison does
Compare PDF reads the text of the original file and the changed file, matches them page by page and finds the differences word by word. It produces a report in which words that are only in the original are marked red and crossed out, and words that are only in the changed file are marked green. Everything that stayed the same is shown normally.
It is built for text. It compares what is written, not how the page looks, so a change of font, colour or layout is not reported, while a changed number, a deleted clause or a new sentence is.
- Find what changed in a contract draft.
- Check that a final version matches the approved one.
- Compare two editions of a manual, a policy or a report.
- Spot changes in a price list or terms and conditions.
How to compare, step by step
Open Compare PDF. The comparison runs in your browser and nothing is uploaded.
- Drop the two PDFs into the box: the original first, the changed one second. The tool needs exactly two files.
- Choose whether to ignore upper and lower case and whether to ignore punctuation.
- Click Compare PDFs.
- Read the summary, then download the report, a web page named pdf-comparison.html.
Reading the report
The report starts with a summary: how many words were added, how many were removed and how many stayed unchanged, and how many pages have differences. Below it, each page with changes is shown with the differences marked. Red means the text was only in the original, green means it is new in the changed file. Pages with no changes are listed as having no differences.
If the two files have a different number of pages, the report says so. Very long pages are not compared word by word, because it would take too long, and the report notes this for those pages.
Ignore case and punctuation
Two options reduce noise. “Ignore upper / lower case” treats “Agreement” and “agreement” as the same word, which is useful when a heading style changed. “Ignore punctuation” skips commas, full stops and quotation marks, so that a document that only changed its quotation style does not light up. Use them when you care about content, and leave them off for legal texts where a comma can change the meaning.
Scanned documents
The comparison needs real text. A scan is a picture, so there is nothing to compare, and the report will say that there are no differences, or no text. Run OCR PDF on both files first, and compare the searchable versions. Remember that OCR is not perfect, so a few differences may come from reading errors rather than real changes.
Limits to keep in mind
Because only the text is compared, changes in pictures, tables drawn as graphics, signatures and layout are not found. Moved paragraphs show as one removal and one addition. Always read important documents yourself, and use the report as a guide to where to look, not as a legal guarantee.
The files should be versions of the same document. Comparing two unrelated files simply shows everything as changed.
Privacy
Both documents are read on your device and the report is created there too. Nothing is uploaded, which matters for contracts and negotiations. If the files are protected by a password, use Unlock PDF first, and afterwards you can protect your own copy again with Protect PDF.