How-to
How to compare two PDF files for differences
To compare two PDF files for differences, extract the text from each and compare the words. A diff shows what was added and what was removed, and where. You can do that free in your browser without uploading either file. It will not see layout or image changes, so this guide also says when text comparison is enough and when it is not.
Updated · 5 min read
Signavos: send a PDF for signature, pay only per document. Credits never expire.Try it free
What comparing two PDFs can and cannot show
A PDF is a drawing of pages. It is not a document with paragraphs, so there are really three things you might want to compare: the words, the way the page looks, and the file itself. Each needs a different check.
| Compare | Question it answers | How |
|---|---|---|
| The words | Did the wording or the numbers change? | Extract the text and diff it, as below |
| The look | Did a logo, image, box or layout move? | Overlay or view the pages side by side, by eye or with a visual-compare feature in a PDF editor |
| The file | Is it the very same file? | Compare SHA-256 checksums |
For most real questions, such as "did they change the price in the second version?", the words are what matter. A text diff finds a changed figure in a 40-page document that your eyes would miss.
Compare two PDFs in your browser, step by step
The free compare PDF tool reads the text of both files with your browser and shows the difference. Neither file is uploaded to Signavos and nothing is stored on our servers. It needs a free account (no card). Each file can be up to 50 MB and 500 pages.
- Open the compare tool. Put the older or original file in the first box and the newer or changed one in the second.
- Wait for both to be read. The tool also calculates a SHA-256 checksum for each.
- Read the verdict at the top. It says the files are identical, the text is identical but the files differ, or how many changes it found, with the words added and removed and the pages they are on.
- Scroll through the changes. Removed words are struck through in red, added words are underlined in green, and the unchanged text around them is folded away. Tick "Show all unchanged text" to see everything.
- Check each change against your own copies of the PDFs, on the pages named.
Spacing and line breaks are ignored on purpose, so a paragraph that rewraps onto a new line does not show as a change. Order matters, so a moved paragraph shows as removed in one place and added in another.
How to read the result
- Identical. The two files have the same checksum. They are the same bytes, so there is nothing more to compare.
- Text identical, files differ. Every word matches but the checksums do not. The difference is in layout, images, fonts, signatures, metadata or how the file was saved. Opening and saving a PDF again is enough to change its checksum. Look at the pages by eye.
- Changes found. The summary gives words added and words removed. A single edited figure counts as one removed word and one added word.
- Pages with no text. A scanned page is a picture, so there are no words to compare. The tool names those pages. There is no OCR in it, so it does not guess.
No tool can promise that two documents mean the same thing. A text diff shows you where to look. The decision about whether a change matters is yours.
Other ways to compare PDFs
| Method | How | Good for | Watch out for |
|---|---|---|---|
| Acrobat Pro Compare Files | Tools > Compare Files, choose both PDFs | Text and visual changes in one report | Needs a paid Acrobat plan |
| Word Compare | Open both as Word documents, then Review > Compare | Tracked-changes style output | PDF-to-Word conversion shifts layout and can add false differences |
| pdftotext and diff | pdftotext a.pdf a.txt, pdftotext b.pdf b.txt, then diff a.txt b.txt | Scripted or repeated comparisons | Needs command-line tools, and the output is raw |
| Side by side by eye | Two windows, same zoom, scroll together | Layout and image changes | Easy to miss one changed number |
| Checksums | Hash both files and compare | A strict yes or no on identical files | Says nothing about what differs |
To check byte-for-byte equality on its own, see how to check two PDFs are identical. To understand what a checksum can prove about tampering, see how to tell if a PDF has been altered.
Tips for a clean comparison
- Compare the exported PDFs, not their Word or Google Docs sources, if the PDFs are what people will sign.
- Put the earlier version first, so "added" means new in the later one.
- If a file is password-protected, remove the password first with the free unlock PDF tool, then add it.
- If one file is a scan and the other is a text PDF, the tool cannot line them up. Compare each against its own source instead.
- If the two documents are very different, the tool shows the whole of one as removed and the whole of the other as added. That is not a bug: there is nothing to line up.
Frequently asked questions
- How do I compare two PDF files for free?
- Use the free compare PDF tool on Signavos. Add both files and it shows the words added and removed, page by page, in your browser. It needs a free account (no card) and does not upload either file.
- Does it compare images and layout?
- No. It compares the text stored in each PDF. A changed logo, a moved box or a different font will not show. If the words match but the files differ, the tool says so.
- Can I compare two scanned PDFs?
- Not by text. A scan is a picture with no text layer, and the tool does not do OCR. It names the pages it cannot read. For scans, compare the pages by eye or run OCR first.
- Why does the tool say the text is identical but the files are not?
- Because the words match while something else in the file differs, such as layout, images, metadata or how it was saved. Opening and saving a PDF again changes its checksum even when the content looks the same.
- Is anything uploaded when I compare?
- No. Both files are read and compared in your browser. Nothing is sent to Signavos servers and we keep no copy.
- Is there a limit on file size?
- Each file can be up to 50 MB and 500 pages. Very different documents are shown as wholly removed and wholly added, rather than line by line.
Send your next document without a subscription.
Upload a PDF, place the fields, send. Your recipient signs without an account and you pay per signature. Nothing renews and credits never expire.
Create a free account