To compare two PDFs, you need to see what has changed between the two versions without reading every page side by side. Choose your original and your new version, and this tool will compare two PDFs line by line. It then lists exactly which lines of text were removed and which were added, along with a count of each. The whole comparison takes place in your browser, so contracts, reports and other private documents never leave your device, and there's nothing to install.
How to compare two PDFs
- Choose your two files. Select the original first, and then the new version.
- Swap them if they went in the wrong way around.
- Decide about spacing and capitals. Extra spaces are ignored unless you change that.
- Press Compare PDFs, and wait while the pages are read.
- Read the changes. Lines marked − were removed, and lines marked + were added.
How the comparison works
A PDF stores text as content streams that describe what is drawn on each page, so the tool first reads each page and rebuilds the lines of text. It then compares the two lists of lines. A program known as diff is the classic way of doing this. It compares the content of files and reports the differences, based on solving what's called the longest common subsequence problem. In plain terms, it finds the largest set of lines that appear in the same order in both documents. Anything that isn't part of that shared set is shown as removed or added.
A worked example
Suppose that a supplier sends you an updated contract. The first version says “Payment is due within 30 days”, and the new one says “Payment is due within 45 days”. You choose the original file, then the new one, and press Compare PDFs. The result shows that one line was removed, with the 30-day wording, and that one line was added, with the 45-day wording. Without a comparison, a change as small as that is very easy to miss on a long page.
What this tool can and can't compare
| Compared | Not compared |
|---|---|
| Words and numbers in the text | Pictures and charts |
| Added, removed or changed lines | Fonts, colors and layout |
| Text in tables, line by line | Scanned pages with no real text |
A scanned document is really a picture of a page, so it has no text to read. You'll see a message if one of your files has none. If you only need to compare typed text, the Diff Checker linked below works on anything you can paste.
Why do I see changes that aren't real?
The text in a PDF is positioned on the page, and it isn't stored as flowing paragraphs. When a document is re-exported, line breaks can fall in different places even though the words are the same. If one extra word pushes the rest of a paragraph along, then every following line in that paragraph may be reported as changed. Keeping “Ignore extra spaces” turned on removes some of this noise. When you see a block of changes, read it carefully to find the words that really moved.
When to compare PDFs
- Contracts: find out exactly what the other side has changed.
- Reports: check what's new in an updated draft.
- Policies and terms: see what has changed since the last version.
- Coursework: review an editor's changes.
- Price lists: spot the numbers that have moved.
A careful approach to legal documents
A comparison tool is a great help, but it isn't a substitute for reading an important document. It won't flag a change in a picture of a signature page, or a clause that has been moved to a place where it means something different. Use the list to focus your attention, and then read the changed sections in context. For significant agreements, ask a qualified professional to review them.
Privacy and limits
Your files are processed on your own device, and they're never uploaded. Each file can be up to 200 MB, and the first 300 pages of each are compared. Up to 2,000 changed lines are shown. Password-protected files need to be unlocked first.
Tips for a cleaner comparison
Compare files that were produced in the same way wherever you can, as exporting from different programs can change how lines are broken. Remove any cover pages or stamps that you know are different, because they'll simply add noise to the results. If you only care about the wording, leave capital letters and extra spaces out of the comparison, and work through the list from top to bottom.
Common mistakes
- Choosing files in the wrong order. Use Swap to fix it.
- Comparing scans. They contain no text to read.
- Trusting only the count. Read the lines that have changed.
Related PDF tools
Compare pasted text with the diff checker, pull out the words with the PDF to text converter, and make corrections with the PDF editor.
What next
Use this often? Add Compare Two to your Home screen.
Frequently asked questions
How can I compare two PDFs?
Choose the two files and press Compare PDFs. The tool lists the lines of text that were added or removed.
Are my PDFs uploaded?
No. The comparison happens in your browser, and your files stay on your device.
Does it compare images?
No. It only compares text, so pictures, colors and layout aren't checked.
Can it compare scanned PDFs?
Not unless they contain real text. A scan is a picture of a page.
Why are unchanged lines sometimes shown?
Line breaks can move when a PDF is re-exported, so a line may look different even if the words are the same.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.