Line Diff Compare
Compare two blocks of text line by line and highlight added, removed, and changed lines instantly in your browser. Free online line diff tool.
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Original text (A) — enter a value. A typical Original text (A) would be Original text….
- New text (B) — enter a value. A typical New text (B) would be New text….
- Ignore case — enter a yes/no option.
- Review your results — the key output is highlighted, with supporting figures below.
Loading calculator…
Results
| Detail | Value |
|---|---|
| Added lines | |
| Removed lines | |
| Unchanged lines |
What is this calculator for?
Compare two texts and see exactly which lines were added, removed, or unchanged.
How to Use This Calculator
Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.
- Original text (A) — enter a value. A typical Original text (A) would be Original text….
- New text (B) — enter a value. A typical New text (B) would be New text….
- Ignore case — enter a yes/no option.
- Review your results — the key output is highlighted, with supporting figures below.
What You'll Need
- Original text (A)
- a value · required
- New text (B)
- a value · required
- Ignore case
- a yes/no option · optional
About This Calculator
This tool computes a line-by-line diff using the longest common subsequence to align matching lines, then marks each with ADDED, REMOVED, or unchanged.
The result gives you a clear before/after view of exactly what changed. Matching can ignore case for less noisy diffs. It runs entirely in your browser.