About the Compare PDF tool
Two versions of a contract, a revised policy, the proof and the final print file: when a document changes, you need to know exactly what changed. Reading both copies side by side is slow and it is easy to miss a single altered number or a deleted clause. This compare PDF tool extracts the text from both files and shows the differences highlighted, page by page.
Load the original as file A and the revised version as file B. The text of each page is extracted with pdf.js, then compared with the proven diff algorithm used by many code review tools. Additions are shown in green and deletions in red with strike-through, so you can scan the result like tracked changes. Choose Words for normal documents, Lines for lists and structured text, or Characters to catch small edits in numbers, codes and names.
Summary tiles count the pages with changes and how many words, lines or characters were added and removed. Switch on “Only pages with changes” to hide identical pages in long documents, and use “Ignore case” or “Ignore extra spaces” to filter out cosmetic differences such as reflowed line breaks. Everything runs locally in your browser, so confidential agreements are never uploaded.
How to use Compare PDF
- Drop the original PDF into the “File A” box and the revised PDF into the “File B” box.
- Wait while the text of both files is extracted; a progress bar shows the status.
- Choose the comparison level: Words, Lines or Characters.
- Turn on Ignore case, Ignore extra spaces or Only pages with changes as needed.
- Review each page block: green text was added in B, red struck-through text was removed from A.
Features
Page-by-page diff
Page 1 of A is compared with page 1 of B and so on, with pages that exist in only one file clearly labelled.
Three granularities
Compare by words, whole lines or single characters depending on the kind of change you are hunting.
Noise filters
Ignore case and collapse extra whitespace so reflowed text doesn't show up as a change.
Change statistics
See how many pages changed and how many words, lines or characters were added and removed.
Local processing
Text extraction and comparison run on your device with pdf.js and the diff library.
When to use it
- Check what the other party changed in a returned contract before signing.
- Verify that a printer's proof matches the approved manuscript text.
- Review edits between two versions of a policy, handbook or terms of service.
- Spot changed figures between two editions of a price list or invoice.
- Compare exam papers or assignments submitted as PDF for copied passages.
Frequently asked questions
Does it compare images, layout or formatting?
No. It compares the extracted text only. Changes to images, colours, fonts or positioning without a text change are not shown.
Why does a whole page show as changed when only one paragraph was edited?
The comparison is per page. If text was added earlier in the document, later content shifts to different pages, so those pages differ too. The highlighted words show where the real change started.
Can I compare scanned PDFs?
Only if they contain a text layer from OCR. Pure scans are images with no text, and the tool will tell you when neither file has selectable text.
Which mode should I use?
Words suits most documents. Lines is clearer for lists, tables exported as text and code. Characters catches tiny edits such as a changed digit in an account number.
Are my files uploaded for comparison?
No. Both PDFs are read and compared entirely in your browser; nothing leaves your device.