Text Utilities
Processed locally in your browser — not uploaded
Text Diff
Paste two versions of text to see exactly what changed, line by line — side-by-side or as a unified inline diff. Options to ignore whitespace or case differences let you focus on the changes that matter. Runs entirely in your browser.
01
How to use
- Paste the original text on the left and the changed text on the right.
- Switch between side-by-side and inline (unified) views.
- Toggle "ignore whitespace" or "case-sensitive" to control what counts as a difference — the original text is always shown, these only affect comparison.
02
Understanding the output
The diff compares line by line using a longest-common-subsequence algorithm — the same general approach tools like git diff use — so a changed line shows as a removed line followed by an added line, rather than every line after it shifting.
03
Common issues & tips
- •Every line shows as changed: check whether line endings differ (e.g. one side using \r\n) — try pasting as plain text to strip formatting.
- •Whitespace-only changes cluttering the diff: enable "ignore whitespace" to focus on real content changes.
Frequently asked questions
- Does this compare word by word or line by line?
- Line by line, using a longest-common-subsequence algorithm — the same general approach as git diff. A single changed word shows its whole line as removed and re-added.
- Why does ignoring whitespace not change what's displayed?
- The original text is always shown as typed — "ignore whitespace" and "case-sensitive" only affect which lines are considered different, not how they're rendered.
- Is my text sent to a server?
- No. The comparison runs entirely in your browser.