Text Compare (Diff Checker)

Compare two blocks of text and highlight every addition, removal and change — instantly, and entirely in your browser.

Your differences

Paste text into both boxes to see every addition, removal and change highlighted side by side.

How it works

A diff checker answers a question people ask constantly and rarely have a good tool for: what exactly changed? Two versions of a contract, an email chain that's been edited three times, a blog post after a colleague's pass — the differences are usually small, scattered and easy to miss when you read both versions end to end.

How it works

  • Both texts are split into words and whitespace on your device.
  • A longest-common-subsequence comparison finds the biggest run of shared words.
  • Anything outside that run is marked added (green) or removed (red).
  • A changed phrase appears as a removal followed immediately by an addition.

Where people use it

  • Contracts and legal documents: confirm which clauses the other side actually amended.
  • Emails: check what changed before a forwarded message goes to a client.
  • AI prompts and outputs: see precisely how a model rewrote your draft.
  • Blog articles and essays: review an editor's pass in seconds.
  • Source code and configuration: compare two snippets outside version control.

Related tools: Word Counter · Character Counter · Reading Time Calculator · Text Case Converter

Frequently asked

Complete Guide

The Complete Guide to Comparing Two Documents Spotting Every Change Between Two Versions of Text

Somewhere between 'final version' and 'final version 2' and 'final version 2 actually final', most of us have lost track of what actually changed in a document. Comparing two versions by eye is slow and unreliable — your attention drifts, small edits hide in plain sight, and a single deleted 'not' can flip the meaning of a whole clause without anyone noticing. A text comparison tool, often called a diff checker, solves this properly: it reads both versions and shows you, precisely, what was added, removed or changed.

Reviewed by the Calcaroo Editorial TeamEstimated reading time: 10 minutes

What a diff checker actually does

A diff checker takes two blocks of text — call them the original and the revised — and works out the smallest set of changes needed to turn one into the other. It then highlights those changes so you can see them at a glance, usually with colour: green or underlined for additions, red or strikethrough for removals, and a distinct colour for text that has changed in place.

This sounds simple, but it solves a real problem. Human proofreading is good at spotting big changes and terrible at spotting small ones, especially in long, similar-looking paragraphs. A diff checker doesn't get tired, doesn't skim, and doesn't assume it already knows what the paragraph says.

Word-level vs line-level diffing

Not all comparisons work the same way, and the level of detail matters. Line-level diffing treats each line as a unit — if anything on a line changes, the whole line is flagged as different. This is fast and useful for structured content like code or line-based lists, but it's clumsy for prose: changing one word in a long paragraph would flag the entire paragraph as 'changed', which tells you very little.

Word-level diffing goes further and compares the actual words within a line or paragraph, so a single substituted word is highlighted on its own rather than dragging the whole sentence along with it. This is what most people actually want when comparing an email, an essay or a contract clause — precision at the level of the change, not the paragraph.

  • Added text — usually shown underlined or highlighted in green; it exists in the revised version but not the original.
  • Removed text — usually shown with a strikethrough or highlighted in red; it existed in the original but has been deleted.
  • Changed text — a removal and an addition next to each other, showing what was swapped in place of what.
  • Unchanged text — shown in plain, neutral styling so your eye is drawn only to what's different.

Side-by-side vs inline views

Most diff checkers offer two ways to display the result, and each suits a different task.

Side-by-side view places the original on the left and the revised version on the right, with changes highlighted in both columns. This is ideal when you want to read each version in full context — useful for long documents, contracts, or when you need to show a client or colleague exactly how a document evolved from draft to final.

Inline view merges both versions into a single flowing block of text, with deletions struck through and additions inserted directly afterwards. This is faster to scan for small documents, emails or short paragraphs, because you don't have to keep glancing between two columns to piece together what changed.

Professional uses for comparing documents

Once you start using a diff checker regularly, you notice how often 'has this changed?' comes up.

Contracts and legal documents. When a solicitor or counterparty sends back a 'lightly amended' contract, a diff checker shows you exactly which clauses moved, which numbers changed, and which sentences were quietly deleted. This matters enormously — a single altered word in a liability clause or a changed date in a break clause can have serious consequences, and skimming a twenty-page PDF is not a reliable way to catch it.

Emails and correspondence. Comparing two drafts of an important email — a complaint, a formal notice, a job offer — helps confirm that an edit did what you intended and didn't accidentally soften or harden the tone in a way you didn't plan.

AI-generated text. If you've asked an AI assistant to 'tighten this paragraph' or 'make this more formal', a diff checker shows you precisely what it changed, rather than asking you to compare two blocks of similar-sounding prose from memory. This is one of the fastest-growing everyday uses of diff tools.

Blog articles and marketing copy. Editors comparing a draft to a published version can confirm which changes made it live, which is especially useful when several people have touched the same document.

Source code. Developers have used diffing for decades to review changes before merging them, but you don't need to be a developer to benefit from the same idea — comparing two versions of a spreadsheet formula, a config file or a script works the same way.

Essays and academic writing. Comparing a submitted draft to feedback-revised version helps a student (or a tutor) see exactly what changed after edits, which is useful both for learning and for confirming feedback was actually applied.

Translations. Comparing a translated document against a previous translation can catch inconsistencies in terminology or reveal where a translator has diverged from an agreed house style.

The most dangerous edits are rarely the dramatic ones. They're the single word, quietly changed, that nobody thought to check twice.

Professional tips for comparing text

  1. 1.Paste the older version first, then the newer one. Most tools label the two panes 'original' and 'revised', and getting the order right makes the colour coding mean what you expect.
  2. 2.Strip out formatting artefacts first. If you've copied text from a PDF or Word document, watch for stray line breaks or extra spaces — these can show up as 'changes' even when the wording is identical.
  3. 3.Compare clause by clause for contracts. For very long documents, it can be easier to compare section by section rather than the whole document at once, especially if renumbering has shifted everything down by one paragraph.
  4. 4.Use word-level diffing for prose, line-level for structured data. Matching the diff mode to the content type avoids a wall of unhelpful highlighting.
  5. 5.Take a screenshot or export the comparison if you need to share it with someone else — a highlighted diff is often a faster way to explain a change than describing it in words.

Common mistakes when comparing documents

  • Assuming no highlights means no risk. A diff checker shows textual differences, not meaning. It won't tell you that an unchanged clause now contradicts a changed one elsewhere in the document.
  • Comparing the wrong versions. It's easy to accidentally paste an old draft rather than the latest one, especially with files named 'final', 'final_v2' and 'final_final'. Always check file dates or version numbers first.
  • Ignoring whitespace and punctuation changes. A missing comma or an extra space can be trivial or can genuinely change meaning (particularly in legal drafting), so don't dismiss small highlights without reading them.
  • Relying on memory instead of the tool. Skimming two documents and 'trusting your eye' is exactly the failure mode a diff checker exists to prevent — use it even when you're confident nothing important changed.
  • Not checking both directions. If someone has reordered paragraphs rather than editing them, a diff tool may show large blocks as removed and re-added rather than 'moved'. Read the surrounding context before assuming content was deleted.

You'll also like

Related Digital Tools guides

Keep learning with more from the Calcaroo library.