Text Diff

Compare two blocks of text and see exactly which lines changed.

Related Tools

0 comments

How it works

Both inputs are split on newlines and compared with a classic longest-common-subsequence algorithm — the same family of algorithms that powers diff, git and most code-review tools. Lines present only in the original are marked as removed; lines present only in the new version are marked as added; matching lines are shown unchanged. Whitespace is preserved exactly. The whole comparison happens in your browser, so you can paste private documents safely.

Common use cases

  • Spotting what changed between two drafts of an email, contract or essay.
  • Comparing two log files to isolate the differing entry.
  • Reviewing your own edits before pasting them into a document with no version control.

Frequently asked questions

Is the diff line-level or character-level?

Line-level. Whole lines are matched; intra-line differences are not highlighted. For prose this is usually what you want.

Does it ignore whitespace?

No. Trailing spaces and tab vs space differences cause lines to be reported as different — by design.

Are large pastes a problem?

LCS is O(n×m). A few thousand lines on each side is fine; tens of thousands may slow your browser briefly.

Is my text uploaded?

No. Diff runs entirely in your browser.