Line-by-line text comparison

Compare two texts with a unified line diff.

Text Stateless

Supply at most 32768 code points and 400 lines per input.

How it works and examples

Supply at most 32768 code points and 400 lines per input. Empty inputs are allowed. Output uses standard unified-diff headers a and b, with − removed lines and + added lines. It compares lines, not individual characters; line-ending style and a final newline are ignored. An empty result means no line differences.