⚖️ Compare PDF

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.

2 PDFsSide-by-side
100%Free
+reportChange log

PdfDocShift › Compare PDF

Original (A)
📄
Upload original
or browse
Modified (B)
📝
Upload modified
or browse
Uploading...

✅ Comparison complete — ZIP ready!

Includes: side-by-side.pdf + change-report.pdf

🔒 Files auto-deleted after 2h
🔑 256-bit SSL encryption
🚀 No software to install
No account required

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.

⚖️
True side-by-side view Original and modified shown in two columns with deletions highlighted in red and additions in green.
📋
Detailed change report A separate report PDF lists every change with summary statistics — additions, deletions, unchanged lines.
🎯
LCS-based accuracy Uses a longest-common-subsequence algorithm to align matching lines — far more accurate than naïve line-by-line.
🔒
Privacy guaranteed Both PDFs are processed on encrypted servers and permanently deleted after 2 hours.
Under 30 seconds
Most pairs are compared in under 30 seconds, even for 100+ page documents.
📐
Up to 200 MB each
Each PDF can be up to 200 MB. Long contracts and reports supported.
🟢🔴
Colour-coded diff
Additions show green, deletions show red. Read the changes at a glance.
📦
ZIP delivery
Both outputs delivered together in one ZIP — keep the side-by-side and audit log.

More PDF tools, all free

Every PDF operation you need — one click away.

🗜️
Compress PDF
Reduce PDF file size without losing quality. Choose low, medium or high compression.
✂️
Split PDF
Split a PDF into separate pages or extract a custom page range.
🔗
Merge PDF
Combine multiple PDF files into one document.
📝
Word to PDF
Convert Word documents (.docx, .doc) to PDF.
📄
PDF to Word
Convert PDF to editable Word document (.docx).
📊
PowerPoint to PDF
Convert PowerPoint presentations (.pptx, .ppt) to PDF.
🖼️
PDF to PowerPoint
Convert PDF pages into editable PowerPoint slides.
📈
Excel to PDF
Convert Excel spreadsheets (.xlsx, .xls) to PDF.
📋
PDF to Excel
Extract tables and data from PDF into Excel.
🖼️
Image to PDF
Convert JPG, PNG, WEBP, HEIC or GIF images to PDF.
📷
PDF to Image
Export PDF pages as high-resolution JPG or PNG images.
🔐
Protect PDF
Add password protection to your PDF with strong encryption.
💧
Watermark PDF
Add a custom text watermark to every page.
🔍
OCR PDF
Make scanned PDFs searchable using optical character recognition.
🔄
Rotate PDF Pages
Rotate pages by 90°, 180° or 270°. Fix sideways scans.
🔓
Unlock PDF
Remove password protection from PDFs you own.
✍️
Sign PDF
Add your signature to any PDF document. Type, draw or upload.
🔢
Page Numbers PDF
Add page numbers to your PDF with custom format and position.
✂️
Crop PDF
Remove margins and crop PDF pages with mm precision.
🌐
Translate PDF
Translate PDF content into another language automatically.
🌐
HTML to PDF
Paste a website URL and convert the page to PDF.
🩹
Repair PDF
Recover damaged or corrupt PDFs with our 3-stage repair pipeline.
Redact PDF
Permanently remove sensitive text from PDFs. Enter terms and download the blacked-out file.
🗂️
Organize PDF
Reorder, delete, and rearrange pages visually with colour-coded thumbnails.
⚖️
Compare PDF
Side-by-side PDF comparison with a downloadable change report.
✏️
Edit PDF
Add text, images, shapes and drawings directly on your PDF pages.

Four steps, done

No sign-up required. Files are encrypted in transit and auto-deleted after 2 hours.

STEP 01
Upload Original
Drop or browse to upload the original PDF (file A) — up to 200 MB.
STEP 02
Upload Modified
Drop or browse to upload the modified version (file B). The compare button activates once both are loaded.
STEP 03
Compare & Download
Our engine produces a side-by-side PDF and a change report PDF, bundled in a single ZIP for download.
STEP 04
Auto-Deleted
Both originals and the comparison output are permanently deleted from our servers 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.