Text Diff

Compare two texts and highlight differences

Category

Text Tools

How to Use

  1. Enter original text on the left
  2. Enter modified text on the right
  3. Click "Compare" to see differences — added lines in green, removed in red

Examples

  • Compare two code snippets

    Input: const a = 1; const b = 2;

    Output: Removed: const a = 1; / Added: const a = 10;

FAQ

What diff algorithm is used?
Line-by-line comparison. Identical lines are marked unchanged, different lines are marked as removed and added.

Related tools