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.

Loading calculator…

Results

Summary
DetailValue
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.

  1. Original text (A) — enter a value. A typical Original text (A) would be Original text….
  2. New text (B) — enter a value. A typical New text (B) would be New text….
  3. Ignore case — enter a yes/no option.
  4. 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.

Worked Examples

Example

1 added · 1 removed · 1 unchanged

Frequently Asked Questions

How close is this to a code diff?
It is a simple line-based diff similar to the default of many diff tools. It does not do character-level or word-level highlighting, only whole-line granularity.
Does case-insensitive matching change results?
Yes. With ignore-case on, lines that differ only by capitalization count as unchanged, which reduces noise when case is not significant in your text.