What it is
A text diff computes the minimal set of line-level insertions and deletions that turn one block of text into another, the same technique behind version control diffs.
When to use it
Use this to compare two versions of a config file, review a pasted snippet against the original, or check what changed between two API responses.
Gotchas & limits
Line-based diffing can be noisy when only whitespace or line-ending style changes; toggle formatting-insensitive comparison first to see the substantive edits.