Compare PDF files

See what changed between two PDFs: the text that was added or removed on each page, and a visual overlay that marks every pixel that differs.

loading Compare PDF files
About this tool

What does a PDF comparison show?

It shows what changed between two versions of the same document. A contract comes back from the other party, a supplier sends a new price list, a designer exports the brochure again: the files look the same at a glance, and the one changed number is exactly what you need to find. Reading two PDFs side by side line by line is slow and unreliable.

This tool compares in two complementary ways. The text view reads the words of every page of both files and lists what was added and what was removed, page by page, by words or by lines. The visual view draws each page of both files at the same scale and compares them pixel by pixel, so it also catches what text cannot: a moved logo, a new stamp, a changed chart, a different font or a shifted table.

Both files stay on your device. The pages are read and drawn in your browser with pdf.js; nothing is uploaded, which matters when the documents are contracts, offers or medical reports.

How to compare two PDF files

  1. Open the page. Two example versions of a short agreement are loaded, so the differences appear at once.
  2. Put your files in place: drop two PDFs on the page at the same time to fill original and modified, or use replace on each side. swap exchanges them.
  3. Read the Text view. It says how many pages have differences and how many words were added and removed. Added words are underlined in green, removed ones are struck through in red.
  4. Switch between Words and Lines, and turn on Ignore upper and lower case if only capitalisation changed. Copy differences puts a short report on the clipboard.
  5. Open the Visual view for layout changes. Choose Differences to see changed pixels in red over a faded original, Slider to wipe from one version to the other, Overlay to see one through the other, or Side by side.
  6. Move the Tolerance to ignore tiny shading changes, and press Check every page to get the share of changed pixels for each page and jump to the ones that matter.

Examples

Two values changed in a contract

Version 1 says the client pays 1,200.00 per month within 30 days; version 2 says 1,350.00 and 45. The text view shows page 1 as changed with two words removed and two added, and the report reads:

## Page 1
- 1,200.00
+ 1,350.00
- 30
+ 45

A stamp added to a page

A rubber stamp or a signature image is not text, so the text view does not see it. In the visual view, Differences paints the stamp red, and the counter shows, for example, 4,812 different pixels (0.4%).

A page added at the end

When the modified file has one more page, that page is marked only in the modified file in both views, and all of its words count as added.

A scanned document

A scan has no text layer, so the text view says there is no text to compare. The visual view still works. To compare the words too, first run OCR PDF on both files.

Common errors and limits

  • Every word looks changed. The text is read in the order the PDF stores it. If one version was produced by another program, words can come in a different order; compare by Lines, or rely on the visual view.
  • Whole pages in red after an insertion. Pages are compared by position: page 3 with page 3. If a page was inserted near the start, every later page shifts. Remove the extra page with Organize PDF and compare again.
  • Noise around letters in the visual view. Different exporters smooth edges differently. Raise the tolerance a little until only real changes remain.
  • Password-protected files. A locked PDF cannot be read. Remove the password first with Unlock PDF.
  • Very long documents. The text is read page by page with progress and can be stopped. The visual view draws only the page you are looking at, so large files stay responsive.

Frequently asked questions

Are my PDFs uploaded?

No. Both files are read and drawn in this browser tab. Nothing is sent to a server.

Does it compare formatting such as bold or font size?

The text view compares words only. Changes in font, size, color or position show up in the visual view.

What does the tolerance do?

It is how much a pixel's color may change before it counts as different, from 0 (exact) to 128. A few dozen ignores anti-aliasing and compression noise.

Can I compare a PDF with a Word file?

Convert the Word file to PDF first, then compare. To compare plain text that you already have, use Text diff.

Report a problem