How to compare two versions of a PDF
Published on · PDF4US Team
Add the old and the new version of a document and get a report listing the lines added and removed on each page. Both files are processed in your browser.
How to do it, step by step
- Add the old version first. Order matters: the first file is treated as the previous version and the second as the new one, so the report knows what was added and what was removed.
- Add the new version. The tool needs exactly two PDFs. The process button becomes available once both are loaded.
- Run the comparison. The text of every page is extracted from both documents and compared line by line, page against page.
- Read the summary and download the report. You see how many pages have text differences. The full report downloads as a .txt file with a "-comparison" suffix.
Benefits
Private contract reviews
Comparing two drafts of a contract or proposal usually means handling confidential documents. Here, neither file leaves your device.
A report you can keep
The output is a plain text file you can archive, attach to an email or open in any editor.
Whitespace noise filtered out
Repeated spaces and empty lines are normalized before comparing, so a minor layout shift does not show up as new text.
No account, no cost
Local tools are free and need no sign-up.
How to read the report
The downloaded file starts with the names of both documents: the old version marked with "---" and the new one with "+++". After that comes one block for each page with differences, headed by its page number and status.
Inside each block, lines starting with "-" were in the old version and are gone; lines starting with "+" are new. Unchanged pages are left out. If both documents contain the same text, the report says so in a single line.
- changed: the page exists in both versions and its text differs.
- added: the page only exists in the new version.
- removed: the page only exists in the old version.
Common use cases
Comparing PDF files is handy for checking what the other side changed in a returned contract, confirming that a new edition of a manual includes the requested fixes, or verifying that the final version of a report matches the approved one.
Because it compares text, it works best with digitally created documents, such as ones exported from a word processor. If one of the versions is a scan, run OCR on it first to give it a text layer.
Privacy: what leaves your browser
Both PDFs are read in your browser memory; nothing is uploaded to a server.
The difference report is generated on your device and downloads directly.
The site's security policy blocks the page from sending data to other origins.
Limits worth knowing
- It compares text, not visual appearance. The first file is the previous version and the second is the new one.
- Exactly two files per comparison.
- Pages are matched by position: page 3 of one file against page 3 of the other. If a page was inserted or deleted, the following pages show up as changed.
- A scanned PDF has no selectable text, so there is nothing to compare: run OCR on it first.
- Changes to formatting, color, images or position without a text change are not detected.
Frequently asked questions
In what order should I add the files?
The old version first, then the new one. If you swap them, additions show up as removals and vice versa.
Does it detect changes to images or layout?
No. It only compares the text extracted from each page. A change in color, font or an image does not appear in the report.
Why do many pages show as changed when I only added one?
Each page is compared with the page in the same position in the other file. Inserting a page shifts all the following ones, so they get compared with different pages.
Can I compare a scanned PDF?
Not directly, because a scan is an image with no text. Run the document through the OCR tool first and compare the result.
What format is the result?
A plain text (.txt) file with one block per changed page and lines marked with "-" or "+".
Are my documents uploaded anywhere?
No. Both files are processed in your browser memory and the report is created on your device.