Homeโ€บ Developerโ€บ Text Diff Tool

Text Diff Tool

Compare two text snippets and highlight differences line by line. Useful for spotting edits in contracts, code, or copy.

Inputs

Diff output
โ€”
Lines added
โ€”
Lines removed
โ€”
Lines modified
โ€”
Similarity
โ€”

About Text Diff Tool

Algorithm

This tool uses a simple line-by-line comparison. Production diff tools (git, diff, Myers) use longer-common-subsequence (LCS) algorithms to align lines optimally, even when sections are inserted.

When to use word-level diff

For prose changes, word-level diff is more readable. Git can do this with `git diff --word-diff`. Many online tools (diffchecker.com) offer both modes.

Privacy

This runs entirely in your browser. Nothing is uploaded. For sensitive contracts, that matters.