Text Diff
Compare two blocks of text and highlight what changed.
What this tool does
When two versions of a piece of text look almost the same, spotting what changed by eye is slow. This tool highlights the differences โ what was added, removed or altered โ so you can compare side by side.
When to use it
- You want to see exactly what changed between a draft and a revision.
- You are checking a colleague's edits to a paragraph.
- You need to verify that a find-and-replace did what you intended.
- You are comparing two snippets of code or configuration text.
How to understand this tool
Line Content 1 โ The quick brown fox 1 + The quick red fox 2 jumps over the lazy dog.
The comparison works line by line first, then inside the lines that changed, so a one-letter edit shows as a small highlight instead of a whole rewritten line. Spaces and punctuation count, which is why a reflowed paragraph can look heavily changed when the words are identical.
What it will not do
- It compares plain text only, so formatting and comments in code are treated as text.
- It does not merge changes or produce a patch file.
Questions people ask
What do the colours mean?
One colour marks text that was added and another marks text that was removed.
Does it work for code?
Yes, it compares plain text, so code snippets work fine as long as you paste them as text.
One thing worth knowing
A line-based diff is perfect for comparing code, lists or configuration files where each line is a unit.