CODDY Tool

Text Diff

Compare two texts and see exactly which lines were added, removed or changed.

Paste two versions of anything and see the differences highlighted line by line. Choose a unified or side-by-side view, optionally ignore case and whitespace, and get a summary of how much actually changed.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

Loading tool…

What Text Diff supports

  • Unified view
  • Side-by-side view
  • Changes only

About Text Diff

Working out what changed between two versions of something is a job people do constantly and badly — reading two documents side by side and hoping to spot the difference. A diff does it exactly, and shows you the answer in seconds.

This compares line by line using a longest-common-subsequence algorithm, the same approach version control systems use. That matters because a naive line-by-line comparison marks everything after an inserted line as changed; an LCS diff correctly identifies the single insertion and leaves the rest alone.

Options let you ignore case and normalise whitespace before comparing, which is what you want when the only real question is whether the content differs rather than the formatting.

How to compare two texts

  1. Paste the original

    Put the first version in the left box.

  2. Paste the modified version

    Put the second version in the right box.

  3. Choose the view

    Unified shows one column with markers; side-by-side shows both.

  4. Read the differences

    Added lines are green, removed lines red, and the summary counts each.

Good uses for a diff

  • Checking exactly what an editor changed in a draft.
  • Comparing two configuration files to find the setting that differs.
  • Seeing what changed between two API responses.
  • Verifying that a copied block of text is identical to its source.
  • Reviewing a contract revision without reading the whole thing again.

Frequently asked questions

Does this compare word by word or line by line?

Line by line, which is how version control diffs work and is the right granularity for most documents and code. A line that changed at all is shown as one removal and one addition, so you can see both versions.

What does ignoring whitespace do?

It normalises runs of spaces and trims each line before comparing, so a change in indentation or a trailing space does not register as a difference. The original text is still displayed as written.

Are my documents uploaded?

No. The comparison runs entirely in your browser, which matters when you are diffing contracts, configuration files containing credentials, or anything else confidential.

Is there a size limit?

Very large documents are capped, because the algorithm needs a table proportional to the two lengths multiplied together and an unbounded one would exhaust memory. For files that big, a desktop diff tool is the right choice.

All Text Tools

Text Diff is free to use with no account, no watermark and no usage limits. Last updated 14 August 2026.