Text Diff

Compare two texts side by side and see added, removed, and changed lines.

Result

Run the tool to see the result.

How to compare text

Paste the original and revised text into separate editors. In the results, − marks a removed line, + an added line, · a space, and ⇥ a tab. The editors normalize CRLF and CR to LF. Results show whether a line has an ending.

Ignoring leading and trailing whitespace is off by default. Even when enabled, spaces inside a line and a missing final newline still matter. Each editor supports up to 100,000 UTF-16 code units and 2,000 lines. If the comparison is too complex, it stops without showing a partial diff.