Someone sends you a revised draft, an edited contract or an updated config file, and the only summary you get is "I changed a few things". Finding those few things by eye is slow and unreliable, especially when the change is one word in a long paragraph or one value in a wall of settings. A diff removes the guesswork: it lines the two versions up against each other and marks exactly what was added and what was removed.
This guide shows how to do that with the free Text Diff Checker on Ovatly. It covers the one decision that matters, comparing by line or by word, walks through the check step by step, and explains how to read the counts so a changed line does not confuse you.
Contents
- Quick answer
- What a diff actually compares
- Lines or words: choosing the granularity
- How to compare two texts, step by step
- Worked example: one line changed
- Limitations and honest notes
- Common mistakes
- FAQs
- Conclusion
Quick answer
Paste the original text into the left box of the Text Diff Checker and the changed text into the right box. Choose Lines for code and structured text, or Words for sentences and paragraphs. The checker highlights what was added and removed and reports the added, removed and unchanged counts. In line mode, a changed line appears as one removal plus one addition, so a single edited line raises both counts by one. Everything runs in your browser; neither text is uploaded.
What a diff actually compares
A diff checker compares sequences, not meaning. It works through the two texts in order and finds the stretches that match and the stretches that do not. Matching stretches are reported as unchanged. A stretch that exists only in the original is a removal, and a stretch that exists only in the changed version is an addition.
That sequence-based approach is what makes a diff trustworthy, and it also explains its quirks. Because the tool compares order rather than intent, moving a paragraph to a different place in the document looks like deleting it from the old position and adding it at the new one. The highlight is honest about the sequence; it is on you to recognise that the two marks describe one move rather than two separate edits.
Lines or words: choosing the granularity
The checker offers two granularities, and choosing the right one decides whether the result is readable.
Lines mode treats each line as one unit. It suits code, configuration files and lists, where the line is the natural unit of change: a setting is altered, an item is added, a statement is removed. If any character on a line differs, the whole line is marked as changed, shown as the old line removed and the new line added.
Words mode treats each word as one unit. It suits sentences and paragraphs. In prose, a one-word edit inside a long sentence should not mark the whole sentence as replaced, and in words mode it does not: only the swapped word is highlighted. Comparing a contract clause or an essay paragraph in lines mode would bury the real change inside two fully highlighted lines; words mode points at the exact word.
How to compare two texts, step by step
- Open the Text Diff Checker.
- Paste the original text on the left.
- Paste the changed text on the right.
- Choose Lines for code and structured text, or Words for sentences and paragraphs.
- Read the highlighted result and the added, removed and unchanged counts.
Then work through the highlights rather than rereading both documents. Each marked stretch is a place where the two versions genuinely differ, and the counts at the top tell you the scale of the edit before you start: two changed lines in a long file is a small revision, while hundreds of changed lines means you are looking at a rewrite.
Worked example: one line changed
Take a short original of three lines:
a
b
c
The changed version swaps the middle line:
a
x
c
The checker reports 1 added, 1 removed and 2 unchanged lines, highlighting b as removed and x as added. Nothing about the first and third lines is marked, because they match exactly.
Words mode works the same way at a finer grain. Comparing "the quick fox" with "the slow fox" gives 1 word added and 1 word removed: "quick" out, "slow" in, and the matching words on either side left unmarked. That is the whole value of the tool in miniature: the unchanged text fades into the background and the edits stand alone.
Limitations and honest notes
The checker shows the counts and the highlighted view on the page. It does not produce a patch file: if you need the sources, copy the underlying texts from the input boxes, and if you need a patch file format, a Git diff is the better tool for that job.
Because the comparison is sequence-based, it cannot tell you that two differently worded sentences mean the same thing, and it cannot follow a block of text that moved. Treat moved blocks as a removal and an addition that belong together.
Very large pasted texts, such as whole books or log files, will still work but can take a moment to compare, since the work happens on your own device. And as with every browser tool here, closing the tab discards the comparison.
Common mistakes
- Using lines mode for prose. A one-word fix then highlights two entire sentences, and the real change hides inside them. Switch to words mode for paragraphs.
- Reading a changed line as two changes. In line mode one edited line is counted as a removal plus an addition. An edit to a single line will always show 1 added and 1 removed.
- Assuming a moved paragraph was rewritten. A removal in one place and an identical addition elsewhere is usually a move, not new writing.
- Comparing the wrong pair of versions. The left box is the original and the right box is the changed text. Swapping them inverts every mark: additions become removals and the counts mislead you.
FAQs
Which mode should I use? Lines for code, configs and lists, where the line is the natural unit. Words for prose, where a one-word edit inside a long sentence should not mark the whole sentence as replaced.
Why does a moved paragraph show as deleted and added? A diff checker compares sequences, not meaning. Moving a block looks like removing it in one place and adding it in another, which is exactly what the highlight shows.
Can I download the diff? The counts and the highlighted view are on the page; copy the underlying texts from the input boxes if you need the sources. For patch files, a Git diff is the better format.
Why does one edited line show up as both a removal and an addition? Line mode treats a changed line as a removal plus an addition, the same model Git uses. That is why the counts show both an added line and a removed line for a single edited line.
Is my text uploaded for the comparison? No. The comparison runs entirely in your browser, so drafts, contracts and code are never uploaded.
Conclusion
Comparing two texts by eye rewards patience and punishes everyone else. The Text Diff Checker reduces the job to pasting both versions, picking lines or words to match the kind of text you have, and reading a short list of highlighted changes with counts that tell you the size of the edit up front. Numbers need the same care when they change shape rather than wording, which is why the companion guide on converting between binary, decimal and hexadecimal pairs naturally with this one. Both guides sit in the Developer Tools guides archive alongside the rest of the series.