comparedocuments.app

Text Compare

Paste two texts and see what changed between them, word by word or character by character, without the text leaving your device.

How to compare two texts

  1. Paste the first text

    Paste or type the original text in the Original box, which is open, with the cursor in it, when the page loads.

  2. Paste the second text

    Paste the changed text in the Revised box. The comparison starts as soon as both boxes have text.

  3. Choose words or characters

    Set Compare by, under the boxes, to Words or Characters. Under Comparison options, turn on Ignore case, Ignore spaces and line breaks or Ignore punctuation if those differences do not matter to you.

  4. Read and copy the result

    Choose Side by side, or Redline for one inline view. Copy summary copies the summary line, and Download change list (CSV) saves every change.

How the comparison works, and how to check that your text is not sent anywhere: how the tool works.

Compare by words or by characters

By words, a changed word is marked as a whole: "recieve" corrected to "receive" shows the old word removed and the new one added. By characters, only the letters that differ are marked, which is easier to read for typos, codes, numbers and names. For ordinary prose, whole words are usually easier to follow.

Ignore case, spaces and punctuation

Ignore case treats "Total" and "total" as the same word. Ignore spaces and line breaks leaves out every space, tab and line break when the texts are compared, so two spaces where there was one no longer count, and neither does a paragraph that is broken over several lines in one text and written on one line in the other. Because every space is left out, "ice cream" and "icecream" also count as the same. Ignore punctuation leaves commas, periods, quotation marks and other punctuation out of the comparison.

Each option compares the texts again as soon as you change it. Your choices are saved in your browser and used on every page of this site on your next visit.

How pasted text is split and lined up

Pasted text is split into paragraphs at blank lines. If a text has no blank lines, each line is its own paragraph. The two lists of paragraphs are then lined up with each other, so a paragraph added in the middle does not make everything after it look changed.

With Detect moved text on, which it is unless you turn it off, a paragraph of at least 8 words that was moved to another place, with at least 90 percent of its words the same, counts as one move. It is shown as moved in both places, with a link between them, instead of as one paragraph removed and another added.

Compare two text files

Plain text files (.txt) and Markdown files (.md) can be dropped on a box, or chosen with Choose a file, instead of pasted. The file's name then shows on its sheet, and the file is compared as plain text: the # and * characters of Markdown count as text. Word documents and PDFs work on this page too; Compare Word Documents and Compare PDF Files explain what is read from them.

Is it safe to compare text online?

It depends on where the comparison runs. A tool that compares on its server receives the text you paste, and you have to trust what it does with it. This page compares in your browser: the text is never sent, and the page still works with your internet connection turned off once it has loaded.

That matters for text you would not post publicly, such as contract clauses, drafts, emails, personal data or a configuration file with passwords in it. There is no session recording on this site, and Google Analytics, which counts visits, never receives the text.

Frequently asked questions

How can I compare two texts?

Paste one into each box on this page. Added words are underlined, removed words are struck through, and the summary line counts the changes. Choose Characters instead of Words to see single letters that changed.

What does a diff checker do?

It compares two versions of a text and shows the differences between them, often called a diff: what was added, what was removed and what was changed. This one also finds paragraphs that were moved and can ignore case, spacing and punctuation.

Is it safe to paste private text here?

The text you paste stays in your browser and is compared there, so it is not sent to any server. You can confirm it: disconnect from the internet after the page loads, and the comparison still works.

What is text comparison?

Finding the differences between two versions of a text: which words were added, which were removed and which were changed. It is a way to check what someone changed in a draft without reading both versions line by line.

Can it ignore whitespace and line breaks?

Yes. Turn on Ignore spaces and line breaks under Comparison options. Differences in spacing then no longer count, and a paragraph broken over several lines matches the same paragraph written on one line.

Can I compare two text files?

Yes. Drop a .txt or .md file on each box, or paste one text and drop a file for the other.

How much text can I compare?

Up to 1,500,000 words on each side. A long result is drawn 60 rows at a time, and more rows appear as you scroll.

Is this text compare tool free?

Yes. There is no charge, no account and no limit on how often you use it.