📄 PDF Diff Tool
★★★★½ 4.7 (285 ratings)
🔒 No Upload — Everything runs in your browser ✅ 100% Free — No registration, no limits ⚡ Instant — No server processing

Loading... Thanks for your rating!

Free online PDF comparison tool — highlight text differences line by line, pure frontend processing

📤 Upload PDF Files

📄
Original PDF
Click or drag to upload
📄
Modified PDF
Click or drag to upload

FAQ

Q1: How does the PDF diff tool work?

The tool uses pdf.js to extract text from both PDF files in your browser, then applies the LCS (Longest Common Subsequence) algorithm to compare them line by line. Added lines are highlighted in green, removed lines in red, and unchanged lines have no highlight. All processing happens locally — your files never leave your device.

Q2: Does it support scanned PDFs?

This tool extracts the text layer from PDFs for comparison. Scanned PDFs that are images without a text layer cannot be compared. We recommend using an OCR tool first to convert scanned PDFs to searchable PDFs.

Q3: What do the colors in the diff mean?

Green background indicates added lines (present in the modified PDF but not in the original), red background indicates removed lines (present in the original but not in the modified), and no background means unchanged lines.

Frequently Asked Questions (FAQ)

How does the PDF diff tool work?

The tool uses pdf.js to extract text from both PDFs in your browser, then applies the LCS algorithm to compare line by line. Added=green, removed=red, unchanged=default. All processing is local.

Does it support scanned PDFs?

This tool extracts the text layer. Scanned image PDFs without text layer cannot be compared. Use OCR first.

What do the colors in the diff mean?

Green=added lines, red=removed lines, no background=unchanged lines.