🍋
Menu
🍋 Developer Tools

Text Diff Checker

Compare two texts and highlight differences

Free Browser-only No sign-up Popular
chars words sentences lines

Diff Options

Results

Result

About Text Diff Checker

Compare two text inputs and see the differences highlighted in unified diff format. Useful for comparing code versions, configuration files, or any text content.

How It Works

Paste your original text and modified text in the two input areas. The tool uses the Longest Common Subsequence (LCS) algorithm to compute line-level differences and displays them in unified diff format.

Step by Step

  1. 1 Paste the original text in the first input area
  2. 2 Paste the modified text in the second input area
  3. 3 Toggle whitespace handling if needed
  4. 4 View the unified diff output with +/- indicators

Tips

  • Enable 'Ignore whitespace' to focus on content changes
  • Lines starting with - are removed, + are added
  • Context lines (unchanged) help locate changes
  • Works best with line-based content (code, config files)

Frequently Asked Questions

What diff algorithm is used?
The Longest Common Subsequence (LCS) algorithm, which produces clean, readable diffs similar to the Unix diff command.
Can I compare binary files?
No. This tool compares text content only. Binary files would need a specialized diff tool.