Text Diff

Compare two texts line by line or word by word and see additions and deletions.

Paste both texts; the comparison updates as you type. Ctrl/⌘ + Enter compares immediately.

How the comparison works

This online text diff tool compares two pieces of text and highlights what changed. It runs the Myers difference algorithm that Git and most code editors use, entirely in your browser. Line mode compares whole lines and suits code, configuration files, lists and logs. Word mode is better for prose or emails where a sentence was rewritten. Character mode shows the smallest edits, such as a changed digit or a typo. Additions appear in green, deletions in red with a strikethrough, and the summary counts how many lines or segments were added and removed.

Tips and options

Privacy

Both texts stay in your browser. Nothing is uploaded, so you can compare contracts, source code or private notes safely.