Text Diff

Compare two texts and highlight differences line by line.

Original Text
Modified Text

About Text Diff

This tool compares two texts line by line and highlights the differences. Green lines indicate additions, red lines indicate deletions, and plain lines are unchanged. All processing happens in your browser.

How to Use

Paste the original text on the left and the modified text on the right. Click "Compare" to see the differences highlighted. Green lines indicate additions, red lines indicate deletions, and plain lines are unchanged.

What is Text Diff?

Text diff (difference) is a comparison algorithm that analyzes two texts line by line and identifies what has been added, removed, or changed. It is one of the most fundamental tools in software development and document editing, used to track changes and review code modifications.

Common Use Cases

Code review: compare versions of source code files. Document editing: track changes between draft versions. Configuration management: find differences between config files. Data comparison: compare CSV or log file outputs. Legal and academic: compare versions of contracts or research papers.

Copied!