About PDF Compare
Two versions of a contract, report or specification are often compared by eye, one scroll at a time. A text diff does the mechanical part instead: extract the text from both files, align the lines and mark what was added, removed or left unchanged.
This tool extracts the text layer of each page from both PDFs, normalises whitespace and compares the lines page by page. It reports the counts and a similarity percentage computed only from the compared lines, shows a unified diff per page and lets you download the result as a text file. Pages are matched by number, so a page-count mismatch is called out explicitly.
What this tool does
Line-based diff
A real LCS/Myers-style comparison aligns the lines of both documents and marks additions, removals and unchanged text.
Page-by-page results
Each page pair is compared separately, so changes stay tied to the page where they happened.
Similarity score
The summary reports inserted, deleted and unchanged lines plus a percentage based only on the compared lines.
Page-count mismatch warning
When the documents have different numbers of pages, missing pages are reported instead of silently ignored.
Unified diff view
Changed lines are shown in reading order with +/− markers, and the whole result can be downloaded as a .txt file.
Local and private
Text extraction, normalisation and diffing run in the browser tab; neither PDF is uploaded.
How to use PDF Compare
- 01
Add the first PDF
Drop the original or older version into the first slot; the page count is read locally.
- 02
Add the second PDF
Drop the revised or newer version into the second slot.
- 03
Run the comparison
Click Compare PDFs; both text layers are extracted page by page.
- 04
Read the summary and diff
Check the added/removed/changed counts and the similarity percentage, then inspect each page's unified diff.
- 05
Download the diff
Save the comparison as a .txt file for a review note or a change record.
Supported formats and limits
- Input
- Output
- TXT
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Maximum size
- Up to 50 MB each
- Requirements
- Chrome, Edge, Firefox or Safari · Both PDFs need a selectable text layer
Limitations worth knowing
- Text only: layout, images, fonts, annotations and signatures are not compared.
- Scanned PDFs need OCR before they can be compared; pages with no text layer are reported as empty.
- Line alignment is automatic and can look noisy when a document is re-saved or heavily reflowed.
- Up to 50 MB per PDF and a line cap per document; very long documents may be truncated in the diff.
Privacy and file handling
Both PDFs are opened and compared entirely inside this browser tab with pdf.js. The files, their text and the diff are never uploaded or stored, and closing the page discards everything.
Read the full privacy policy
