Text Diff

Compare two blocks of text and see the differences. Line-by-line diff with word-level highlighting on changed lines, similar to git diff. Useful for spotting what changed between two API responses, two LLM outputs, or two config files.

How the diff is computed

The line diff uses the standard Myers algorithm for shortest edit script — same as git diff and most other diff tools. On lines that exist in both inputs but differ slightly, the word-level pass runs another Myers diff to highlight which words changed within the line.

The "Ignore whitespace" option normalizes runs of whitespace before diffing — useful for comparing outputs from tools that disagree on indentation. "Ignore case" lowercases both inputs before comparison.