Skip to main content
SwiftTools

Text Diff Checker

Free text diff checker. Compare two texts line by line and highlight the added, removed and changed lines.

Added
2
lines
Removed
1
lines
Total changes
3
lines
line1
-line2
+line2'
+line2''
line3

Text is compared locally using a longest-common-subsequence diff. Nothing is uploaded.

About Text Diff Checker

Spot the differences between two blocks of text with a clear line-by-line diff of additions and deletions. It runs locally in your browser.

How to use it

  1. 1Paste the original text.
  2. 2Paste the new text.
  3. 3See the highlighted differences.

Examples

Two drafts

Input
line1
line2
line3
Result
- line2 (old) + line2’ (new)

Frequently asked questions

Does it match word by word?

It compares line by line by default, which is ideal for code and structured text. It uses a longest-subsequence diff.