Text / Code Diff

Compare two versions line by line, see additions and removals, and copy a unified diff.

Runs locally in your browser. Your input is not uploaded or saved.

Line comparison with character highlights. Spaces and the final newline count as changes; Windows and Mac line endings are normalized to LF. Either input can be empty.

Up to 250,000 characters and 10,000 lines per input. Large, very different inputs may exceed the processing limit. Editing either input clears the comparison. Text is never executed or uploaded.

Also useful