← All tools

Diff checker

Paste the old and the new text and see only what changed. Unchanged lines are hidden. Your texts never leave this computer.

Why compare two texts?

Seeing what changed in a new version of a contract, checking an article that came back from an editor, finding the difference between two config files, comparing a draft with its earlier version or checking whether text you copied from a website has been updated: all of these need a line-by-line comparison. Comparing by eye is tiring and error-prone with long texts; a single number or the word "not" is easy to miss.

Reading the result

Added lines are marked in green and removed lines in red. If a line changed, its old version shows as removed and its new version as added. By default only the changes and a few lines around them are shown; long unchanged sections are hidden, so you reach the changes straight away even in a 50-page text.

If you do not want to see purely cosmetic differences, turn on the options to ignore case and whitespace. Lines that only gained trailing spaces, for example, are then not counted as changed.

How it differs from Word's Compare

Word's document comparison is good for .docx files, but for plain text, code, emails or content copied from a web page, pasting the two texts is much quicker. This tool uses the "diff" approach programmers use: it finds the longest sequence of lines that appears in both texts in the same order and shows the rest as differences.

Privacy

Contracts, internal messages and source code can contain confidential information. The comparison runs entirely in your browser; your texts are never uploaded to a server or stored.

How to use it

  1. Paste the old text in the left box and the new text in the right box.
  2. The result updates as you type: green lines were added, red lines were removed, and changed words are highlighted too.
  3. If you like, ignore case or whitespace differences. Use Copy diff to take the result with you.

Frequently asked questions

How is the difference found?

The tool compares the two texts line by line and finds the longest sequence of lines that appears in both in the same order. Lines outside that sequence are marked as added or removed. Most version control tools use a similar idea.

How do I see only the differences?

On this page the "Show only differences" option is on: a few lines around each change are visible and the other unchanged lines are hidden. Turn the option off to see everything.

Can I ignore case or whitespace differences?

Yes. With the matching options ticked, lines that differ only by letter case or by leading, trailing or extra spaces are not counted as changed.

Are my texts sent anywhere?

No. The comparison runs in your browser and the texts are neither uploaded nor stored.

Can I compare very large texts?

It works smoothly up to a few thousand differing lines. For much larger texts a warning is shown to protect the browser, and you can split the text into parts.

Related guide

Related tools