Compare PDFs

Diff the extracted text of two PDFs line-by-line.

Both PDFs are read and compared locally in your browser, and nothing is uploaded to a server.

Need to diff plain text instead? Try the Text Diff tool.

About Compare PDFs

Compare PDF documents to see exactly what text changed between two versions, right in your browser. This pdf diff tool extracts the selectable text from an original (A) and a changed (B) file, then runs a line-by-line comparison and highlights every added and removed line with running counts. It is handy for reviewing contract revisions, spotting edits between report drafts, or confirming a regenerated export matches the previous one. Writers, QA engineers, legal teams, and developers who need to diff two PDFs without copy-pasting text by hand will find this pdf compare tool fast and accurate. Everything runs locally in your browser, so your documents never leave your device and nothing is uploaded to a server. Drop in two PDFs and the comparison updates instantly, with a clear message when the text is identical.

Features

How to use the Compare PDFs

  1. Drop or select the original PDF into the Original (A) slot.
  2. Drop or select the revised file into the Changed (B) slot.
  3. Wait a moment while the text is extracted from each PDF.
  4. Review the line-by-line diff, with added and removed lines highlighted and counted.
  5. Clear either slot to load a different file and compare again.

Example

Input

A: Invoice total: $1,200
Due on receipt

B: Invoice total: $1,450
Due on receipt

Output

- Invoice total: $1,200
+ Invoice total: $1,450
  Due on receipt

+1 −1 lines

Diffing the text of two invoice PDFs

Common errors & troubleshooting

Frequently asked questions

What is the Compare PDF tool?
It extracts the selectable text from two PDFs and runs a line-by-line diff, highlighting added and removed lines so you can see exactly what changed between versions.
How do I compare two PDF files?
Drop the original into the Original (A) slot and the revised file into the Changed (B) slot. The diff appears instantly once the text is extracted from both.
Does Compare PDF diff the visual layout?
No. It compares the extracted text content line by line, not pixels, fonts, or page formatting, so it finds wording changes rather than styling differences.
Can I compare scanned PDFs?
Only if they contain selectable text. Scanned image-only pages need OCR first, since there is no text to diff otherwise.
Is there a size limit when comparing PDFs?
Comparison pauses when a document exceeds 5,000 lines so the tool stays responsive. Break very large PDFs into smaller parts to compare them.
Are my PDFs uploaded anywhere when I compare them?
No. Both files are processed locally in your browser and your documents never leave your device.

Related tools

All ArrayKit tools