comparedocuments.app

Compare Documents

Compare two versions of a document, as Word files, PDFs or pasted text, and see every word that was added, removed or changed and every paragraph that was moved, without uploading either one.

How to compare two documents

  1. Add the original

    Drop the earlier version on the Original sheet above, or press Choose a file. Word files (.docx), PDFs and plain text files (.txt and .md) work; an RTF file gets the message "Choose a Word (.docx), PDF, or plain text file." To compare text instead of a file, press Or paste text and paste it into the box that opens. Try a sample loads two versions of a short agreement if you want to see a comparison first.

  2. Add the revised version

    Drop the later version on the Revised sheet. If you drop or choose two files at once, they fill both sheets in the order of their names, and Swap exchanges the two sides. The comparison starts as soon as both sheets have content.

  3. Go through the changes

    A summary line counts the changes, for example "37 changes: 12 added, 9 removed, 14 changed, 2 moved. 94 percent the same." Switch between Side by side, Redline and Changes, and step from one change to the next with Next change and Previous change, or the N and P keys.

  4. Save the result

    Download redline (Word) saves a Word file whose changes are tracked changes. Download redline (HTML) saves the redline as a web page, Print / Save as PDF prints it or saves it as a PDF, Download change list (CSV) saves the list of changes for a spreadsheet, and Copy summary copies the summary line.

Word's own Compare command on Windows and Mac, Google Docs, and how to send a redline: how to compare two Word documents.

Three ways to read the changes

Side by side puts the original on the left and the revised version on the right, with matching paragraphs on the same row and the changed words marked inside each row. Redline shows one column, the way a marked-up copy looks: removed text struck through and added text underlined. Changes lists only what changed, numbered, each with its kind (Added, Removed, Changed or Moved), its page in a PDF or else the heading above it, and the start of its paragraph. Press a change in the list to see it in Side by side.

In a long document with few changes, most rows are unchanged. Changes only folds each run of unchanged rows into one line, such as "14 unchanged paragraphs", which opens when you press it.

The marks do not depend on color. Removed text is struck through and added text is underlined. In the margin, each change has its number and a sign: "+" for added, "−" for removed, "−/+" for changed and "↔" for moved. Moved text has a dashed underline and a link, "Moved · Go to other end", to its other place. The colors (red for removed, green for added, blue for moved) come on top of those marks.

Compare a Word document with a PDF

The two sides do not have to be the same kind of file. A Word file can be compared with a PDF, and either one with pasted text. That helps when you have the Word file and the other side sent back a PDF: the text of both is read and compared, and the formatting and layout of both are left aside.

In the tests, a Word file and a PDF with the same text compare with no change reported. A scanned PDF with no text layer has no text to read, so it cannot be compared: Compare PDF Files explains why.

Compare two versions of a contract

When a contract, lease or policy comes back with edits and no tracked changes, compare the version you sent with the one you received. Every changed word is marked, so a changed amount, date or name, or a "not" that appeared or disappeared, is shown in the row where it happened. Leave Ignore punctuation, under Comparison options, off for a contract, so that a removed comma still counts as a change.

The comparison shows what changed in the words. It does not say what a change means, it is not legal advice, and it is no substitute for reading the contract. Formatting, pictures, text boxes, comments and the headers and footers of a Word file are not compared, so read those parts yourself.

What is compared, and what is not

The tool compares the words of the two versions, block by block: headings, paragraphs, list items, table rows and footnotes. Of the structure, it reports only a heading whose level changed. It does not compare fonts, bold or italic, colors, images, page layout or where the text sits on a page. A paragraph that only changed from regular to bold text, or into a list item with the same words, shows no change.

Some parts of a Word file are not read at all: comments, headers and footers, text boxes and pictures. When a file has any of them, a note under its sheet says so, for example "Comments are not compared." or "Pictures and text boxes are left out." Tracked changes already in a Word file are read as if they were accepted: inserted text is compared and deleted text is not, and the note "Tracked changes in this file are read as accepted." appears. Old Word files (.doc), password-protected PDFs and scanned PDFs cannot be read, and each gets a message instead of a result: an old .doc gets "Save it as .docx and choose it again", a locked PDF "Open an unlocked copy", and a scan "No text was found."

How large the documents can be

There is no account and no limit on how many comparisons you make. Each file can be up to 100 MB, 3,000 pages and 1,500,000 words, and pasted text up to 1,500,000 words; a larger one gets the message "Choose a document under 100 MB with at most 3,000 pages and 1,500,000 words." A long result is drawn 60 rows at a time: more rows appear as you scroll down, or when you press Show more paragraphs. In the tests, a pair of 300-page PDFs is compared, drawn in parts and stepped through to its last change.

Your documents are not uploaded

A comparison tool that works on a server needs both files sent to it. This one reads and compares them in your browser, on your own device, so neither document leaves it. Once the page has loaded, it also works with no internet connection.

You can check this yourself. Load the page, disconnect from the internet and compare two files. Or open your browser's developer tools and watch the Network tab while you do: no request carries your files, their names or their text. The only requests to another server go to Google Analytics, which counts visits, and there is no session recording on this site. How to check that nothing is uploaded has the steps.

Frequently asked questions

Is this document comparison tool free?

Yes. There is no charge, no account and no limit on how many documents you compare.

Are my documents uploaded to a server?

No. Both files are read and compared in your browser, and the site has nowhere to upload them to. The site counts visits with Google Analytics, which never receives your documents, their text or their file names, and it has no session recording.

Is there a way to compare two files for differences?

Yes. Add the two versions to this page, one on each sheet. The summary line counts what was added, removed, changed and moved, and the three views show each change where it happened. Word files, PDFs and plain text work, in any pair.

Can I compare a Word document with a PDF?

Yes. Put the Word file on one sheet and the PDF on the other. The text of both is read and compared; formatting and layout are not. The PDF needs a text layer, which a scanned PDF has only if it was run through text recognition (OCR).

What does "percent the same" mean?

It is the share of the words in the two versions that were neither added nor removed, rounded to a whole percent. A moved paragraph counts as the same, apart from words that changed in it. Punctuation and spaces are not words, so a change to them alone leaves the figure at 100 percent, and in a long document a few changed words can also round to 100 percent: the count of changes before it shows every change. With Ignore case on, words that differ only in capital letters count as the same.

Does it compare formatting?

No. It compares the words, block by block, and the level of each heading, not fonts, bold or italic, colors, images or layout. Word's own Compare command, described in the guide linked under the steps, can include formatting changes.

Can AI compare two documents?

This tool does not use AI. It compares the text with a fixed method, described on How it works, so the same two files with the same options always give the same list of changes, and every change is shown where it happened. Nothing is sent to an AI service or to any other server.

Does it work on a Mac or a phone?

It runs in a web browser with nothing to install, so it can be used on a Mac, a Windows PC, Linux or a Chromebook. On a narrow screen the two sheets sit one above the other. It has not been tested on phones yet.