Skip to main content
PDF PRO SAFEGDPR · Zero storage

Compare Two PDF Files

Spot the text differences

To compare two PDFs, load the original as document A and the revised version as document B. The tool pulls the text out of both and lines them up, flagging every added and deleted line, and lets you download the full diff as a text file. It runs in your browser and checks wording only, not layout or images.

  • Files processed on your device
  • No server-imposed size limit
  • 100% free
Restoring your session…

How to compare two PDFs

  1. 1Load the original as document A and the revised version as document B. Got them the wrong way round? “Swap A and B” fixes it in one click.
  2. 2Hit “Compare”: your browser reads the text of every page and lines the two documents up against each other.
  3. 3Scan the added and deleted lines (toggle “Show only differences” to hide the rest), then download the full report.

How the comparison works

Think of it as a redline for documents that arrive as PDFs. The tool reads the text layer of each page, the same text you'd get by selecting and copying, and splits it into lines. Whitespace noise is ignored: extra spaces, blank lines and leading or trailing spaces don't count as changes, so a file that was merely re-exported comes out identical.

The two sets of lines are then aligned with a longest-common-subsequence diff, the same approach behind the diff tools programmers use every day. Each line ends up added (only in B), deleted (only in A) or unchanged, and a running count tells you at a glance how much moved.

Changes are tracked per line, not per word. Edit one figure in a sentence and you'll see the old line marked as deleted with the new one right below it, marked as added. Read the pair together and the edit jumps out.

When it saves you time

Whenever a “final” PDF comes back with changes nobody mentioned:

  • an NDA, MSA or statement of work returned by the other side with Track Changes switched off;
  • a lease renewal, where you want proof that only the rent and the dates changed;
  • updated terms of service or a privacy policy, to see exactly which clauses were rewritten;
  • a contractor's revised quote, checked line by line against the one you approved;
  • two drafts of a thesis, grant proposal or report before you sign off on the final one.

What it won't catch

Scanned pages are pictures with no text behind them, so there's nothing to diff. To get a comparable PDF, turn its pages into images with PDF to image, then rebuild a PDF with selectable text using Image to PDF in “Digital text (OCR)” mode; do the same for the other version before comparing. If a file asks for a password when you open it, unlock it before comparing.

Only wording is compared. A new font, a different color, a reflowed layout or a swapped image won't be flagged, and a paragraph that simply moved shows up as deleted in one place and added in another. When two very long documents have almost nothing in common, the tool skips fine-grained alignment and lists all of A as deleted and all of B as added: still accurate, just less useful.

The on-screen view stops at 1,200 lines; the downloadable report always has everything. To check a single chapter of a long contract, pull those pages out first with Extract pages and compare just that section.

The diff report

“Download report” saves a plain .txt file that opens anywhere, from Notepad to your phone. The first line names both documents and their page counts, the second sums up how many lines were added and deleted, and then every line follows, with a “+” for additions and a “-” for deletions, just like a unified diff. Attach it to an email and the other party knows exactly which changes you're asking about.

No upload, by design

Documents people compare are rarely public: contracts under negotiation, pricing, HR letters. Here both PDFs are read by pdf.js inside your browser tab. Nothing is uploaded, stored or logged on a server, and once the page has loaded the tool keeps working offline. Our guide to PDF tools that don't upload your files shows how to check that for yourself in two minutes.

Technical specifications

Processing
100% local, in your browser
Technology
PDF.js
File size
No server-imposed size limit: your device's memory is the only limit
Privacy
File never uploaded or stored: suited to GDPR and professional secrecy
Price
Free, no sign-up, no watermark

Frequently asked questions

How do I compare two PDF files online for free?

With this tool, no account or subscription needed: load the original, then the new version, and the list of differences appears straight away, with a report you can download in one click. The comparison runs entirely in your browser, without uploading either document.

Can it compare scanned PDFs?

Not as they are: a scan is an image with no text to compare. Turn each version into images, then rebuild a PDF with Image to PDF in “Digital text (OCR)” mode: you get two PDFs with real text that the tool can compare. If neither file has any text, the tool says so.

Do my files get uploaded anywhere?

No. Both PDFs are read and compared inside your browser; nothing is uploaded, kept or logged on a server. You can even go offline once the page has loaded and the comparison still runs.

Will it flag formatting or image changes?

No. It compares text only, so changes to fonts, colors, layout or images are not reported. If the look of a page matters, open both versions side by side for a visual check.

Why is a whole line flagged when only one word changed?

Changes are tracked line by line. When a word changes, the original line shows as deleted and the new one as added, right below it. Read the two together to spot the exact edit.

Is this the same as a legal blackline?

It answers the same question, namely what changed in the wording, but the output is a list of added and deleted lines rather than a marked-up copy of the document. For a quick check on a returned contract, that list is usually all you need.

How long can the documents be?

There's no set page limit; your device's memory is the only constraint, and documents running to hundreds of pages are fine. The screen shows the first 1,200 lines of the result, while the downloadable report always contains the full comparison.

Related guides

Related tools