Text Diff
Compare two blocks of text side by side and instantly see which lines were added, removed, or unchanged.
Advertisement
Original
Modified
Diff Output
Paste text into both panels above to see the diff.
Advertisement
Frequently Asked Questions
How does the diff work?
The tool uses a line-by-line diff based on the Longest Common Subsequence (LCS) algorithm — the same approach used by git diff. Lines are compared exactly, including whitespace.
Is whitespace significant?
Yes. A line with a trailing space is treated as different from one without. If you want to ignore whitespace differences, trim your text before pasting.
Is my text sent to a server?
No. The diff runs entirely in your browser. Nothing is uploaded or stored.