Toolbench

Text Compare (Diff)

Compare two pieces of text and see added and removed lines highlighted.

Runs entirely in your browser. Nothing you enter is uploaded.

How to use

  1. Paste the original text on the left.
  2. Paste the changed text on the right.
  3. Press Compare.
  4. Read the highlighted result: red lines were removed, green lines were added.

Example

Compare two versions of a robots.txt or a config file to see exactly which line changed.

About this tool

The comparison works line by line using the longest common subsequence, the same idea used by version control tools. Tick the options to ignore case or extra spaces.

Frequently asked questions

Is my text uploaded?

No. The comparison happens in your browser.

How large can the text be?

Up to 3,000 lines on each side, to keep your browser responsive.

Does it compare words inside a line?

It compares whole lines. A changed line shows as one removed line and one added line.

Related tools