🔒 Processed locally in your browser — no data uploaded
← Back to Home

Text Diff

Original text
Changed text
Diff result

What the Text Diff Checker does

Paste an original text into the left box and its revised version into the right, and this page shows what changed between them. Lines that are identical appear as plain unmarked text, lines that exist only in the original are printed in red with a minus sign, and lines that exist only in the revision are printed in green with a plus sign.

The comparison runs by itself as soon as the page loads, using a built-in sample, so the marking scheme is visible before you paste anything. After that it runs each time you press Compare. Typical uses are checking a clause that a colleague edited, seeing what a config patch touched, or comparing a translated paragraph against its source line by line.

How to use it

  1. Paste both versionsThe left box holds the original and the right box holds the revision. Line breaks define the comparison, so keep the paragraph structure intact when pasting out of a word processor rather than accepting its reflow.
  2. Keep the line counts similarThe two texts are read in parallel from the first line down, so a revision that gained or lost lines in the middle will shift everything after the change. Aligning the text roughly beforehand gives a cleaner reading.
  3. Press CompareOne button runs the check and fills the result area with plain, red and green lines. Press it again after every edit, because the display does not refresh while you type into either box.
  4. Read the summary lineUnder the result, a status line reports how many lines were added, how many were removed and how many were compared in total. Treat it as a sanity check before reading the marked lines in detail.

Options and formats

Added linesShown in green with a leading plus sign. They appear wherever the revision holds content the original does not, including the case where the original had no line at that position at all.
Removed linesShown in red with a leading minus sign. An edited line produces a red line and a green line together, so changing one word inside a sentence looks like two changed rows rather than one.
Unchanged linesPrinted as ordinary text with two leading spaces and no marker of their own. That keeps long passages readable, at the cost of making a whitespace-only change harder to spot than a rewritten line.
ClearEmpties both boxes and the result area. The built-in sample is not put back, so the page stays blank until you paste something new or reload it in the browser.

Things to watch out for

The comparison is positionalInserting one line near the top shifts every later line, so the tool marks the rest of the document as changed. When a report looks far worse than the edit you actually made, suspect that shift rather than a hundred rewrites.
Whitespace counts as contentA line with a trailing space differs from the same line without one and is reported as a change. Pairs that look identical on screen usually hide a tab swapped for spaces or stray spacing at the end of a line.
This is not a word-level diffChanges are detected line by line, so correcting one word inside a long paragraph marks the whole paragraph as rewritten and never points at the exact word. Break long paragraphs into shorter lines when you need that precision.
Long documents get slowEvery changed line becomes its own coloured element in the result, so a file with thousands of differing lines builds a heavy page and scrolling lags. Compare long files in chunks, or reduce each side to the section you actually changed.

Frequently asked questions

Can I compare two files directly?

Open each file, select all and paste into the matching box. There is no file picker on the page, and the boxes hold whatever text you give them, so an editor or a terminal diff is more convenient for whole project trees, while this page suits the few paragraphs you need to read closely.

Why are lines I never touched marked as changed?

Because an insertion or deletion above them moved everything down or up by one position. The tool compares line one against line one, line two against line two and so on, and it does not attempt to realign the two sides after a shift. Remember the approximate edit, then compare in smaller sections.

What do the leading symbols mean?

A minus sign in red marks a line present in the original but missing or different in the revision. A plus sign in green marks a line present in the revision but not in the original. Unmarked lines are identical in both boxes, including their spacing, since spacing is compared as content.

Does it highlight the characters that changed inside a line?

No. A changed line is shown twice, once as a removal and once as an addition, and you find the difference by reading the pair. For long lines, copy the two versions into separate scratch documents and compare them in shorter pieces.

Is my text kept anywhere after I close the tab?

No. Both boxes and the result exist only in the open page and are gone when you close or reload it. Nothing is written to storage, which is what makes the tool reasonable for pasting draft contracts or internal documents you would rather not send to a server.

Why does the sample text show up every time I reload?

The page loads that pair and runs a comparison as a demonstration of how changes are marked. Press Clear to empty both sides, or select the sample text and overwrite it with your own paste; the boxes behave like any ordinary text field after that.