A diff shows what changed between two versions of a text. Reviewers use it to read a pull request, operators use it to check a configuration before a deploy, and writers use it to see what an editor actually changed. Comparing line by line keeps the output readable for files where most lines stay the same.
The checker finds the longest sequence of lines the two versions share, then marks everything else as removed from the original or added in the changed text. Lines are compared exactly, so trailing spaces and letter case count as changes, while Windows and Unix line endings are treated as equal.
Long inputs are limited to 1,500 lines per side so the comparison finishes instantly in the browser. For a full repository history, use your version control system; for a quick review of two pasted versions, this page is enough.