How to use Compare Two PDFs (Text Differences)
- Add two PDFs: the old version first, then the new one.
- Press Start.
- Read the list of differences: removed lines in red, added lines in green, and changed lines with the changed words marked.
- Download the report as text to keep it or send it.
How Compare Two PDFs (Text Differences) works
Line by line, then word by word
The text of both PDFs is read with pdf.js and compared line by line with a longest-common-subsequence algorithm. When a line was changed, its words are compared again so you see exactly what was edited.
Page numbers
Each difference shows the page in the old and the new version, so you can find it quickly even when pages have moved.
What is compared
Only the text is compared, not fonts, colours, pictures or layout. Moving a paragraph shows as removed in one place and added in another.
Comparison
| This site (in-browser) | Typical upload-based sites | |
|---|---|---|
| Your files | Never leave your device | Sent to a remote server |
| Waiting time | No upload, no download queue | Upload + processing + download |
| Limits | None | Often file-size or daily limits |
| Works offline | Yes, once loaded | No |
Tips for the best result
- Use it to check what was changed in a contract before signing the new version.
- Run OCR PDF on scanned versions first.
- Compare exported PDFs of two Word versions to see edits when track changes was off.
- For pictures and drawings, use Compare Two Images on the exported pages.
Private by design
Compare Two PDFs (Text Differences) runs entirely inside your browser, in background threads (Web Workers) that use your device's own processor. Your files are never uploaded to our servers, so nobody else can see them, and processing starts instantly with no upload or download wait. Once the page has loaded, the tool keeps working even without an internet connection.
Related tools
- Compare Two ImagesFind the differences between two pictures: changed pixels are shown in red and the percentage of difference is given. Runs in your browser.
- Search in PDF FilesFind words or phrases in one or many PDFs and see every match with its page and surrounding text. Arabic search ignores diacritics and alef forms.
- PDF to TextExtract all the text of a PDF into a plain .txt file, page by page, in your browser, ready to copy or edit.
Frequently asked questions
Does it compare layout and pictures?
No, only text. Visual changes are not shown.
Can I compare Arabic documents?
Yes, Arabic lines are read right to left and compared like any text.
Why is a whole paragraph marked when I changed one word?
If the line breaks moved, whole lines differ; the changed words are still marked inside them.
Is there a size limit?
Very long and very different documents may be too big to compare in the browser; compare part of them.
Is my PDF uploaded?
No. The PDF is opened and changed in your browser with open-source libraries (pdf.js, pdf-lib or qpdf compiled to WebAssembly). It never leaves your device.
Does it work with password-protected PDFs?
A PDF that asks for a password to open must first be unlocked with Unlock PDF, using its password. Then use the unlocked copy here.
Is there a size or page limit?
There is no upload limit because nothing is uploaded. Very large PDFs (hundreds of pages or hundreds of MB) need more memory and time, especially on phones.