ShreePrati logoShreePrati
PDF

Compare PDF

Compare two PDFs to see differences in page count and extracted text, with added and removed lines and a list of changed pages highlighted.

Original (A)

Drag & drop your PDF

or choose a file below

PDF · up to 50 MB

Modified (B)

Drag & drop your PDF

or choose a file below

PDF · up to 50 MB

How to compare two PDFs

Upload two PDFs. The tool compares page counts and extracted text, then shows added lines, removed lines and which pages changed.

Text-based comparison

Comparison uses the selectable text in each PDF. Scanned, image-only PDFs contain no text to compare — run OCR first.

Step by step

  1. Add the older or reference version under Original (A). Each file can be up to 50 MB.
  2. Add the newer or edited version under Modified (B). The order matters: lines only in B are reported as added, lines only in A as removed.
  3. Press Compare PDFs. Both files are read in your browser, page by page.
  4. Review the summary, the list of changed pages and the Removed and Added lists.
  5. Choose Compare others to clear both files and start a new comparison.

Reading the result

The result card starts with four numbers: the page count of each file and how many lines were added and removed. If the text and the page counts match exactly, you see a message saying the two documents are identical. Otherwise a sentence lists the page numbers whose text differs, or explains that only the page counts differ.

Below that, the Removed column shows lines that exist in A but not in B, and the Added column shows lines that exist in B but not in A. Each column shows up to 50 lines followed by a count of the rest. Long lines are shortened to fit; hover over a line to read it in full.

How lines and pages are matched

Text is split into lines, trimmed and stripped of repeated spaces, and empty lines are ignored. A line counts as added or removed only if the exact same line does not appear anywhere in the other file. This means a line that was edited, even by a single character, shows up twice: once as removed (the old wording) and once as added (the new wording). A line that was simply moved to a different place, or a line that was duplicated, is not reported, because the same text still exists in both files.

Changed pages are found by comparing page 1 with page 1, page 2 with page 2, and so on. If a page was inserted or deleted near the start of a document, every later page shifts and is likely to be listed as changed, even though its text only moved. In that case, the Added and Removed lists are the better guide to what really changed.

Practical uses

  • Checking what a client or colleague changed in a revised contract, quote or agreement.
  • Confirming that a corrected report, invoice or certificate contains the requested fixes.
  • Comparing two exports of the same document to see whether anything is missing.
  • Spotting edits between drafts of an assignment, thesis or policy document.
  • Making sure a reissued form or notice is really unchanged before you sign or file it.

Limitations and tips

  • Only text is compared. Changes to images, colours, fonts, bold or italic styling, tables drawn as graphics and page layout are not detected.
  • Line breaks come from how each PDF was created. If the same paragraph wraps differently in the two files, many lines may be reported as changed even though the wording is the same.
  • For scanned documents, run each file through OCR PDF first, then compare the OCR results. If only one file has text, the result warns that the comparison is limited.
  • For the clearest result, compare files exported from the same program with the same page size and settings.
  • PDFs that need a password to open cannot be read, so they cannot be compared.

Frequently Asked Questions

Differences in page count, plus added, removed and changed text lines, and a list of changed pages.

Related Tools