Text Diff Checker

In short: the sample differs in exactly two places: "jumps over the" was replaced by "leaps over the", and "bright day" became "bright cold day" — shown as 2 lines removed, 2 lines added, with the two unchanged lines as context.

Reading a diff like a reviewer

A diff is a compressed story of change, told in three kinds of line: unchanged context, removals from the original (marked −), and additions in the new text (marked +). A replaced line always appears as a removal immediately followed by its addition, because at line granularity there is no "edited" state, only "this left, that arrived". The engine underneath finds the longest common subsequence of lines between the two texts and reports everything outside it, which guarantees the smallest possible set of changes at line level; it is the same principle as the Unix diff that has compared files since the 1970s, and the view every code-review tool still presents. Read top to bottom, the output reconstructs both documents and the exact path between them.

Two habits make diffs more useful. Compare clean inputs: normalise line endings and stray trailing spaces first, or the tool will spend its report on invisible whitespace. And diff at the right granularity for the question: line diffs answer "which lines changed" perfectly and "which words changed inside this paragraph" badly, which is why long single-line paragraphs (minified files, JSON on one line, wrapped prose) diff as one giant replaced block. For those, split the text into sentences or pretty-print it first (our JSON formatter does this for JSON), then compare. Everything here runs in your browser; nothing is uploaded. The counts above the output are the quick health check: a revision you expected to be small that reports hundreds of changed lines usually means formatting churn (a tool rewrapped or re-indented everything), and that is worth knowing before you review a single line of it.

Worked example

Original: four lines about the fox. Changed: two of the four lines edited.

Result: 2 unchanged lines, 2 removed, 2 added, similarity 50 percent of lines untouched. If instead the whole text were retyped identically, the diff would be empty and the counts all zero, the correct and boring answer; if every line changed, context disappears and the report is one removal block and one addition block.

Everyday jobs a diff quietly does

Version questions appear everywhere once you have the tool: which paragraph did the editor actually change in this contract draft; does the config file on the server differ from the one in the repository, and where; what did I alter in this article between the version I sent and the version that came back; is this email template the new one or the old one with a fresh date. A diff answers each in seconds, and with more authority than eyeballing two documents side by side, which is exactly how a changed digit in a long clause slips past. Keep the habit that professionals keep: diff before you sign, publish or deploy anything that exists in two versions. If the output is empty, the two texts are identical, and you have proof rather than a feeling.

Frequently asked questions

How does a diff tool decide what changed?

It finds the longest common subsequence: the largest set of lines that appear in both texts in the same order. Everything in the first text but not in that subsequence is shown as removed, everything in the second but not in it as added, and the subsequence itself as unchanged context. That is the same principle as the Unix diff command and the diffs in Git, though production tools add heuristics (like the Myers algorithm and patience sorting) to make the output prettier around moved blocks.

Why does a moved paragraph show as delete plus insert?

Because a line diff has no concept of 'moved'. If a paragraph leaves line 10 and appears at line 40, the longest common subsequence cannot include it in both places while preserving order, so the tool reports the honest primitives it has: removed here, added there. Dedicated move detection exists in some code-review tools, but for text comparison the delete-plus-insert view is standard and, once you know to read it that way, unambiguous.

Does whitespace matter in the comparison?

On this page, yes: lines are compared exactly, so a trailing space or a changed indent marks the line as changed (shown as a remove plus an add). That strictness is right for code and config, where whitespace can matter, and annoying for prose pasted from different sources. If two texts look identical but diff as fully changed, check for invisible differences first: trailing spaces, tabs versus spaces, or Windows versus Unix line endings are the usual culprits.

What is the biggest text I can compare here?

The comparison table grows with the product of the two line counts, so this page caps input at about 2,000 lines per side, which covers documents, config files, articles and most source files. Beyond that, a desktop tool or the command-line diff is the right instrument: it uses memory-efficient algorithms and will handle whole codebases. For a quick 'what changed between these two versions' on human-scale text, the browser is instant.

Is my text uploaded for comparison?

No. The diff is computed by JavaScript in your browser tab; both texts stay on your machine. That makes the page safe for contracts, drafts and config files you would not paste into a server-side tool. As with all our tools, it works offline once loaded, which you can verify by disconnecting and comparing again.

Note: line-based comparison with exact matching (whitespace counts). For word-level highlighting inside long lines, split the text into shorter lines first. Everything runs locally in your browser.

Related tools

Diff logic and worked example last verified: 23 November 2026. Everything is calculated in your browser — nothing you type is sent anywhere.