Skip to content
MyDailyTool

Text Diff

Side-by-side diff comparison of two text blocks with line-by-line highlighting. Shows added, removed, and changed lines — useful for comparing document versions or config files.

apple
+blueberry
banana
cherry
+date

How to use the text diff

Paste two versions of text. Lines unique to the first are marked −, lines unique to the second are marked +.

Formula & explanation

Longest common subsequence (LCS) algorithm — O(n × m) time and space. Suitable for short documents.

Examples

Compare two configs to spot what changed; compare two paragraphs to see edits.

Frequently asked questions

What does the diff output mean?
Lines prefixed with − exist only in the original text; lines prefixed with + exist only in the modified text. Lines with no prefix are identical in both versions.
Does this tool do word-level or character-level diffing?
This tool diffs at the line level. For a word-by-word comparison, break your content onto separate lines (one word or phrase per line) before pasting.
What algorithm is used?
The Longest Common Subsequence (LCS) algorithm, the same technique used by the Unix diff utility and most version control systems.
Is my pasted text sent to a server?
No. All diffing runs entirely in your browser. Nothing you paste leaves your device.

Related text & string tools