Text Diff Checker
Compare two texts, line-by-line differences
Two documents go in, one comparison comes out: a single column where added lines carry a plus sign, removed lines a minus, and untouched lines neither. Underneath the two input boxes, three figures give the shape of the change before you read any of it. The comparison is done properly rather than positionally. Matching lines at the start and end are stripped first, then what remains is resolved with a longest-common-subsequence pass, so a single line inserted at the top does not make every line below it look changed. That step is quadratic, so for anything large — either side past two thousand lines, or a large number of lines in total — it is skipped in favour of a faster positional comparison, which can report more differences than are strictly necessary. Comparison is by whole line, exactly, with no whitespace tolerance.
Compare two blocks of text and see added, removed and unchanged lines highlighted side by side. Great for checking edits between document versions, contracts or code snippets.
Private Text Diff Checker In Your Browser
Text Diff Checker is processed locally with client-side JavaScript. Your files never touch a server, and there is no queue to wait in.
How to use Text Diff Checker
Paste the earlier version into Original text and the later one into Changed text.
Read the three counters: lines added, lines removed and unchanged.
Scan the column below, where each entry is prefixed with + for an addition, − for a removal and a blank for a match.
Check the tail of both documents if the counts look odd — a trailing newline creates an extra empty line.
- Line-level added, removed and unchanged marking in one readable column
- Sequence-aware comparison after shared prefixes and suffixes are trimmed
- Automatic fallback to a faster method once the inputs get large
- Three counters summarising the change before you read the detail
- An editor checking a revised contract against the version a client signed.
- A developer comparing a local configuration file with the one on a server before deploying.
- A student reviewing feedback by pasting two drafts and reading only what moved.