Text Diff
Compare two texts and highlight differences.
How to Use
Paste the original text in the left panel and the modified text in the right panel. The tool will highlight additions, deletions, and changes between the two texts. You can toggle between inline diff and side-by-side views. Line-level and word-level diff modes are both available.
Common Use Cases
- Comparing two versions of a configuration file to find what changed
- Reviewing text changes before committing updates to documentation
- Verifying that a search-and-replace operation only affected intended content
- Spotting subtle differences between two similar API responses during debugging
Frequently Asked Questions
What diff algorithm does this tool use?
The tool uses a standard longest common subsequence (LCS) diff algorithm, similar to what Git uses. It identifies the minimum set of changes needed to transform the original text into the modified version.
Can I diff files directly?
The tool works with text pasted into the input panels. You can open your files in a text editor, copy the contents, and paste them into the tool for comparison.
Is whitespace-only change detection supported?
Yes. By default, whitespace differences (spaces, tabs, trailing whitespace) are highlighted. This helps catch formatting-only changes that might otherwise be invisible.