Diff Checker

Paste two versions of text below and compare them line-by-line. Added lines are highlighted in green, removed lines in red.

What Is a Diff Checker?

A diff checker compares two versions of text and highlights the differences between them. It is widely used in software development to review code changes, track document revisions, and identify what was added or removed between versions.

How It Works

This tool uses a line-by-line Longest Common Subsequence (LCS) algorithm to find matching lines between the original and modified texts. Lines that appear only in the original are marked as removed (red), lines that appear only in the modified version are marked as added (green), and matching lines remain unhighlighted.

Features

  • Side-by-side text input for easy comparison
  • Color-coded output: green for additions, red for deletions
  • Line numbers for both original and modified sides
  • Statistics showing total additions, deletions, and unchanged lines
  • Option to ignore whitespace differences for cleaner comparison