Advertisement
📢 728×90 Leaderboard
⚖️

Text Compare

Compare two texts and highlight line-by-line differences

Advertisement
📢 728×90 Leaderboard

About Text Compare

The Text Compare tool performs a line-by-line comparison of two texts, highlighting what was added, removed, or unchanged. It's similar to the diff output you see in version control systems like Git, but accessible directly in your browser without any setup.

How It Works

The tool uses a Longest Common Subsequence (LCS) algorithm to find the best match between the two texts. Lines that appear in the modified text but not the original are marked as "added" (green). Lines that appear in the original but not the modified are marked as "removed" (red). Lines that appear in both are shown in grey as "unchanged".

Use Cases

  • Proofreading document revisions
  • Comparing code snippets
  • Checking what changed between two versions of a contract
  • Reviewing student essay revisions

Frequently Asked Questions

Does it compare word by word or line by line?
It compares line by line. Each line is treated as a unit, and lines are matched to find the differences between the two texts.
Is comparison case-sensitive?
Yes, by default the comparison is case-sensitive. "Hello" and "hello" are treated as different lines.