What is a text diff checker?
A text diff checker compares two pieces of text and shows you exactly what changed between them. Paste the first text in the top box and the second in the bottom box, and it shows a similarity percentage, how many words match, how many differ, and a list of every differing word. The default texts on this page differ by one word — 'jumps' became 'leaps' — and the checker reports 88.9% similar, 8 matching words, and 1 differing word.
The need comes up everywhere two versions of the same text exist. A writer revises a paragraph and wants to see what changed. A teacher compares a student's draft with the final copy. A developer compares two config files. Reading both texts side by side and spotting the difference by eye is slow and unreliable — one changed word in a long paragraph is easy to miss. Developers comparing two versions of code often use the diff checker, which shows added and removed lines side by side.
This checker compares word by word, in position, and updates live as you type. Everything runs in your browser — both texts never leave your device, nothing is stored, and there is no account to create. If you want to count the words in either text first, a word counter counts words, characters, and sentences for the same text.
How a text diff checker works
The checker splits each text into words on whitespace, then walks through both lists side by side. Words in the same position are compared: if they are identical, they count as matching; if they are different, they count as differing, and the pair is listed in the output box. Words that exist in only one text are listed as added or removed.
Similarity is matching words divided by the longer word count, times 100. The default texts each have 9 words, 8 match, and 8 ÷ 9 × 100 = 88.9%. If the texts are identical, every word matches and the similarity is 100%. If they share nothing, it is 0%. The longer text sets the denominator, so adding ten words to a short text drops the similarity even if the original words all still match.
The comparison is exact, not fuzzy: 'Fox' and 'fox' are different words, because capitalisation matters, and 'jumps' and 'jump' are different words, because the letters differ. That strictness is the point — a diff tool that guessed at similarity would hide the very changes you are looking for. A text reverser shows the same idea from the other side: small changes to text, shown exactly.
Position matching explained — the comparison people get wrong
The most misunderstood part is that the comparison is by position. If you insert one word at the start of the second text, every word after it shifts by one position, and the checker reports almost every word as different — even though only one word was added. That is not a bug; it is how a word-by-word diff works. It compares word 1 with word 1, word 2 with word 2, and so on.
That behaviour makes this tool best for texts that are nearly the same length and in the same order — two drafts of a paragraph, two versions of a notice, a before-and-after edit. For texts where whole sentences moved around, the similarity number will look low even when the content is mostly the same, because the positions no longer line up.
To use it well, keep the texts aligned: paste the original first, the revised version second, and do not reorder paragraphs between them. If the similarity is lower than you expected, check whether a word was inserted near the start — that one insertion shifts everything after it. A remove duplicate lines tool can clean up a text before you compare it, and a sort lines tool puts lines in the same order so the comparison lines up.
A worked example: one word changed
Here is a real comparison, using the exact numbers this page shows. The first text is 'The quick brown fox jumps over the lazy dog.' — 9 words. The second text is 'The quick brown fox leaps over the lazy dog.' — also 9 words. Eight words match in the same position, and one differs: word 5, 'jumps' became 'leaps'. The similarity is 8 ÷ 9 × 100 = 88.9%, with 8 matching words, 1 differing word, and 9 words compared.
Try an identical pair. 'Hello world.' against 'Hello world.' gives 100% similarity, 2 matching words, 0 differing words, and 2 words compared, and the output box says the two texts are identical. That is the control case: if identical texts do not show 100%, something is wrong with the paste — usually an extra space or a different full stop.
Try a bigger change. 'Hello world.' against 'Hello there world.' gives 33.3% similarity: the first text has 2 words, the second has 3, only 'Hello' matches in position, so 1 ÷ 3 × 100 = 33.3%, with 1 matching word, 2 differing words, and 3 words compared. The inserted word 'there' shifts 'world' to position 3, where it meets nothing — which is why the similarity drops so far for one inserted word.
Who uses a text diff checker, and why
Writers and editors are the biggest users. A revised paragraph, a corrected notice, or a second draft of an essay needs a check: what actually changed? A diff checker answers in a second, and the list of differing words is the proof — no more reading both versions line by line with a finger on the screen.
Teachers are the second group. Comparing a student's first draft with the final version shows exactly what the student changed, which is more useful than a grade. It also catches the opposite problem: a student who changed one word and resubmitted the same essay. The similarity number makes that obvious — 88.9% similar means one word changed, not a rewrite.
The third group is anyone comparing two versions of a document — a contract, a price list, a set of instructions, a config file. Two files that look the same can differ in one number, and one wrong number can cost real money. A word counter measures either version first, and this checker finds the difference between them.
Text diff checker vs other text tools
A text diff checker compares two texts; a word counter measures one text. The jobs are different but they sit next to each other: count the words in each version first, then diff them to find what changed. The default texts here are both 9 words — the word counter confirms the length, and the diff checker finds the one word that differs.
The difference matters for workflow. Count first, then compare: if the two texts have very different word counts, the diff will be noisy, and knowing the counts tells you why. If the counts are close — 9 words and 9 words — the diff is clean, and every differing word is a real edit.
A remove duplicate lines tool is the close cousin — it cleans a text before you compare it — and a text reverser flips a text for a different kind of check. Together they cover the compare-and-clean job: tidy each version, count the words, then diff them here.
Common text-diff mistakes
The most common mistake is comparing texts in the wrong order. The first box is the original and the second is the revised version — the output lists changes as 'word X became word Y', and swapping the boxes swaps the direction. If the output reads backwards, you pasted them in the wrong order.
Second: invisible differences. A double space, a trailing space, or a different dash looks like nothing but counts as a different word. If the checker says two texts differ but you cannot see why, look for extra spaces — paste both texts into a plain text box first, or check the word counts.
Third: expecting the checker to understand meaning. 'Jumps' and 'leaps' mean almost the same thing, but the checker reports them as different, because it compares letters, not meaning. A diff tool finds changed words; it does not judge whether the change matters. That judgement is yours.
Fourth: comparing texts that are too different. Two unrelated paragraphs will show near 0% similarity, which tells you nothing you did not know. This tool is for two versions of the same text, not for two different texts — for that, a similarity checker that compares word overlap is the better tool.
How to use this text diff checker
Using this text diff checker is simple. Paste the first text into the top box and the second text into the bottom box. The similarity, matching words, differing words, and the list of differences update live as you type — there is no button to press and no form to submit.
To compare a different pair, select all in each box, delete, and paste the new texts. Keep the original first and the revised version second, and keep the paragraphs in the same order so the position matching lines up. If the similarity looks lower than expected, check for an inserted word near the start.
Everything runs in your browser. No sign-up, no account, no data sent anywhere — both texts never leave your device. It works offline once the page has loaded. Try it with something real before you need it: two drafts of a paragraph you wrote, and see the one word you changed. Once you have used it twice, you will never compare versions by eye again.