Diff Checker Pro

Compare two texts with line and word-level highlighting, then copy a unified diff.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

Diff Checker Pro compares two pieces of text and shows you exactly what changed — not just which lines differ, but which words or characters inside each changed line are new or removed. It is built for developers reviewing a code change, writers comparing two drafts, ops engineers checking a config file against a known-good version, and anyone who needs to spot the difference between two near-identical blobs of text. Paste both versions, or load local files, and the result updates instantly as you type.

Most simple “compare text” boxes only do a line-by-line diff: change one word and the whole line lights up red and green, leaving you to hunt for the actual edit. Diff Checker Pro aligns the changed lines first and then runs a second, finer diff inside each pair, so a single renamed variable or a fixed typo is highlighted precisely while the rest of the line stays neutral. You can switch between a side-by-side view (original on the left, changed on the right) and a unified view (the familiar plus/minus format used by Git), pick word-level or character-level inline highlighting, and toggle ignore-case and ignore-whitespace to filter out noise. When you are done you can copy a standard unified diff to paste into a pull request, or download it as a .patch file.

How it works

The tool runs a classic line diff to decide which lines were added, removed, kept or changed. Adjacent removed-and-added blocks are paired into modified rows, and for each pair it runs a second diff at the word or character level to produce the inline highlights. Added segments are shown in green, removed segments in red, and unchanged text is left plain. The ignore-case and ignore-whitespace toggles normalise the text before comparison — for example collapsing repeated spaces — so cosmetic differences do not drown out the real ones. The export uses the same unified-diff format that git diff and the patch utility produce, including a header with both labels and hunk markers, so the output is genuinely usable in a real workflow. Everything — parsing, diffing, highlighting and patch generation — happens in your browser; there are no network requests at any point.

Example

Suppose the original line is const total = price + tax and the changed line is const total = price + tax + shipping. A plain line diff would show the whole line as removed and re-added. Diff Checker Pro instead keeps const total = price + tax neutral and highlights only + shipping in green, so the review takes a second instead of a double-take.

FeaturePlain line diffDiff Checker Pro
Whole-line add/removeYesYes
Word-level inline highlightNoYes
Character-level highlightNoYes
Side-by-side and unified viewsSometimesBoth
Export unified .patchRarelyYes
Ignore case / whitespaceRarelyYes

Your last comparison is saved in this browser so it is still there when you come back, and nothing you paste or load is ever sent anywhere.

Ad placeholder (rectangle)