FormatterHQ

Compare PDF

Compare the text of two PDF files and see every added, removed and changed sentence highlighted, side by side or as one list. Nothing is uploaded.

Loading tool…
Ready.

How to use the Compare PDF

  1. Drop the original PDF on the left and the changed version on the right.
  2. Keep Compare by: Sentences for documents whose layout changed, or choose Lines for line-by-line text such as code listings.
  3. Choose side-by-side or unified view, and whether to show only the changes with context.
  4. Read the highlights; click Download .diff to keep a record.

Compare PDF files by their text

A new version of a contract, policy or specification rarely comes with an honest list of changes. To compare PDF versions here, drop both files: the text of every page is extracted and compared, and each difference is highlighted. Inside a changed sentence, the exact words that were added or removed are marked, so a changed number or a quietly inserted "not" stands out.

Sentences or lines

A PDF stores lines exactly as they were laid out. If the new version has a different font size, column width or margin, almost every line breaks in a different place, and a line-by-line comparison flags the whole document. Compare by: Sentences first joins the lines back together, including words hyphenated across a line break. It then puts one sentence per line, so only real edits show. Use Lines for content where line breaks matter, such as code listings, poems or addresses.

Example: these two layouts are treated as identical when comparing by sentences.

The supplier shall deliver the goods within
30 days of the order date.
The supplier shall deliver the goods within 30 days
of the order date.

Reading the result

  • Side by side shows the original on the left and the new version on the right, with removed text in red and added text in green.
  • Unified shows one column with removed lines (−) above their replacements (+).
  • Changes with context hides long unchanged stretches, showing three lines around each change.
  • Page markers add a line such as --- Page 4 --- so you can find each change in the PDF.

Typical uses

Lawyers and procurement teams check a returned contract against the version they sent. Students see what a supervisor changed in a thesis. Product teams find what moved between two releases of a specification. In each case the .diff download keeps a record of the changes.

What is compared

Only the text is compared. Changes to images, colours, fonts or layout that do not change the words are not reported. Scanned PDFs have no text layer, so they cannot be compared this way without OCR. Password-protected files open once you enter the password.

To compare text you can paste instead, use the diff checker. To read a PDF's text on its own, use PDF to text.

Frequently asked questions

How do I compare two PDF documents for differences?
Drop the original PDF on the left and the new one on the right. Every added, removed or changed sentence is highlighted, with the changed words marked inside it.
Why does every line show as changed?
The layout changed, so the lines break in different places. Choose Compare by: Sentences, which ignores line breaks and compares sentence by sentence.
Does it compare images and formatting?
No. Only the text is compared. Changes to pictures, colours or fonts that leave the words the same are not reported.
Can I compare scanned PDFs?
Not directly. Scanned pages are images without text, so run them through OCR software first.
Can I save the list of changes?
Yes. Click Download .diff for a standard unified diff file, or Copy diff to paste the changes into an email or ticket.
Are my PDFs uploaded?
No. Both files are read by your browser and never sent to a server.

Last updated October 11, 2026

Related tools

Compare CSV Files Compare two CSV files by key column or row position: see added, removed and changed rows with old and new values, then export the differences. Compress PDF Reduce PDF file size losslessly or by turning pages into JPEG images, with Low/Medium/High levels or a target such as 100 KB. No upload. Delete PDF Pages Remove pages from a PDF: click the thumbnails or type page numbers, then download the shorter file. Deleted pages are fully removed. No upload. Extract Images from PDF Extract every image from a PDF: JPEGs saved as the original files, other images as PNG. Duplicates removed; download one or all as ZIP. No upload. Merge PDF Combine several PDF files into one, in the order you choose. Page counts are checked as you add files. Merged in your browser, nothing uploaded. Organize PDF Pages Reorder the pages of a PDF: drag thumbnails into a new order, or move pages with arrows, then download. Runs in your browser, no upload. PDF Font Checker List the fonts in a PDF and check whether each one is embedded or subset, its type, encoding and the pages it is used on. Runs in your browser. PDF to PNG Converter Convert PDF pages to lossless PNG images with sharp text and lines, at 72–300 DPI. Download pages one by one or as a ZIP. No upload. PDF to Word Converter Convert PDF to an editable Word document (.docx) with paragraphs, headings, lists, tables and images, or keep the exact look. Free, in your browser. PDF Viewer Open and read a PDF in your browser: thumbnails, outline, zoom, rotate, search with highlights, document info, download and print. No upload. PDF Word Counter Count the words, characters, sentences and pages in a PDF, per page and in total, with reading time. Choose a page range. No upload. PNG to PDF Converter Turn PNG screenshots and graphics into a PDF, one image per page, without losing quality. Choose page size and margins. Runs in your browser.