Compare PDF
Compare two PDFs side by side and see every text difference line by line, with page numbers and a similarity score. Free, private, no upload.
Loading tool controls…
Verify it yourself: press F12, open the Network tab, and use this tool — your files are never uploaded.
Compare PDF at a glance
- Price
- Free
- Account
- Not required
- File uploads
- None — your files are never uploaded
- Category
- PDF Tools
Who uses PDF Tools?
Students, office workers and anyone assembling or editing PDF documents — merging, splitting, watermarking and compressing.
How to Use Compare PDF
Follow these simple steps to get instant results in your browser.
Upload Both PDFs
Drop the original into the first slot and the revised version into the second. Both files stay in your browser.
Click Compare PDFs
The text of every page is extracted with pdf.js and diffed line by line. A per-page similarity score appears for each page.
Read the Differences
Pick a page to see its added lines in green and removed lines in red, or download the full diff report as a .txt file.
What is Compare PDF & How Does It Work?
Compare PDF reads the text layer of two PDF files and shows every difference line by line, page by page, with a similarity percentage for each page and for the whole comparison.
The comparison uses the same longest-common-subsequence line diff that powers the Text Compare tool: lines present in both files are shown as unchanged, lines only in the first file as removed, and lines only in the second as added. Pages that exist in only one file are reported as entirely added or removed, so an inserted or deleted page is obvious at a glance.
Use it when a contract, report or manuscript comes back revised and you need to know exactly what changed — without opening two windows and reading both versions yourself. A plain-text diff report downloads with every change marked + or −.
Key Features & Capabilities
Per-Page Similarity Scores
Every page gets its own similarity percentage, so you can jump straight to the pages that changed most.
Added / Removed Page Detection
Pages present in only one file are reported as entirely added or removed.
Downloadable Diff Report
A plain-text report with per-page stats and every changed line marked + or −.
LCS Line Diff
The same longest-common-subsequence diff used by Text Compare — a well-understood, deterministic algorithm.
Private by Design
Both PDFs are read and compared in your browser. Nothing is uploaded.
Pro Tips
- •Bookmark this tool for instant one-click access anytime.
- •Drag and drop files directly onto the input surface for fastest handling.
- •All processing happens in your browser session for maximum speed and data safety.
🎯 Common Use Cases
Compare PDF - Similarity
Each page’s lines are aligned by their longest common subsequence. Lines that align are unchanged; the rest are added or removed. Similarity is the share of lines that survived unchanged, so a page with one edited paragraph out of twenty scores about 95%.
Worked Example
- 1Page with 40 lines in file A and 42 in file B\n38 lines unchanged → 38 ÷ 42 × 100 = 90.5% similar\n2 lines removed, 4 lines added
Sources & Further Reading
- pdf.js — Mozilla
- Portable Document Format — Wikipedia
- PDF — Wikipedia
Frequently Asked Questions about Compare PDF
Frequently asked questions
More PDF Tools
Complementary utilities for your workflow
Compare PDF
Find text differences between two PDFs, page by page.