Text diff — compare two versions line by line
Paste two versions of anything and see exactly what changed: additions in green, deletions struck through, by line, word or character. It compares on your device (0 uploads, works offline).
How to use it
- Paste the original on the left and the changed version on the right.
- Choose to compare by line, word or character.
- The differences highlight live, with an added/removed count.
FAQ
How do I compare two texts for differences online for free?
Paste both versions and the changes highlight instantly in your browser — additions in green, deletions struck through — with no upload. Switch to word-level comparison to see a single changed word without the whole line marked as rewritten.
Does this use the same algorithm as git?
It uses a longest-common-subsequence diff, the same family of algorithm behind git diff, so the changes it reports match what a developer expects rather than a naive character comparison.
Is my text uploaded?
No. The comparison runs entirely in your browser and nothing is stored; it works offline.
Can it compare code?
Yes — line mode works well for code, config and prose alike. Word and character modes are handy for spotting small edits.
Limits
Built for the text sizes you paste interactively, not whole-repository diffs. Very large inputs use more memory because the algorithm is O(n×m).
Related
The JSON diff compares JSON structurally; line tools and duplicate finder handle list cleanup.
Bookmark this page (Ctrl+D, or ⌘D on Mac) or install the app — it works offline the next time you need it.