Skip to content

Text Compare

Put two texts side by side and see the lines added and removed, with the changed words marked: for two versions of a contract, an essay or code.

This tool runs entirely in your browser; what you enter is never sent to our servers.

How to use it

  1. Paste the old text on the left and the new text on the right.
  2. Optionally ignore differences in case and whitespace.
  3. The differences update as you type: + is an added line, − a removed one; changed words are highlighted.

How the differences are found

The tool splits both texts into lines and finds the shortest series of changes that turns one into the other (the Myers algorithm, the same one git uses). Unchanged lines are plain, removed lines are marked − on red, added lines + on green. When a line was edited, its old and new versions sit together and the words that changed are highlighted. “Ignore whitespace” treats leading and trailing spaces and runs of spaces as one space. “Ignore case” also matches the Turkish İ/ı correctly. Line-ending differences (Windows and Mac) never count as changes. For two very long texts that share little, the comparison stops so your browser stays responsive; split the text into parts and try again.

Frequently asked questions

Help us improve this tool