Compare Text Online

Paste two text blocks or code snippets. See line-by-line differences with word-level highlighting.

Your data stays in your browser — nothing is uploaded to any server.

or try sample data

What is Text Diff?

Text Diff is a free tool for comparing two blocks of text or code line by line. It uses the LCS (Longest Common Subsequence) algorithm for accurate diffs and highlights word-level changes within modified lines. Perfect for code reviews, config file comparisons, and document version tracking.

  • Line-by-line comparison — see exactly which lines were added, removed, or changed.
  • Word-level highlighting — modified lines show exactly which words changed.
  • Ignore whitespace/case — focus on meaningful changes only.
  • Privacy-first — all processing happens in your browser.