Text Diff
Compare and highlight differences between two texts
Diff Options
Configure how the text comparison should be performed including diff mode and comparison options.
Choose how to compare the texts. Line mode compares line by line, word mode compares word by word, character mode compares character by character.
Select the granularity of the comparison. Line mode is best for code or documents, word mode for sentences, character mode for detailed analysis.
Ignore differences in letter case when comparing texts. Useful for case-insensitive comparisons.
Ignore differences in whitespace (spaces, tabs, line breaks) when comparing texts.
Quick Examples
Quick examples of text pairs to test the diff functionality with different types of content.
Load a simple example with two similar texts to demonstrate the diff functionality.
Load a code example with two similar texts to demonstrate the diff functionality.
Load a config example with two similar texts to demonstrate the diff functionality.
Text 1
Enter the first text you want to compare. This will be compared against the second text.
0 lines, 0 chars
Statistics about the first text including line count and character count.
Enter or paste the first text here. This text will be compared against the second text to find differences.
Text 2
Enter the second text you want to compare. This will be compared against the first text.
0 lines, 0 chars
Statistics about the second text including line count and character count.
Enter or paste the second text here. This text will be compared against the first text to find differences.
Generate a diff between the two texts using the selected comparison options.
Swap the contents of Text 1 and Text 2 to compare them in the opposite order.
Clear all text inputs and diff results to start fresh.