Text Compare

Compare two texts and highlight every difference.

How does text comparison work?

A text compare (diff) tool finds the longest sequence two texts share and highlights everything else as added or removed. Comparing by words suits prose, by lines suits code and lists, and by characters reveals small typos.

Three comparison modes

  • Words — best for articles, contracts and essays; shows which words changed.
  • Lines — best for code, configuration files, CSV and lists.
  • Characters — best for short strings, IDs and spotting single-letter typos.

Additions are highlighted in green and deletions in red, and the similarity percentage tells you how much of the text is unchanged.

Uses

  1. Reviewing edits to a document when track changes were not used.
  2. Comparing two versions of a web page's copy before and after a ranking drop.
  3. Checking what an Article Rewriter changed.
  4. Comparing robots.txt or .htaccess files between staging and production.
  5. Finding the one changed value in two long configuration snippets.

Privacy and limits

The comparison runs in your browser using a longest-common-subsequence algorithm, so confidential text never leaves your device. Very large texts (millions of combined tokens) may be too heavy for the browser; compare them in sections.

Frequently asked questions

How do I compare two texts for differences?

Paste the original text in the first box and the changed text in the second, choose words, lines or characters, and click Generate.

Can I compare code?

Yes. Use line mode for code and configuration files.

Is my text uploaded?

No. The comparison runs entirely in your browser.

What does similarity mean?

It is the share of the text that is identical in both versions.