How to compare two PDF files for differences
PDF Compare — open the free tool →PDFs are the final format for contracts, invoices, statements, research papers and government forms. That makes them easy to share but hard to check. When you receive a "final" version, how do you know what changed from the draft?
The quick method: PDF Compare
- Open PDF Compare.
- Select the original PDF on the left and the new version on the right.
- Wait while the text from every page is extracted.
- Turn on Ignore whitespace. PDF text extraction often adds extra spaces, and this keeps them from showing up as changes.
- Click Compare now and review the highlighted lines.
Added text, removed text and changed words are highlighted side by side. The files are read in your browser and are not uploaded to a CompareOnline4U server.
What if the PDF is scanned?
A scanned PDF (from a scanner or phone camera) is really a set of images. There is no text for a comparison tool to read, so you will see empty or nearly empty boxes.
The fix is OCR (optical character recognition), which adds a text layer to a scanned PDF. You can do this with the free OCR PDF tool on PDFOnline4U, our sister site. Once the text is selectable, compare the OCR'd files as usual.
OCR is not perfect, especially with poor scans or handwriting. Treat small differences in a scanned comparison as "check this", not as proof of a change.
What a PDF comparison can and can't show
- Shows: changed words, numbers, dates, added or removed sentences and paragraphs.
- Does not show: changes to images, logos, colours, fonts or page layout.
- May look noisy: if text flows differently (for example a paragraph moved to the next page), lines can shift. Use Only changes to focus on real edits.
Other options
Convert to Word first. If you need to edit as well as compare, convert both PDFs with a PDF to Word tool and use Word Compare. Text-based PDF compare is usually quicker.
Copy and paste. For a single page, you can select the text in each PDF, copy it into Text Compare and compare it directly.
Paid PDF editors. Some paid desktop PDF editors include a visual comparison that also shows layout changes. That is worth it if you compare PDFs every day.
Practical tips
- Password-protected PDFs need to be unlocked (with the password) before their text can be read.
- For long documents, use Previous/Next change instead of scrolling.
- Look closely at amounts, dates, names and clause numbers. These are the edits that cause problems later.
- Download the report and keep it with the signed document.
Frequently asked questions
Can I compare two PDFs for free?
Yes. PDF Compare on CompareOnline4U is free, needs no sign-up and runs in your browser.
Why does my scanned PDF show no text?
A scanned PDF is a picture of a page. Run OCR first to add a text layer, then compare.
Does PDF comparison show layout changes?
No. It compares the text. Changes to images, colours or layout are not detected.