You paste two versions of the same paragraph into a diff checker, expecting one or two small highlights. Instead, nearly every line lights up as added or removed. The natural conclusion is that the tool is broken. It usually is not. Line comparison is literal: a line counts as unchanged only when it matches exactly, character for character. Invisible differences (a trailing space, a tab, a paragraph wrapped at a different width) count just as much as a changed word.

This guide walks through the four traps behind this in the free Text Diff Checker on Ovatly, and the preparation that fixes each one. The checker offers Lines and Words modes only, so the work happens before you paste, not inside the tool.

Contents

  • Quick answer
  • Why identical-looking text compares as different
  • Trap 1: the same paragraph, wrapped two ways
  • Trap 2: trailing spaces and tabs
  • Trap 3: Windows and Unix line endings
  • Trap 4: reading removal plus addition as delete and retype
  • How to run a clean comparison, step by step
  • Worked example: one paragraph, two wrappings
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

When a comparison flags far more than you edited, suspect the text, not the checker. The Text Diff Checker compares lines exactly in Lines mode, so different wrapping, trailing spaces, tabs and mixed line endings all register as changes. Prepare both versions the same way before pasting, then run the comparison in Words mode as a cross-check: if Words mode reports few or no changes, the wording is fine and only the layout differed.

Why identical-looking text compares as different

The checker works in two granularities. Lines mode treats each line as a unit and reports which lines were added, which were removed and which are unchanged. Words mode compares word by word, which suits prose where a one-word edit should not mark a whole sentence as replaced.

That exactness also means anything invisible rides along with the visible text. A space at the end of a line is a character. A tab indenting one copy and spaces indenting the other are different characters. None of it shows on screen.

Trap 1: the same paragraph, wrapped two ways

Copy a paragraph from a web page and it may arrive as one long line. Copy the same paragraph from a document or an email and it may arrive broken into short lines. The words and their order are identical, but Lines mode sees one line on the left and three lines on the right, none of them equal, so it reports the whole block as changed.

The fix is to wrap both sides the same way before comparing: either join each version into single lines per paragraph, or break both at the same points. Then any remaining highlight is a real difference.

Trap 2: trailing spaces and tabs

Editors and web forms are generous with stray whitespace. A line copied from one source ends with two spaces; the same line from another source ends cleanly. One list is indented with tabs, its twin with four spaces. On screen the pairs are indistinguishable. To a line comparison they are different lines, and each counts as changed.

You cannot fix this inside the checker, because it has no control for ignoring whitespace. Fix it in the text: trim trailing spaces from both versions and make the indentation consistent before pasting.

Trap 3: Windows and Unix line endings

Lines end with an invisible marker, and it is not universal. Windows text traditionally ends lines with a carriage return followed by a line feed, while Unix and macOS text uses a line feed alone. When one version of a file was saved on Windows and the other was not, the visible content can be identical while the endings differ on every line.

In a line comparison that can make the whole file look touched, even though only the endings changed. The remedy is the same preparation principle: save or convert both versions with the same line endings before you compare them.

Trap 4: reading removal plus addition as delete and retype

The last trap is in how results are read, not in the text. Line mode treats a changed line as a removal plus an addition, the same model Git uses. A line where one word changed therefore appears as the old line removed and the new line added.

Beginners often read that pair literally: the sentence was deleted, and a new sentence was typed. Reports then describe a rewrite that never happened. Read every adjacent removal and addition as one edited line. Words mode isolates exactly which words inside the line changed.

How to run a clean comparison, step by step

  1. Prepare both versions: wrap them the same way, trim trailing spaces, and make sure the line endings match.
  2. Open the Text Diff Checker and paste the original text on the left.
  3. Paste the changed text on the right.
  4. Choose Lines for code and structured text, or Words for sentences and paragraphs.
  5. Read the highlighted result and the added, removed and unchanged counts.
  6. If Lines mode flags far more than you expected, rerun in Words mode before concluding anything.

Worked example: one paragraph, two wrappings

Take this sentence as the original, pasted as a single line:

The release notes describe the new export option and the fix for the login timeout.

The changed copy came from an email and arrived wrapped:

The release notes describe the new export option
and the fix for the login timeout.

In Lines mode, no line on the left equals any line on the right, so the checker reports 1 removed line and 2 added lines with 0 unchanged, even though nothing was edited. In Words mode, the same pair reports no added and no removed words, because the words and their order are identical.

Now make one real edit in the wrapped copy, changing login to session. Lines mode shows the second line as a removal plus an addition. Words mode narrows it to exactly 1 word removed and 1 word added, which is the truth of the edit. The tool's own example makes the same point: a, b, c on three lines against a, x, c reports 1 added, 1 removed and 2 unchanged lines.

Limitations and alternatives

The checker compares sequences, not meaning. A paragraph moved to a different place in the document shows as removed in one spot and added in another. It also has no settings to ignore whitespace or line endings, so any tolerance you need has to come from preparing the text first.

The counts and the highlighted view stay on the page; if you need the sources, copy the underlying texts from the input boxes. For a patch file, a Git diff is the better format. Very large pasted texts, whole books or log files, will still work but can take a moment to compare. Everything runs entirely in your browser, so drafts, contracts and code are never uploaded.

Common mistakes

  • Concluding the tool is broken when a whole document lights up, instead of checking wrapping, trailing spaces and line endings first.
  • Looking for an ignore-whitespace setting that does not exist, rather than normalizing the text before pasting.
  • Reporting a removal plus addition pair as content deleted and rewritten, when it is a single edited line.
  • Comparing in Lines mode when the question is about wording in prose, where Words mode gives the precise answer.
  • Cleaning only one side. Preparation only works when both versions get the same treatment.

FAQs

Why does the checker say everything changed when the words look the same?

Lines mode compares whole lines exactly. Different wrapping, trailing spaces or different line endings make lines differ even when the words are identical. Switch to Words mode to check the wording itself.

Is there a setting to ignore whitespace?

No. The checker offers Lines and Words modes only. Normalize the text before pasting instead: wrap both sides the same way and remove stray trailing spaces.

Why does one edited line count as both removed and added?

Line mode treats a changed line as a removal plus an addition, the same model Git uses. Read the pair as one edited line, not as a deletion and a separate new line.

What do Windows and Unix line endings do to a comparison?

One version may end lines with a carriage return plus a line feed while the other uses a line feed alone. The visible text is the same, but the lines are not identical, so lines can be flagged throughout. Saving both texts with the same line endings before comparing avoids it.

Is my text uploaded when I compare it?

No. The comparison runs entirely in your browser, so drafts, contracts and code are never uploaded.

Conclusion

A noisy diff is usually honest reporting about messy input. Wrap both versions the same way, trim stray whitespace, keep the line endings consistent, and the Text Diff Checker goes back to showing only the edits that matter. When the differences turn out to be real settings rather than formatting noise, the same checker is the right tool for comparing two config files after an update. More walkthroughs like this one are collected in the Developer Tools guides.