Text Diff Checker

Compare two blocks of text and highlight additions, deletions, and changes.

The Text Diff Checker compares two blocks of text line-by-line using a Longest Common Subsequence algorithm, highlighting what was added, removed, or left unchanged, and marking the changed words inside each changed line. You can ignore whitespace or case. Ideal for comparing code revisions, configuration files, documents, or any plain text. Everything runs in your browser.

About This Tool

How to Use
  1. Paste your original text in the left panel
  2. Paste the modified text in the right panel
  3. Optionally tick Ignore whitespace or Ignore case, then click Compare
  4. Toggle between side-by-side and inline views
Common Use Cases
  • Comparing code changes before committing
  • Reviewing configuration file differences between environments
  • Checking text edits in documents
  • Verifying data migration results
Tips & Tricks
  • Green highlights show additions, red shows deletions; darker marks show the changed words in a line
  • Use inline mode for a more compact view of changes
  • Works with any text — code, prose, configuration, data

Related Tools