Text Diff Checker
Drop in an original and a revised version to see exactly which lines were added, removed or changed.
How Text Diff Checker works
Compare two texts and highlight added, removed and changed lines side by side. Works offline, nothing is uploaded. Everything happens inside this page: the tool reads your input, runs the calculation or conversion locally, and hands the result back to you. Nothing is transmitted, because there is no backend to transmit it to.
That design choice is deliberate. Most free tool sites upload your files to a server, process them there, and quietly keep a copy. Toolcin cannot do that — the site is a set of static files. If your connection dropped the moment the page finished loading, every tool would still work.
Line by line, not character by character
The comparison works on lines. Each line that is identical in both texts is shown once; lines that appear only in the first are marked as removed, and lines that appear only in the second are marked as added. That is the same model Git uses for a diff, and it is the right one for prose and code alike.
A single character change inside a line marks the whole line as changed. For spotting a moved comma that is coarse, but it keeps the output readable and the comparison fast.
The algorithm, and the safety valve
For ordinary documents the tool computes the longest common subsequence with dynamic programming, which gives the smallest possible set of insertions and deletions. That is exact, and it costs memory proportional to the product of the two line counts.
Two texts of 3,000 lines each would need nine million cells, so above a fixed threshold the tool switches to a positional comparison: line 1 against line 1, line 2 against line 2. It is less clever, but it cannot exhaust memory, and on texts that are mostly aligned it gives the same answer. The threshold exists so that a large paste degrades instead of crashing the tab.
Making a diff useful
Change one thing at a time. A diff between two versions rewritten independently is technically correct and practically unreadable, because almost every line differs. If you need to know what actually changed, produce versions that share their structure.
Trailing spaces and inconsistent line endings count as differences. If a file looks identical but shows as entirely changed, that is usually a CRLF versus LF mismatch from a copy through a Windows editor.
What it will not tell you
It does not detect moved blocks as moves — a paragraph relocated from the top to the bottom appears as one deletion and one addition. It does not ignore whitespace changes, and it does not merge. It answers one question: which lines differ.
Good to know
- Works offline once loaded, including on flights and in locked-down networks.
- No file size limit beyond your device's own memory.
- Free to use, with no account and no usage counter.
- Results are produced locally, so they are not logged or shared with anyone.
Questions
Does it compare word by word or line by line?
Primary comparison is line by line, with an added and removed count summary for each side.
Can I compare code files?
Yes — any plain text works, including source code, JSON, CSV and configuration files.
Can I compare two files directly?
Paste the contents of each into the two boxes. Reading a file from disk would need a picker per side, which this version does not have.
Why does the summary count keep changing as I type?
The comparison runs on every keystroke, so the counts reflect the current state of both boxes at that moment.
Keep going
More text tools
Find and Replace
Replace words or patterns across large text with regular expression support, match case and whole word options.
Open toolText Cleaner
Remove duplicate lines, blank lines, extra spaces, tabs, HTML tags and line breaks from any text instantly.
Open toolCharacter Counter
Count characters live with limits for X, SMS, meta descriptions and Instagram. See exactly how much room is left.
Open toolSentence Counter
Count sentences and paragraphs, see average words per sentence and the longest sentence in your draft.
Open toolReadability Checker
Score any text with Flesch Reading Ease and grade level, plus words per sentence and syllables per word.
Open toolSlug Generator
Convert any title into a lowercase, accent-free URL slug with hyphens or underscores and a length limit.
Open tool