Compare PDF Files: Free and Private

Use this tool to compare pdf files and spot every change between two versions. Open the old and new PDFs, and see added, removed and changed text highlighted side by side. It is useful for contracts, school papers and drafts.

Compare PDF

Find the text differences between two PDF files.

or drop a PDF here
This tool compares the text of the two PDFs, not how they look. Changes to images, colors, fonts or layout are not detected, and scanned PDFs without a text layer cannot be compared.
Your PDF is processed inside your browser and is never uploaded. Works on desktop and mobile.

How to use the PDF Compare tool

  1. Click Select first PDF and choose the original version.
  2. Click Choose second PDF and pick the newer version. Choose whether to compare by words or lines.
  3. Press Compare. Removed text is shown in red with a line through it, and added text in green.

How it works

pdf.js extracts the text of both PDFs in your browser and groups it into lines in reading order. The tool then finds the longest sequence of lines the two files share (a classic diff algorithm) and, in word mode, compares the changed lines word by word. Because only text is compared, a paragraph that moved to the next page is not counted as a change, but edits to pictures or formatting are not shown.

Example

Comparing contract-v1.pdf with contract-v2.pdf where the rent changed from $1,200 to $1,250 and a pet clause was added shows $1,200 in red, $1,250 in green, and the new clause highlighted in green, with a summary of how many words were added and removed.

Frequently asked questions

Does it compare images or layout?

No. It compares only the text. Changes to images, colors, fonts, spacing or page layout are not detected.

Why does it show changes I did not make?

PDFs store text in pieces, and two files made by different programs can split lines or spaces differently. Try Lines mode, Ignore case, or check the highlighted spots in both files.

Can I compare scanned PDFs?

Only if they have a text layer from OCR. A plain scan is a picture with no text, so the tool will say there is no text to compare.

Are my files uploaded?

No. Both PDFs are read and compared in your browser.

See also: Word to PDF, JPG to PDF.

Compare two PDFs

How to use it

  1. Open the first PDF.
  2. Open the second PDF.
  3. Review the highlights.
  4. Jump between changes.

More questions

Does it compare images?

It focuses on text changes, so differences in images or layout may not be flagged.

Can I compare plain text?

Yes. To compare plain text, use the text compare tool.

Is my file uploaded?

No. It runs in your browser, so your file stays on your device.

Related tools: Text Compare, Edit PDF, PDF to Markdown Converter.