comparedocuments.app

Compare PDF Files

Compare the text of two PDF files side by side and find every change with its page number, without uploading either PDF.

How to compare two PDF files

  1. Add the two PDFs

    Drop the earlier PDF on Original and the later one on Revised, or press Choose a file on each. A Word file or pasted text can be on either side as well.

  2. Keep page headers out

    Leave out repeated page headers and footers, under Comparison options, is on when the page opens (unless you turned it off on an earlier visit), so running titles and page numbers do not show up as changes.

  3. Go through the changes

    Choose Changes for a numbered list of every change with its page number. Press one in the list to see it in Side by side.

  4. Save a redline PDF or a list

    Press Print / Save as PDF, which prints the redline, and choose to save as a PDF in the print dialog. Download change list (CSV) saves every change with its number, kind, page, original text and revised text.

How the text is read from a PDF, and what is left out: how the tool works.

A comparison of the text, not the look

The tool reads the text of each PDF, joins its lines into paragraphs and compares the words. It does not compare fonts, colors, pictures, drawings or where on the page the text sits. A document that was laid out again with new fonts or margins is compared by its words, so lines that break in new places are not a change. Text is read page by page, though, so a paragraph that runs onto the next page is read as two parts: when a new layout moves a page break into a paragraph, that paragraph shows as changed. Turn on Ignore spaces and line breaks and the two parts are matched with the whole paragraph.

A word broken with a hyphen at the end of a line is joined again before the comparison. Each paragraph keeps the number of the page it is on, which the Changes view and the CSV list show.

Running headers, footers and page numbers

A page number is different on every page, and a running header or footer can change between drafts, so these lines would fill the list with changes nobody needs. With the option on, a line near the top or bottom of the page that repeats at the same height on more than half of the pages is removed before the comparison; page numbers such as "7", "Page 7" or "7 of 20" count as the same line. This is done for each PDF on its own, and a note under the sheet says "Repeated page headers and footers were left out." Turn the option off to compare those lines as well; the PDFs are not read again.

Scanned PDFs and PDFs with a password

A scanned PDF holds a picture of each page, and unless it was run through text recognition (OCR) it has no text. This tool does not read text from pictures, so such a file gets the message "No text was found. The tool does not read pictures of text." instead of an empty result. When only some pages have no text, a note under the sheet says "Some pages have no readable text." It does not say which pages.

A PDF that needs a password to open cannot be read here, and it gets the message "This PDF or document is password protected. Open an unlocked copy." The other sheet keeps its file, so you can replace only the one that failed.

How to compare two PDFs: three ways

In your browser, on this page. Add the two PDFs and read the changes. There is nothing to install and the files are not uploaded. It compares text only.

In Adobe Acrobat Pro. Adobe's help page for its Compare Files tool is written for Acrobat Pro: open the two versions in Acrobat, choose Compare files from the All tools pane and select Compare. Acrobat shows the result in a new document that starts with a summary page, and it can also compare scanned pages by their pixels.

In Microsoft Word. Word opens a PDF by converting a copy of it into a Word document, and two converted copies can then be compared with Word's Compare command. Microsoft says the conversion works best with files that are mostly text, and that the converted document might not look exactly like the PDF, with lines and pages breaking in different places.

Make a redline PDF

A redline PDF is a PDF of the marked-up comparison, for someone who should read the changes without editing them. Press Print / Save as PDF, which prints the Redline view whatever view is open, and save it as a PDF from your browser's print dialog. The printout has the summary line and every row, in black: removed text struck through, added text underlined and moved text with a dashed underline, so the marks can be read on a black and white printout too.

If the reader should answer each change, send a Word file instead. Compare Word Documents explains the Word redline with tracked changes, which this page can download as well.

Your PDFs stay on your device

The PDFs are opened with pdf.js, an open-source PDF reader, inside your browser, and the comparison runs there as well. Neither file is sent anywhere. To see it for yourself, load the page, turn off your internet connection and compare two PDFs: it still works.

Frequently asked questions

How can I compare two PDF files for differences?

Add both PDFs to this page. The summary line counts the changes, Changes lists each one with its page number, and Side by side shows the two texts next to each other with the changed words marked.

Does Adobe have a PDF comparison tool?

Yes. Adobe Acrobat Pro has a Compare Files tool, and Adobe's help page for it is titled "Compare two versions of a PDF file (Acrobat Pro)". It compares text and, for scanned documents and drawings, pixels. This page compares text only and needs no Acrobat.

How do you compare two PDF files in Word?

Open each PDF in Word, which converts a copy into a Word document, save both, then compare them with the Compare command on the Review tab. Microsoft notes that a converted document may not match the PDF exactly, and that a page made mostly of charts or other graphics may come through as an image whose text cannot be edited.

Can it compare scanned PDFs?

Only if the scan has a text layer from text recognition (OCR). A scanned page without one is a picture, and the tool does not read text from pictures, so such a PDF gets a message saying so. Acrobat Pro can compare scanned pages by their pixels.

How can I tell if two PDFs are the same?

Compare them here. If the summary line reads "0 changes: 0 added, 0 removed, 0 changed, 0 moved. 100 percent the same.", the text of the two PDFs is the same with the options you chose. Pictures, fonts and layout are not compared, so two PDFs with the same text can still look different.

Can I view two PDFs at the same time?

Side by side shows the text of both, the original on the left and the revised version on the right, with matching paragraphs on the same row. It shows the text, not pictures of the pages.

Can I compare PDF files on a Mac?

Yes. Open this page in a browser on the Mac and add the two PDFs. Nothing is installed.

Are my PDF files uploaded?

No. Both PDFs are read in your browser and never leave your device. The site counts visits with Google Analytics, which never receives your files, their text or their names, and it has no session recording.