Text Diff Checker
Compare two blocks of text side by side or unified, with word-level highlighting inside changed lines, whitespace/case-insensitive options, and a copyable unified diff.
How to use the Text Diff Checker
- Paste or type text into the Original and Modified boxes, or drag a text file onto either one.
- Toggle Ignore whitespace or Ignore case if formatting or capitalization differences shouldn't count as changes.
- Switch between Side by side and Unified view using the tabs above the result.
- Read the stats bar for a quick added/removed/unchanged line count.
- Click Copy diff to copy a git-style unified diff patch to your clipboard.
- Use the swap button between the two input boxes to flip Original and Modified.
How This Tool Works
Paste or type into the Original and Modified boxes (or drag a text file onto either one) — after a brief pause, the diff below updates automatically. Toggle Ignore whitespace to collapse whitespace-only differences, or Ignore case to treat differently-cased text as equal; neither option changes what's displayed, only what counts as a difference.
Switch between Side by side (two columns, like a code review view) and Unified (one column with +/- prefixed lines, like `git diff`) using the tabs above the result. On narrow screens the view is automatically forced to Unified, since two columns don't fit readably.
Changed lines are highlighted at the word level, not just the whole line — so a one-word edit in a long line is easy to spot instead of the entire line looking different. The stats bar above the diff shows how many lines were added, removed, and left unchanged.
Use Copy diff to copy a git-style unified diff patch to your clipboard, ready to paste anywhere a patch is expected. Everything runs in your browser — nothing you paste or drop is uploaded anywhere.