PDF Compare
Diff the text layers of two PDFs line by line: added and removed lines are listed, unchanged lines counted, and identical documents reported as such.
How to use
- Choose the original PDF (version A) and the changed PDF (version B).
- Press Compare — both text layers are extracted and diffed with an LCS algorithm.
- Read the added (+) and removed (−) lines, with unchanged counts above.
Example
Input: contract-v1.pdf vs contract-v2.pdf
Output: + new clause line, − deleted line, 214 unchanged lines
How it works
Text is extracted from both PDFs with pdf.js and compared line by line. Lines present in only one document are highlighted as additions or removals.
Limits & compatibility
- Compares text content only — fonts, spacing, images and layout changes are invisible.
- Both documents are capped at 4,000 text lines each.
- Scanned PDFs without text layers cannot be compared (no OCR).
Privacy
Both files are parsed locally with pdf.js. Neither document is uploaded anywhere.
Related tools
Questions about PDF Compare
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.