Text Diff

Paste two texts — the difference is computed live. Switch between line, word and character modes; copy the result as a git-style unified diff.

Input

{{ num }}
{{ num }}
Diff mode +{{stats.add}} · −{{stats.rm}} · {{stats.same}} unchanged

Diff

Enter text in both fields above to see the diff.
Texts are identical.
{{ row.num }}

About this tool

Lines compares whole lines — the usual view for source code and config files. Words and Chars compare within a line, useful for spotting a small edit inside a long paragraph or sentence.

"Copy unified diff" produces a standard git-style patch (---/+++/@@ headers), regardless of which mode is selected for the on-screen view.

The comparison runs entirely in your browser. Neither text is uploaded.