About the Compare PDF
Compare two PDFs and see exactly which words were added, removed or kept. Choose the original and the changed version, and the tool shows a single marked-up text with insertions and deletions highlighted, a similarity score and a count of words added and removed. Use it to check a revised contract, quote, policy or assignment against the copy you already have.
Both PDFs are read and compared on your device and never uploaded, so confidential drafts stay on your computer or phone. It's the words that get compared, not the look: changed wording, numbers and dates show up, while moved pictures or new fonts don't.
How the PDF comparison works
First the text of every page is read from each PDF, line by line from the top of the page down, and the pages are joined in order. Each document is then split into words at every space or line break. A sentence that wraps differently in the new version therefore makes no difference.
The two word lists are lined up with a longest common subsequence, the same method used by programs that compare code: it finds the longest run of words that appear in both documents in the same order, and everything else is marked as added (only in the changed file) or removed (only in the original). The result reads like the document itself, with additions in green and deletions struck through in red.
The similarity score is twice the number of shared words divided by the total number of words in both files, shown as a percentage. Two identical files score 100%; two files with no words in common score 0%.
similarity % = 2 × shared words ÷ (words in original + words in changed) × 100
Words are matched exactly as written, so capital letters and punctuation count: "Total:" and "total:" are different words, and so are "5,000" and "5000".
Assumptions and limits
- The first 2,500 words of each PDF are lined up word by word. Any words after that are listed at the end as removed or added without being matched, and the page tells you when this has happened; split long documents with Split PDF and compare them section by section.
- Scanned PDFs are pictures of pages and contain no text to compare. Run each one through OCR PDF first, then compare the two OCR copies.
- Only text is compared. Changes to images, colours, fonts, page layout or signatures drawn as pictures are not shown.
- Text in tables and columns is read row by row across the page, so a table whose columns moved can show up as many small changes even if no values changed.
- Password-protected PDFs can't be read until the password is removed.
Worked examples
Compare two versions of a rental agreement
The original clause reads "The rent is 25,000 rupees per month payable on the 5th" and the landlord's new copy reads "The rent is 28,000 rupees per month payable on the 1st". Each sentence has 11 words and 9 of them match in order, so the result shows 25,000 and 5th struck through, 28,000 and 1st highlighted as added, and a score of 82%.
shared words = 9, words in each = 11 similarity = 2 × 9 ÷ (11 + 11) × 100 = 81.8 → 82% +2 words added, −2 words removed
Check what changed in a revised quotation
A supplier sends version 2 of a three-page quote. Comparing it with version 1 shows the price lines that changed and a new sentence about delivery charges as a block of green words, while the unchanged terms are shown in plain text so you can read the changes in context.
Find edits between two drafts of an essay
A student's 1,800-word draft and the tutor's edited copy are both under the 2,500-word limit, so every word is lined up. A score in the high 90s with a handful of red and green words means light corrections; a score near 60% means large parts were rewritten.
How to use the Compare PDF
- Add the original PDF first. The first file is treated as the original, the second as the changed version; choose both together or one after the other.
- Click Compare PDFs. Both files are read and their text is lined up word by word.
- Read the marked-up text. Green words were added, red struck-through words were removed; the score and word counts are shown above the text.
Frequently asked questions
How do I compare two PDF files for differences?
Add the older version first and the newer one second, then click Compare PDFs. You get one combined text where words that exist only in the new file are highlighted in green and words that were taken out are struck through in red, plus a similarity score.
Can I compare two PDFs side by side?
No, the result is a single merged view rather than two columns: the original wording and the new wording appear in one running text, marked where they differ. For a quick review this is easier to read than flicking between two pages, because each change sits next to the words around it. If you want two columns, open both PDFs in Diff Checker, which reads their text and shows the old and new versions side by side.
Does it compare images, formatting or layout?
No. Only the text is compared. A new logo, a changed font, a different colour or a moved picture won't be flagged. If a document's look matters, open both files and check the pages visually after reviewing the text changes here.
Why does the comparison show changes on lines I didn't edit?
Usually because small differences such as a capital letter, a comma or a number written as 5000 instead of 5,000 count as a different word. Text in tables and columns can also be read in a different order when a layout changes, which makes untouched values appear as removed and added.
Can I compare scanned PDFs?
Not directly, because a scan holds pictures of pages rather than text. Make each scan searchable with OCR PDF, then compare the two new files. How well that works depends on how clean the scans are, since OCR mistakes will also show up as differences.
Are my PDFs uploaded when I compare them?
No. Your browser reads the text and finds the differences, so the two documents never leave your device. You can use it for contracts, offer letters and other drafts you wouldn't want to send to an online service.
This tool runs entirely in your browser. What you enter or upload stays on your device and is never sent to our servers.