QREndless

PDF Compare

Original
Select PDF filesor drop PDFs here

PDF · processed locally, never uploaded

Modified
Select PDF filesor drop PDFs here

PDF · processed locally, never uploaded

Free online PDF compare tool illustration showing two documents compared under a magnifying glass

The Best Free PDF Compare Tool

Side-by-side diff, color-coded lines, downloadable report. No signup, no watermark, no limits. 100% browser-based.

See Every Change

Upload two PDFs. The tool finds every line that was added, removed, or kept the same. A clean, easy-to-read list of changes.

Color-Coded Diff

Green = added lines. Red = removed lines. Gray = unchanged lines. Spot what changed at a glance, no reading every word twice.

100% Private

Both PDFs stay on your device. pdf.js extracts the text, a simple LCS diff finds the changes — all inside your browser. No uploads, no tracking.

Download Report

Click Download and get a single HTML file with the full diff report. Send it to a teammate, attach it to a ticket, or save it for your records.

Compare Two PDFs in 3 Steps

  1. Upload Two PDFs

    Drop the original in the left box and the modified in the right box. Both stay on your device. Either order works — green = added in the modified version.

  2. Click Compare

    The tool extracts text from every page of both PDFs using pdf.js, then runs a line-level LCS diff to find every added, removed, and unchanged line.

  3. Read the Diff, Download

    See the color-coded diff and the counts of added, removed, and unchanged lines. Click Download to save the full report as an HTML file.

Compare PDFs for Every Job

From contract edits to version compare — see every change at a glance.

Contract Edits

See exactly which lines your client or vendor changed in a contract. Spot added clauses, removed terms, or small word swaps before you sign.

Version Compare

Compare version 1 and version 2 of a report or proposal. See what was added, what was cut, and what stayed the same.

Legal Review

Lawyers and paralegals can compare two drafts of a brief or motion. Catch every change between revisions without reading line by line.

Audit Trails

See what changed between an old and a new policy, manual, or process document. Highlight every edit at a glance.

Pull-Request Style

Treat two PDFs like a pull request. The diff shows what was added (green) and what was removed (red) — same idea as git diff for code.

On the Go

Works on any phone, tablet, or laptop. Compare two PDFs right from your browser — no install, no app, no signup.

Complete Guide

PDF Compare: The Complete A-to-Z Guide

Everything you need to know about diffing two PDFs side by side — how LCS line diff works, color-coded changes, and how to ship a clean report.

What Is a PDF Compare Tool?

A PDF compare tool is a tool that takes two PDF files (an original and a modified version) and shows you exactly what changed between them. Instead of opening both PDFs side by side and scanning each page by eye, you drop both files onto the tool, click once, and get back a color-coded diff that highlights added lines in green, removed lines in red, and unchanged lines in gray.

Think of it as a spell-checker for documents. You give the tool two versions of a contract, report, or policy and it tells you exactly which lines were added, which were removed, and which stayed the same. Nothing is uploaded. Nothing is sent to a server. Every line of text is pulled out inside your browser with the open-source pdf.js library.

Why Use Our Free PDF Compare Tool?

Here are five reasons people pick our tool:

  • Side-by-side diff view. Drop both PDFs and the tool shows you the original on the left, the modified on the right, with every change highlighted. Added lines in green, removed in red, unchanged in gray.
  • Line-level LCS diff. The tool runs a longest common subsequence (LCS) line diff between the two PDFs. The result is a clean, easy-to-read list of changes — the same idea used by most text-diff tools.
  • Change counts at a glance. See the total count of added, removed, and unchanged lines at the top of the result so you can tell at a glance how different the two files are.
  • Downloadable HTML report. Click Download Report to save the full diff as a single HTML file you can email to a client, attach to a ticket, or archive for compliance.
  • 100% browser-based and free. No software to install. No sign up. No PDF is ever uploaded to a server. All diffing happens inside your browser with pdf.js. Free and unlimited forever.

How PDF Comparison Works: A Simple Explanation

Behind the screen, the tool uses two built-in browser features: the open-source pdf.js library and a JavaScript implementation of the LCS line diff algorithm. When you click Compare, the tool does four things:

First, pdf.js parses both PDFs and loads every page into memory. Second, it calls getTextContent() on every page of both files, which returns every text run with its position. Third, the tool groups these runs into lines and sorts them in reading order — one list of lines for the original, one for the modified. Fourth, it runs LCS on the two line lists to find the longest run of unchanged lines, then marks the rest as added or removed. The result is wrapped in color-coded HTML so added lines show in green, removed in red, and unchanged in gray.

All of this happens inside your browser. The original PDFs never leave your device. That means your contracts, legal briefs, financial statements, or compliance documents stay completely private — perfect for sensitive material you do not want to send through a cloud diff service.

Step-by-Step: Using the PDF Compare Tool

Follow these four steps to diff two PDFs side by side:

  1. Add the original PDF. Click the first drop zone and pick the original (or earlier) PDF, drag and drop the file, or paste from your clipboard. The page count and file size appear below the drop zone.
  2. Add the modified PDF. Click the second drop zone and pick the modified (or later) PDF the same way. The tool shows both files side by side so you can confirm which is which.
  3. Click Compare. Watch the progress bar move page by page through both PDFs (Extracting text from page 5 of 30…). The tool pulls every text run, groups them into lines, and runs the LCS diff.
  4. Review and download. See the color-coded diff below the drop zones. Added lines in green, removed in red, unchanged in gray. Click Download Report to save the full diff as a single HTML file.

Real-World Examples of PDF Comparison

Here are three real jobs where a PDF compare tool saves hours of work:

  • A revised contract from a client. A freelancer sends a 12-page contract to a client. The client signs and sends back a 12-page PDF with subtle wording changes. The freelancer drops both versions into the tool, clicks Compare, and sees exactly which clauses changed — no missed edits before signing.
  • An updated policy from legal. An HR lead gets a revised 30-page employee policy PDF from legal. They drop the old and new versions in, click Compare, and review the diff so they can brief the team on what changed in the next all-hands.
  • A redlined report from an editor. A writer sends a 20-page report to an editor and gets back a revised PDF. They drop both versions in, click Compare, and walk through the green-added and red-removed lines to accept or reject each change.

Who Uses a PDF Compare Tool? Industries and Roles

Lots of people need to diff two versions of a PDF. Here are five common groups:

  • Legal & contracts. Lawyers compare revised contracts, redline briefs, and amended filings so they can spot every change a counterparty made before signing. The diff is the difference between a fair deal and a hidden clause.
  • HR & compliance. HR leads compare revised employee handbooks, policies, and benefit summaries so they can brief the team on what changed and update training materials.
  • Writers & editors. Writers compare draft and edited versions of reports, white papers, and articles so they can review each editorial change and accept or reject them.
  • Compliance & audit. Auditors compare original and revised financial statements, regulatory filings, and disclosure documents so they can verify exactly what changed between versions.
  • Product & spec reviews. Product managers compare revised spec sheets, requirements docs, and design briefs so they can confirm what changed in the latest revision before sharing with the team.

PDF Compare Glossary: Key Terms Explained

These six words show up a lot when people talk about diffing PDFs. Here is what each one means:

Diff
Short for difference. A diff is a list of changes between two versions of a file. A line diff shows which lines were added, which were removed, and which stayed the same. Our tool produces a line diff between two PDFs.
LCS
Longest Common Subsequence. A classic computer science algorithm that finds the longest run of lines that are the same in both versions, then marks the rest as added or removed. The result is a clean diff with the fewest possible changes shown.
Text Layer
The actual words stored inside a PDF, separate from how they are drawn on the page. Real PDFs have a text layer you can search and copy. Scanned PDFs are just photos of pages and have no text layer — so the diff is empty.
Reading Order
The order in which text is read on a page, usually top-to-bottom and left-to-right (in English). The tool rebuilds reading order by sorting text runs by their vertical and horizontal positions on the page.
Color-Coded Diff
A diff view that uses colors to mark changes. Green for added lines (new in the modified version), red for removed lines (gone from the original), and gray for unchanged lines. Easy to scan at a glance.
pdf.js
An open-source JavaScript library from Mozilla that parses and renders PDF files inside a browser. We use it to read the text layer out of each PDF page without sending the file to a server.

Tips for Getting the Best Results

Follow these five tips and your diff will read clean and catch every change:

  • Use real PDFs, not scans. The tool reads the text layer inside the PDF. If either PDF is just photos of pages (a scan), there is no text to diff and the result will be empty. Run an OCR tool first.
  • Compare similar documents. The tool works best when both PDFs are versions of the same document. Comparing two unrelated PDFs will show every line as added or removed — not useful.
  • Check the change counts first. The tool shows the total count of added, removed, and unchanged lines at the top. If the numbers look surprisingly big, the PDFs may be very different or one may be a scanned version with no text layer.
  • Expect line diff, not visual diff. The tool compares text content only. If you move a paragraph, change a font, or swap an image, the text may be the same so the diff may show no changes. For a visual pixel diff, use a dedicated image-compare tool on rendered page images.
  • Download the report for the archive. Click Download Report to save the full diff as a single HTML file. Email it to the team, attach it to the contract ticket, or archive it for compliance — the report is a stable record of what changed.

Common Mistakes to Avoid

These four mistakes cause most PDF compare problems:

  • Comparing scanned PDFs. A scanned PDF has no text layer — it is just photos of pages. The diff will be empty. Run an OCR tool first to add a text layer, then compare.
  • Expecting visual layout changes to show up. The tool compares text content only. If you swap a font, move a paragraph, or change an image, the text may be the same so the diff shows no changes.
  • Comparing two completely different documents. The LCS algorithm finds the longest run of unchanged lines. If the two PDFs are unrelated, every line will show as added or removed and the diff is not useful.
  • Trusting the diff on multi-column PDFs. Multi-column PDFs (like magazines and newsletters) may extract in the wrong reading order because pdf.js reads position-by-position, not column-by-column. The diff may show false changes — read carefully.

PDF Compare vs Other Diff Tools

A text diff tool like Git diff or VS Code compares plain text files line by line. The trade-off is that you have to extract the text from the PDF first — which is exactly the step our tool does for you. Use a text diff tool when you already have the text out of the PDF.

A PDF compare tool like ours reads both PDFs, extracts the text in reading order, runs the LCS diff, and shows you a color-coded result in one click — no pre-extraction required. Use PDF compare when you have two PDF files and want to know what changed; use a text diff tool when you already have the text out and want to compare revisions in your editor. Most legal and compliance teams use both tools together — PDF compare for the initial diff, text diff for the redline editing pass.

Ready to Compare Your PDFs?

You now know what a PDF compare tool is, how pdf.js and the LCS algorithm work together inside your browser, who uses it, and what mistakes to avoid. The next step is to try it yourself. Open the tool above, drop your original and modified PDFs onto the two upload zones, click Compare, and review the color-coded diff. In a few seconds you will see every added, removed, and unchanged line at a glance — and you can download the full report as a single HTML file. It is free, private, and runs fully inside your browser.

Jump back to the PDF compare tool above ↑

More Free PDF Tools

44All free, all browser-based. Pick the right tool for the job.

Add Image to PDF

Place logos, photos, stamps

Add Text to PDF

Add text to PDF

Blank PDF Maker

Create empty PDF pages

HTML to PDF

Convert HTML to PDF

Image to PDF

Convert images into a PDF

JPG to PDF

Convert JPG to PDF

PDF Annotate

Highlight, draw and note up PDF

PDF Attachments

Add or remove embedded files

PDF Booklet

Fold-ready booklets and N-up

PDF Bookmarks

Edit the PDF table of contents

PDF Compressor

Shrink PDF file size

PDF Crop

Crop PDF pages

PDF Extract Pages

Extract pages from PDF

PDF Form Filler

Fill PDF form fields

PDF Form Maker

Create fillable PDF forms

PDF Grayscale

Color to black and white

PDF Header & Footer

Stamp headers, footers, Bates

PDF Image Extract

Pull embedded images out

PDF Link Editor

Add or remove links

PDF Metadata

Edit PDF metadata

PDF Merger

Combine PDFs into one

PDF OCR

Make scans searchable

PDF Organizer

Organize PDF pages

PDF Page Numbers

Add page numbers to PDF

PDF Page Remover

Delete pages from PDF

PDF Page Reorder

Reorder pages in PDF

PDF Protect

Add password to PDF

PDF Redact

Black out text in PDF

PDF Rotator

Rotate pages in PDF

PDF Sign

Type, draw or upload a signature

PDF Splitter

Split PDF into pieces

PDF to HTML

Convert PDF to HTML

PDF to JPG

Convert PDF pages to images

PDF to Markdown

Convert PDF to Markdown

PDF Unlock

Remove password from PDF

PDF Viewer

Read PDFs with search

PDF Watermark

Add watermark to PDF

PDF Word Count

Words and characters per page

Text to PDF

Turn plain text into a PDF

PDF to Word

Convert PDF to editable DOCX

PDF to Text

Extract plain text from PDF

Bates Numbering

Sequential legal page stamps

PDF Background

Color or image page background

PDF Sanitizer

Remove hidden information

Frequently Asked Questions

Is the PDF compare tool free?

Yes. 100% free. No signup, no account, no watermark, no daily limit. Compare one pair of PDFs or a hundred — same free price forever.

How does the PDF compare tool work?

The tool loads both PDFs inside your browser using pdf.js. It extracts the text from every page in reading order. Then it runs a simple LCS (longest common subsequence) line diff between the original and the modified version. Added lines are shown in green, removed lines in red, and unchanged lines in gray. You can download the result as a single HTML file. Nothing is sent to a server.

Is my PDF uploaded to a server?

No. Your PDFs never leave your device. All text extraction and diffing happens inside your browser using pdf.js. There is no upload, no server copy, no tracking. 100% private.

Does the tool compare visual layout or images?

No. This tool compares text content only, not visual layout or images. If you move a paragraph, change a font, or swap an image, the text may be the same so the diff may show no changes. For a visual pixel-diff, use a dedicated image-compare tool on rendered page images.

What is LCS diff?

LCS stands for Longest Common Subsequence. It is a simple algorithm that finds the longest run of lines that are the same in both versions, then marks the rest as added or removed. The result is a clean, easy-to-read list of changes. It is the same idea used by most text-diff tools.

What happens if the two PDFs have different page counts?

The tool compares all the text from both PDFs. Lines that only appear in the longer PDF are shown as added (green). The tool shows the total count of added, removed, and unchanged lines so you can see at a glance how different the two files are.

Can I compare scanned PDFs?

No. Scanned PDFs are images, not text. This tool reads the text layer inside real PDFs. If a PDF is just photos of pages, the text layer is empty and the diff will be empty. Run an OCR tool first to add a text layer, then use this compare tool.

Will the diff match my exact words?

Usually yes. The tool rebuilds lines from the PDF text in reading order. If a PDF has unusual text spacing, very wide columns, or strange font metrics, two words on the same visual line may split into two diff lines. The result is still useful for spotting changes — it just may not be pixel-perfect.

Ready to Compare Two PDFs?

Free, no signup, no watermark. Side-by-side diff. Color-coded lines. Downloadable report. 100% browser-based.

Start Now
More free PDF tools — PDF Redact · PDF Merger · PDF Splitter · PDF Watermark · PDF Compressor