Text Compare

Find differences between two texts with word-level or line-level highlighting. See what was added, removed, or changed.

Differences
0 added 0 removed 0% changed

Enter text in both fields to see differences

Frequently Asked Questions

How does the text compare tool work?

The tool uses a Longest Common Subsequence (LCS) algorithm to identify the differences between two texts. It compares either word by word or line by line, highlighting additions in green and removals in red.

What is the difference between word-level and line-level diff?

Word-level diff compares individual words, showing precisely which words changed. Line-level diff compares entire lines, which is useful for structured text like code or lists.

Can I compare code with this tool?

Yes. Line-level diff mode is especially useful for comparing code snippets. It highlights entire lines that were added or removed.

Is my text saved or sent anywhere?

No. All comparison happens in your browser. Your text stays on your device and is never transmitted to any server.