Compare two blocks of text and highlight every difference
Compare two versions of a text document and highlight additions, deletions, and changes.
Interactive Sample Data
| id | text_a | text_b |
|---|---|---|
| 1 | Meeting on Monday. | Meeting on Tuesday. |
| 2 | Attendees: Grace, Peter, Alice. | Attendees: Grace, Peter, Bob. |
How this tool works
Things that usually go wrong
- If both texts are pasted as one block without labels, the engine may not split them correctly — always separate with 'original:' and 'revised:' labels or a clear dividing line.
- Very similar texts where every line changed slightly will produce a long diff report — use word-level mode to see only the specific characters that differ.
- Diff of code blocks with inconsistent indentation will flag every line as changed — normalise indentation first.
Edge cases we tested
Returns '0 differences found — texts are identical.' rather than an empty diff block.
Flagged as changes by default; ignored when 'ignore whitespace' is specified.
Every line of the non-empty text is shown as an addition.
Normalised before comparison — line-ending differences are not reported as content changes.
Word-level diff still works; the output wraps at the display boundary.
Frequently Asked Questions
Can I compare CSV files rather than plain text?
Yes — paste both CSV files and the diff shows which rows changed. For row-level CSV comparison, use 'Compare Two JSON Arrays' or 'Find Duplicate Rows'.
Is the comparison case-sensitive by default?
Yes. Add 'ignore case' to your instruction to treat uppercase and lowercase as identical.
Can I get the output as a downloadable file?
Yes — the diff output can be downloaded as a .txt or .html file from the export menu.
What does 'unified diff format' mean?
It is the standard format used by Git pull requests: lines starting with + are additions, lines starting with - are deletions, and lines without a prefix are unchanged context.
Related tools
Find and Replace Text
Replace any word, phrase, or regex pattern in any block of text.
Open Tool →Compare Two JSON Arrays
Diff two JSON arrays to find added, deleted, and modified records based on a shared key.
Open Tool →Validate CSV
Audit CSV files for structural errors, encoding problems, and row-length inconsistencies.
Open Tool →Find Duplicate Rows
Identify and count duplicate rows in CSV files by exact match or by key column selection.
Open Tool →