FileGizmo PDF tools

Compare two PDF files

Compare the text of two PDF versions line by line in your browser and see exactly which lines were added or removed.

Never uploadedYour file stays on this device

Text is compared line by line from each document's text layer. A scanned page has no text layer until OCR adds one.

Simple by design

Compare PDF in three steps

The practical question when someone returns a document is narrow: what is different from the version I sent. Reading both copies side by side to answer it is slow and unreliable, and the changes that matter are exactly the ones easiest to miss.

This tool answers that question directly. It reads the text layer of both files, reconstructs the lines from the position of the text on each page, and marks every line that was added or removed. The counts come first, because the first thing you usually want to know is whether anything changed at all.

Line reconstruction is the part that decides whether the result is useful. A PDF stores glyphs at coordinates, not lines, so text has to be grouped back into lines before it can be compared. Comparing whole pages instead reports a page as changed the moment one word moves, which tells you nothing. Grouping into lines puts each difference next to the sentence it happened in.

Two limits stated plainly. Only text is compared, so two files can match here and still differ in fonts, images, or metadata, and the result says exactly that rather than implying a complete match. And the comparison needs a text layer, so scans of paper need OCR run over them first.

Both documents stay on your device. That matters more for this tool than for most, because the pair being compared is usually a contract, an agreement, or a draft that came back from someone else, and the reason for checking it is often that you do not fully trust the change.

  1. 1

    Choose the original document and the revised copy

  2. 2

    Let both text layers be read and lined up

  3. 3

    Read the marked differences or download the diff

Good to know

Frequently asked questions

Are both documents uploaded to compare them?

No. Both are read inside your browser. This matters more here than for most tools, because the pair being compared is usually a contract or an agreement before and after somebody else edited it.

Does it compare formatting and images?

No. Only text is compared. Two files can have identical text and still differ in fonts, images, or metadata, and the result says so rather than implying a full match.

Will it work on scanned documents?

Not directly. Comparison reads the text layer, which a scan of paper does not have. Run each file through the OCR tool first.

Why does it compare lines rather than words?

Lines are recovered from the position of the text on each page, so a change is reported next to the sentence it happened in. A word-level diff across a re-flowed document tends to mark almost everything as changed.

Learn more

Related guides

File safety guideHow to verify a file checksumCheck that a download arrived intact by comparing its SHA-256 against the published checksum, and understand what that check does and does not prove.