Compare PDF
Compare PDF is a free browser tool that compares the text of two PDFs and lists the lines that were added or removed, with their pages.
Compare the text of two PDFs and see which lines were added or removed, with the page of each. It runs in your browser, so neither file is uploaded.
Also searched as: compare two pdfs · pdf diff · find differences in pdf · pdf comparison
Loading the tool…
How to use it
- 1
Add both PDFs
Choose the older file as the original and the newer one as the changed version.
- 2
Compare
Press Compare PDFs.
- 3
Read the differences
Removed lines are in red and added lines in green. Copy the list if you need it.
Questions about Compare PDF
What does it compare?
The text, line by line. Differences in spacing are ignored, but pictures, colours and layout are not compared.
Can it compare scanned PDFs?
Not directly, because a scan has no text. Run each file through OCR PDF first, then compare the results.
Are my files uploaded?
No. Both files are read in your browser.
Why is a changed line shown as removed and added?
The tool matches whole lines. A line that changed is shown as the old line removed and the new line added.
Is there a size limit?
If the two files differ in a very large number of lines, the comparison is refused to protect your browser. Cut each file into smaller parts first and compare those.
How the comparison works
The text of each file is read line by line. The two lists of lines are then lined up, and every line that is in only one of them is shown: removed if it was in the original and not in the changed file, added if it is new. Differences in spacing are ignored. A line that was edited appears twice, once as removed and once as added.
The table runs a small example through the same comparison. The original has three lines and the changed file has four.
| Line | Result |
|---|---|
| Total: 100 | Removed (red) |
| Total: 120 | Added (green) |
| Due: 1 May | Unchanged |
| Thank you | Unchanged |
| Paid in full | Added (green) |
What it does not compare
Only text is compared. A changed picture, a new colour or a different layout is not shown as a difference. A scanned PDF has no text to compare; make each one searchable with OCR PDF first.
If the two files are so different that comparing them line by line would be too much for a browser, the tool says so, and you can compare smaller parts.