Skip to content

Text Compare (Diff)

Paste an original and a changed version to see a line-by-line diff — additions in green, deletions in red — the same way git diff works. Options to ignore whitespace and case. Everything is compared in your browser.

Ignore whitespace
Ignore case
Lines added
2
Lines removed
1
Result
Different
1The quick brown fox1The quick brown fox
2jumps over the lazy dog
2+leaps over the lazy dog
3third line3third line
4fourth line4fourth line
5+fifth line

Compares line by line using a longest-common-subsequence match — the same idea as git diff. Both sides are compared in your browser and never uploaded. Very large inputs are capped at 4,000 lines a side.

How to use it

  1. Paste the original text on the left and the changed text on the right.
  2. Optionally turn on ignore-whitespace or ignore-case.
  3. Read the diff below — red lines were removed, green lines were added.

FAQ

Is my text uploaded?
No. The comparison runs entirely in your browser using a longest-common-subsequence match.
Does it show word-level changes?
It works at the line level, like git diff. A changed line shows as one removal plus one addition.

Related tools

Free to use, no sign-up. Calculations run in your browser — nothing you type is sent to a server. These tools are for general information only, not professional advice. See the full tool list.