Free online tools to generate, calculate,
convert, format, encode, and play.
 

Text Diff/Compare

Compare two texts side-by-side and see differences highlighted with character-level precision.


Original
Modified

About Text Diff/Compare

How It Works

This tool uses a longest common subsequence (LCS) algorithm to compare two texts line-by-line, then applies character-level diffing within changed lines to highlight exactly what was modified. All processing runs in your browser — no data is sent to any server.

Color Coding

  • Green — lines or characters added in the modified version
  • Red — lines or characters removed from the original
  • No highlight — lines that remained unchanged

View Modes

  • Side-by-Side — shows original and modified in adjacent panels with synchronized scrolling
  • Unified — shows all changes in a single panel with +/- prefixes, similar to Git diff

Use Cases

  • Comparing different versions of source code
  • Reviewing edits in documents or configuration files
  • Spotting changes between API responses or JSON data
  • Verifying translations or content updates

Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with