About Text Diff
Comparing two versions of the same text by eye is slow and unreliable, especially when a paragraph has been reworded, a clause has moved or a line has disappeared somewhere in the middle. This tool lines up both versions and marks the exact lines that differ, then reports how many lines were added, removed and left unchanged.
The comparison uses a longest common subsequence, the same family of algorithm behind version control diffs, so lines are matched by content rather than by position. That keeps one inserted sentence from marking the whole rest of the document as changed, and the ignore-case and ignore-whitespace options stop formatting noise from hiding the real edits.
What this tool does
Real LCS line diff
The tool computes a longest common subsequence and reports the fewest possible added and removed lines instead of comparing line 1 with line 1.
Markers plus text labels
Added lines carry a + and removed lines a −, and screen readers announce Added line or Removed line, so the result never relies on color alone.
Change summary
Three counters show the number of added, removed and unchanged lines so you can judge the size of an edit at a glance.
Ignore case and whitespace
Turn on either option to treat Hello and hello, or different indentation, as the same line, and the result updates with one click.
Line numbers on both sides
Every row shows its original and updated line number, with the gap left blank where a line exists on only one side.
Copy the whole diff
Copy the result as a unified diff with plus, minus and space prefixes for pasting into a ticket, email or review comment.
How to use Text Diff
- 01
Paste the original text
Put the first version in the left box; each line break starts a new line in the comparison.
- 02
Paste the updated text
Put the changed version in the right box. Comparing against an empty box shows every line as added or removed.
- 03
Choose which differences matter
Tick Ignore case, Ignore whitespace differences, or both, so only meaningful edits are reported.
- 04
Compare the two texts
Press Compare texts and read the summary above the line table.
- 05
Review the marked lines
Go through the + and − rows, then copy the diff if you need to share it.
How this tool works
- Works with
- TEXT ↔ TEXT
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- Chrome, Edge, Firefox or Safari · JavaScript enabled
Limitations worth knowing
- The comparison is line based, so an edit inside a long line is shown as a removed line plus an added line rather than as word-level highlights.
- Each side is capped at 4,000 lines; longer input is compared on its first 4,000 lines and the result says so.
- Very different texts can produce thousands of rows; the line table scrolls, but a word-level diff is easier for reviewing a fully rewritten draft.
Privacy and file handling
Both texts and the comparison stay in this browser tab. The diff is computed with JavaScript on your device, so nothing is uploaded, stored or logged, and closing the page discards the input and the result.
Read the full privacy policy