No tool matches “”

Try a format (“webp”, “mp3”) or a verb (“merge”, “compress”).

Loading index

↵to open

PDF Tools · Updated November 8, 2026 · Reviewed by FormatFlow Editorial

PDF Compare — Diff Two PDFs Side by Side

You can compare the text of two PDFs in your browser: lines are extracted page by page, normalised and diffed, and the result shows added, removed and changed lines with a similarity score.

Runs in your browserFree · No sign-up · No watermark
PDFTXTRuns in your browser
Loading the tool…

Everything runs locally in this tab. No file is uploaded while the tool loads.

Use this tool as a step in a repeatable browser pipeline.

Add to Workflow

This tool runs in your tab. Nothing is uploaded and no copy is stored.

How files are handled

Key facts

Category
PDF Tools
Processing
In your browser — nothing is uploaded
Input formats
PDF
Output format
TXT
Maximum size
Up to 50 MB each
Requirements
Chrome, Edge, Firefox or Safari · Both PDFs need a selectable text layer
Price
Free, no account, no watermark
Last updated
Nov 8, 2026

SummaryPDF Compare is a free online pdf tools tool. You can compare the text of two PDFs in your browser: lines are extracted page by page, normalised and diffed, and the result shows added, removed and changed lines with a similarity score. Two versions of a contract, report or specification are often compared by eye, one scroll at a time. A text diff does the mechanical part instead: extract the text from both files, align the lines and mark what was added, removed or left unchanged. It runs in your browser — nothing is uploaded. It accepts PDF and produces TXT. The maximum size is up to 50 mb each. Text only: layout, images, fonts, annotations and signatures are not compared. Scanned PDFs need OCR before they can be compared; pages with no text layer are reported as empty.

At a glance

Formats
PDF → TXT
Processing
In your browser
Max size
Up to 50 MB each
Price
Free, no account
Updated
November 8, 2026
All PDF Tools

About PDF Compare

Two versions of a contract, report or specification are often compared by eye, one scroll at a time. A text diff does the mechanical part instead: extract the text from both files, align the lines and mark what was added, removed or left unchanged.

This tool extracts the text layer of each page from both PDFs, normalises whitespace and compares the lines page by page. It reports the counts and a similarity percentage computed only from the compared lines, shows a unified diff per page and lets you download the result as a text file. Pages are matched by number, so a page-count mismatch is called out explicitly.

What this tool does

The details that matter when you use PDF Compare for real work.
  • Line-based diff

    A real LCS/Myers-style comparison aligns the lines of both documents and marks additions, removals and unchanged text.

  • Page-by-page results

    Each page pair is compared separately, so changes stay tied to the page where they happened.

  • Similarity score

    The summary reports inserted, deleted and unchanged lines plus a percentage based only on the compared lines.

  • Page-count mismatch warning

    When the documents have different numbers of pages, missing pages are reported instead of silently ignored.

  • Unified diff view

    Changed lines are shown in reading order with +/− markers, and the whole result can be downloaded as a .txt file.

  • Local and private

    Text extraction, normalisation and diffing run in the browser tab; neither PDF is uploaded.

How to use PDF Compare

No account, no installation — the whole job happens in this browser tab.
  1. 01

    Add the first PDF

    Drop the original or older version into the first slot; the page count is read locally.

  2. 02

    Add the second PDF

    Drop the revised or newer version into the second slot.

  3. 03

    Run the comparison

    Click Compare PDFs; both text layers are extracted page by page.

  4. 04

    Read the summary and diff

    Check the added/removed/changed counts and the similarity percentage, then inspect each page's unified diff.

  5. 05

    Download the diff

    Save the comparison as a .txt file for a review note or a change record.

Supported formats and limits

Input
PDF
Output
TXT
Processing
Client-side, in your browser. Nothing is uploaded.
Maximum size
Up to 50 MB each
Requirements
Chrome, Edge, Firefox or Safari · Both PDFs need a selectable text layer

Limitations worth knowing

  • Text only: layout, images, fonts, annotations and signatures are not compared.
  • Scanned PDFs need OCR before they can be compared; pages with no text layer are reported as empty.
  • Line alignment is automatic and can look noisy when a document is re-saved or heavily reflowed.
  • Up to 50 MB per PDF and a line cap per document; very long documents may be truncated in the diff.

Privacy and file handling

Both PDFs are opened and compared entirely inside this browser tab with pdf.js. The files, their text and the diff are never uploaded or stored, and closing the page discards everything.

Read the full privacy policy

PDF Compare FAQ

Short, direct answers to the questions people ask before using this tool.
Does this compare the visual appearance of the PDFs?
No. Only the text layer is compared. Layout, fonts, colours, images and annotations are ignored, so two PDFs that look different can score as identical if their text matches.
Why does the tool say the PDFs have no text?
A scanned PDF contains images of text, not a text layer, so there is nothing to extract. Run both files through OCR first, then compare the searchable versions.
How is the similarity percentage calculated?
It is based only on the compared lines: unchanged lines divided by the larger of the two line counts, expressed as a percentage. Pages beyond the shorter document are reported separately, so the number reflects text that could actually be compared.
How are the lines aligned?
Both pages are split into lines after whitespace normalisation, then a longest-common-subsequence diff aligns identical lines and marks the gaps as added or removed. Blank lines are ignored.
Are the PDFs uploaded?
No. Both files are read with pdf.js in the browser tab and the diff is computed locally; nothing is sent to a server.
Can I compare password-protected PDFs?
No. Encrypted PDFs cannot be read here; unlock them first with the Unlock PDF tool, then compare the unlocked copies.
Why does a page show changes even though it looks the same?
Text extraction depends on how the PDF stores text. A re-saved file can split or merge lines, change hyphenation or re-encode characters, so equivalent-looking pages may still produce small text differences.
Is the diff suitable for legal review?
It is a useful first pass, but it only compares extractable text and can miss visual changes, images, signatures and tracked changes. Use it as a triage tool and verify important documents manually.

Background reading

Format guides that explain the trade-offs behind PDF Compare.