Text Diff

Compare two texts side by side and highlight the differences line by line.

Text Diff
Original
Changed

📐 How to Use

  1. Paste the original text in the left panel (labelled "Original").
  2. Paste the new or modified text in the right panel (labelled "Changed").
  3. The diff view updates automatically — green lines are additions, red lines are deletions.
  4. Enable "Ignore whitespace" to skip changes that only differ in spaces or tabs.

Frequently Asked Questions

QWhat do the colours mean?
Green lines are additions (in the new text but not the original). Red lines are deletions (in the original but not the new text). Uncoloured lines are unchanged.
QCan I compare code?
Yes — Text Diff works on any plain text including code, config files, CSV data, and prose.
QIs my text sent to a server?
No. All diffing is done in JavaScript in your browser. Your text never leaves your device.

ℹ️ About This Tool

Text Diff uses a line-by-line LCS (Longest Common Subsequence) diff algorithm implemented in JavaScript. All comparison happens in your browser — no text is sent to any server.