Free tool · PDF tools
Compare PDF files
To compare two PDF files, load the original and the changed version: removed words appear struck through, added words underlined, and every page is marked as same or changed, in its text and in how it looks. A picture of each page shows the visual differences in red. Both files stay on your device.
- Free
- No sign-up
- Runs in your browser
- Text and look compared page by page
- Example: choose two PDFs to compare yours
- Pages (original / changed)
- 2 / 2
- Words removed / added
- 1 / 5
- Text in common
- 89%
- Pages that look different
- 1, 2
How to use the Compare PDF Files
- Choose the older version under Original PDF.
- Choose the newer version under Changed PDF, or drop both files on the card at once.
- Read the changes in the result: removed words struck through, added words underlined, page by page.
- Press a page button to see that page with the parts that look different marked in red; copy the changes as text if you need them elsewhere.
How do I compare two PDF files?
Load both versions and the comparison runs straight away. The text of every page is read from each file and compared word by word, so a changed number, a new clause or a deleted sentence stands out even in a long document. Long stretches that did not change are shortened to a few words on each side, so the view shows only what moved.
In the worked example, two versions of a 2-page agreement differ in a payment term and a signature line. The comparison finds 1 word removed and 5 added, marks both pages as changed (changed, changed) and reports 89% of the text in common. On page 2 the newer file also has a gray box with no words in it, which only the look comparison can see.
Every page also gets a button with what changed on it: text, look, or both, with the share of the page that looks different. Pages that exist in only one file are marked as such, so a missing appendix or an extra page shows up at once.
Which file goes where matters only for the wording of the result. Words that are in the original but not in the changed file count as removed, and the other way round as added; load the files the other way and the two counts simply swap.
How does the text comparison work?
Each page's text is rebuilt into lines from where the words sit, the same way PDF to Text reads a file, and the two texts are compared word by word with the method Text Compare uses. Spaces and line breaks are ignored, so text that merely reflows across lines is not reported as changed; a changed character inside a word marks the whole word.
The table shows how the method counts a few typical edits. A changed number is one word out and one word in; a swapped word order shows as removals and additions, because the comparison looks for the longest run of words the two versions share and reports the rest.
In tables, every cell value counts as a word, so a corrected total or a new price shows as one word out and one word in. The page buttons then tell you on which page to look, and the copied changes list them in reading order.
Only real text can be compared. A scanned page is a picture, so its words are not in the text at all; for scans, the look comparison still marks what differs on the page, but reading the changed words needs text recognition (OCR) first.
| Edit | Words removed | Words added | Text in common |
|---|---|---|---|
| A number changes | 1 | 1 | 75% |
| A sentence is added | 0 | 4 | 67% |
| Only line breaks differ | 0 | 0 | 100% |
| Words swap places | 1 | 1 | 67% |
Can it find changes in images, layout or formatting?
Yes, as a change in how the page looks. Every page of both files is drawn small and compared pixel by pixel; a page counts as looking different when more than a hundredth of a percent of it changed, which ignores stray smoothing differences between two drawings of the same page. A swapped logo, a moved block, a new stamp or a changed color all show up this way.
Press a page button to see the newer page faded to light gray with every changed pixel in red. A box that darkens 3 of 100 pixels gives a change of 3.0%, which is the kind of number the page buttons show. Font or size changes in otherwise identical text show up here too, since the words are the same but their shapes moved.
The look comparison works on the pages as they line up: page 3 against page 3. When the newer file inserts a page near the front, every later page moves and looks different; the text comparison is the better guide then, since it follows the words across page breaks.
The look comparison uses small drawings, 400 pixels wide, so it stays quick on long files. A change smaller than about one of those pixels, such as a single moved full stop, can slip under it; the text comparison still catches it if it is a change in the words. The picture behind a page button is drawn larger, 640 pixels wide.
Is it safe to compare confidential PDFs here?
Both files are read and compared inside your browser tab; nothing is sent to a server, which matters for contracts, offers and medical or legal letters. Closing the tab clears everything.
Password-protected files cannot be opened; remove the password in the program that made them, or compare unprotected copies. Very long documents take longer because every page is read and drawn, and the counter shows the progress.
To check the number of pages first, use PDF Page Counter; to pull the full text of either version, use PDF to Text; to compare plain text you already have, paste it into Text Compare.
Use it with
- Merge PDF: combine several PDFs into one file.
- JSON Compare: diff two JSON documents.
- Flatten PDF: lock form fields and annotations.
Questions
How do I compare two PDF files for differences?
Load the original and the changed PDF here. Removed words are struck through, added words underlined, and each page is marked same or changed.
Can I compare two PDFs for free without Acrobat?
Yes. This page compares text and look in your browser at no cost and with no sign-up.
Can I compare scanned PDFs?
Their look, yes: changed areas are marked in red. Their words need text recognition (OCR) first, since a scan has no text.
Does the comparison find formatting changes?
Changes in fonts, sizes, images or layout show up in the look comparison as the share of the page that changed.
Why is every page after a certain point marked as different?
A page was probably added or removed, so later pages no longer line up. Follow the text comparison, which tracks the words.
Are my PDFs uploaded to compare them?
No. Both files are read and compared in your browser tab and never leave your device.
Sources
How this page was made: the tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations were drafted with AI help and checked against the tool's own output.