Text Diff Checker

Compare two texts and highlight every difference.

100% freeNo sign-upInstant results

How to use the Text Diff Checker

  1. 1Paste the original text on the left.
  2. 2Paste the changed text on the right.
  3. 3Click Compare to see the differences.

About the Text Diff Checker

Spot what changed between two versions of a document, contract, code snippet or article. Added lines are highlighted in green and removed lines in red.

The comparison runs locally using a longest-common-subsequence algorithm.

When to use the Text Diff Checker

Reviewing revisions to a policy

Paste an earlier policy on the left and the revised version on the right to inspect added and removed lines. The two line-number columns help locate changes in each version. Use this as a review aid while reading the actual wording carefully; highlighting a changed line does not explain its legal or operational effect.

Checking updates to configuration text

Compare an old configuration with a proposed replacement before applying it. The line-based output makes inserted settings and removed entries easier to locate, especially when most of the file is unchanged. Keep related sections in a consistent order to reduce distracting differences, then validate the configuration in its intended system separately.

Comparing an article after editing

When an editor returns a revised article, compare the original and changed text to identify passages that were replaced or removed. Keep paragraph breaks aligned where possible for a clearer comparison. This tool highlights whole lines, so a small wording change within a long paragraph can appear as a removed line and an added line.

Tips and best practices

  • Use matching line breaks in both inputs when practical. Rewrapping an unchanged paragraph can create line differences that distract from actual wording changes.
  • Click Compare again after editing either input or using Swap. The displayed results are generated on demand rather than recalculated automatically as you type.
  • Leave one input empty to inspect a complete addition or deletion. Comparison remains available as long as at least one of the two fields contains text.
  • Split very large documents into related sections if comparison reaches its size limit. The restriction depends on the product of the two inputs' line counts.

Frequently asked questions

Yes, it works line by line, which is ideal for code and configuration files.

No. This tool runs entirely in your browser using JavaScript. Your input never leaves your device, which makes it safe for confidential content.

The output highlights added, removed, and unchanged lines rather than individual words or characters within a line. Replacing one word can therefore produce a removed original line and an added revised line. Compare shorter, consistently broken sections when you need to locate a small wording change more easily.

No ignore-whitespace or ignore-case options are provided. Lines are compared as supplied, so differences in spaces, indentation, or letter case can produce changes even when the wording is otherwise similar. Normalize those details before comparison only if they are irrelevant to the review you are performing.

Related tools