Skip to content
📄

Text Diff

Text

Free online text diff tool. Compare two text blocks side by side and see added, removed, and unchanged lines highlighted. No signup required.

0
0
Original
Modified
Diff Statistics
100%
Similarity
0
Edits Needed

Quick answers for Text Diff

How does the Text Diff tool compare my text?
It splits both inputs into lines and runs a longest-common-subsequence diff. Lines that match are shown unchanged, lines only in the original are marked as removed (−), and lines only in the changed text are marked as added (+).
Can it diff more than just plain text?
Yes - anything you can paste in. Code, JSON, logs, configuration files, or commit messages all work. The line-based view is what most code review tools use, so it should look familiar.
Does the diff highlight inline word changes?
Not currently. The Text Diff tool works at the line level. If you want to see what changed within a single line, paste the two versions on their own lines and the result will show them side by side.
Is my text uploaded anywhere?
No. The diff is computed entirely in your browser, so even sensitive code, contracts, or logs stay on your machine.
Why are some lines counted as changed when only whitespace differs?
A line with different whitespace is technically a different line. To ignore those differences, normalize whitespace before pasting (or trim trailing spaces in your editor) and run the diff again.