Text Diff Tool

Loading... Thanks for your rating!
Updated: 2026-07-11

📄 Line-by-Line Diff Comparison

Original Text0 lines
New Text0 lines
Enter text on both sides to start comparing...
Same: 0Added: 0Removed: 0

📖 Frequently Asked Questions

What is a text diff tool used for?

A text diff tool compares two texts line by line to find differences. Common uses: comparing code version changes, checking document modifications, validating config file changes, comparing data export results, checking translation consistency, and understanding collaborative changes.

How do I read the diff output colors?

Green background = lines only in left text (removed); Red background = lines only in right text (added); White = identical lines; Yellow highlights = character-level differences. This matches Git's diff display.

What's the difference between ignore spaces and ignore case?

Ignore spaces trims whitespace before comparison. Ignore case treats uppercase/lowercase as identical. Both can be enabled together.

Can I compare code files?

Yes. Disable 'ignore spaces' for indentation-sensitive languages. Best results under 100 lines.

How does the diff algorithm work?

Uses an improved LCS (Longest Common Subsequence) algorithm to find matching lines, then identifies additions/deletions with character-level inline diff highlighting.