Compare PDF Online — Side-by-Side & Change Report
Upload two PDF versions and get a colour-coded side-by-side comparison plus a detailed change report — every addition, deletion, and edit captured in seconds. Perfect for contract redlines and document reviews.
PdfDocShift › Compare PDF
✅ Comparison complete — ZIP ready!
How to Compare PDFs — two outputs in one click
PdfDocShift extracts the text from both PDFs, runs a longest-common-subsequence diff to align the lines, and produces two artefacts: a side-by-side PDF showing the original on the left and the modified file on the right with green and red highlights, and a change report PDF with statistics and a unified list of every addition and deletion. Both files are bundled into a single ZIP for download.
More PDF tools, all free
Every PDF operation you need — one click away.
Four steps, done
No sign-up required. Files are encrypted in transit and auto-deleted after 2 hours.
What Does the Compare PDF Tool Produce?
The output is a single ZIP file containing two PDFs. The first, side-by-side.pdf, places the original document on the left and the modified version on the right in a two-column layout — deletions are highlighted in red on the left, additions in green on the right, and unchanged lines appear in muted grey on both sides. The second, change-report.pdf, is a unified change log with summary statistics (total additions, deletions, and unchanged lines) followed by every modified line in a familiar redline format. Together, the two PDFs give you both an at-a-glance visual comparison and a structured audit log you can keep on file.
How Are Differences Detected?
PdfDocShift extracts the text from both PDFs with whitespace normalisation, then aligns the resulting line arrays using a longest-common-subsequence (LCS) diff algorithm. LCS is the same algorithm used by git diff and the diff command-line utility — it finds the optimal alignment so that genuinely matching lines stay paired and real edits show up as discrete additions or deletions, rather than as cascading mismatches caused by a single inserted line.
When Should You Use PDF Comparison?
PDF comparison is essential whenever you need to verify what changed between two versions of a document. Common use cases include contract redlines — confirming exactly what was amended between drafts before signing; policy review — auditing changes between published versions of company policies; research and publishing — comparing manuscript revisions against an editor's copy; regulatory filings — verifying that only the requested changes were made between submissions; and technical documentation — tracking changes between releases of a specification or manual. Without a comparison tool, finding all differences manually is error-prone and slow, especially across documents with hundreds of pages.
Comparing Scanned PDFs vs. Text-Based PDFs
Comparing two text-based PDFs (PDFs created digitally, such as those exported from Word, Google Docs, or InDesign) is fast and accurate because the text is stored as searchable characters. Comparing two scanned PDFs — where each page is an image — is not directly possible: there is no text to extract. To compare scanned files, first run both through the OCR PDF tool to add a searchable text layer, then upload the OCR'd files here. OCR introduces some character-level noise, so for the cleanest comparisons start from text-based originals where possible.
Privacy and Retention
Both files are uploaded over 256-bit SSL to encrypted cloud storage tied to your anonymous browser session. They are accessible only to that session for the duration of processing and the optional retention window, after which they are permanently deleted within 2 hours. We never read your documents, share them with third parties, or train machine-learning models on them. There is no account, no registration, and no log retention beyond what is needed to operate the service.
Compare PDF questions
Everything you need to know about comparing PDF files online.
The ZIP contains two PDFs. side-by-side.pdf is a landscape-oriented two-column view showing the original on the left and the modified document on the right with colour-coded highlights. change-report.pdf is a portrait-oriented document with summary statistics and a unified list of every addition and deletion in a redline-style format suitable for archiving as an audit record.
Text is extracted from both PDFs, normalised (whitespace collapsed, blank lines removed), and then aligned with a longest-common-subsequence (LCS) diff. LCS produces the optimal pairing of matching lines so that real insertions and deletions are surfaced cleanly — the same algorithm that powers git diff.
Only if the scanned PDFs include a searchable text layer. For purely image-based scans the comparison cannot extract any text. Run both files through the OCR PDF tool first to make the text machine-readable, then upload the OCR'd versions for comparison.
Each PDF can be up to 200 MB. For very long documents the comparison is capped at the first 1,500 lines per file to keep processing fast and memory usage predictable. For shorter documents (most contracts, reports, and policies) the entire content is compared.
To keep the comparison report focused on what actually changed, runs of more than six consecutive unchanged lines are collapsed in the report. Two lines of context are kept around each collapsed block so you can still see where the change is anchored. The full text of unchanged sections is preserved in the side-by-side PDF.
Yes. All files are transferred over 256-bit SSL and stored in encrypted cloud storage tied to your anonymous session. No one else can access your files. Both PDFs and the comparison output are permanently and automatically deleted from our servers after 2 hours. We never read, share, or retain your documents.