Home Text Tools Encoding Hashing Generators Developer Converters Text Styles Image Tools

Text Diff

Compare two texts and see added (green) and removed (red) lines highlighted below.

All processing happens in your browser. No data is sent to any server.
Enter text in both fields to see the diff.

How It Works

The Text Diff tool compares two blocks of text line by line using the Longest Common Subsequence (LCS) algorithm. Lines present only in the original are shown in red (removed), lines present only in the modified version are shown in green (added), and unchanged lines are shown in gray.

This tool is useful for:

  • Comparing two versions of a document or configuration file
  • Reviewing changes in code snippets before committing
  • Verifying edits in translated text
  • Checking for accidental modifications in content

The diff updates live as you type in either textarea. A summary line shows the total number of added and removed lines. All processing runs entirely in your browser. No text is transmitted to any server.