Skip to main content
ToolSmartly

Online text comparison tool to detect differences

Paste two versions of a text: the tool finds added, removed and changed lines, shows them side by side and highlights the changed words. The comparison runs in your browser.

Comparison result

Added Removed Changed (changed words highlighted)

How the text comparison works

The tool finds the longest run of lines (or words) shared by both versions, as developers’ diff tools do: an addition or deletion in the middle does not shift the rest of the text. Changed lines are shown side by side, with the changed words highlighted.

How to use it

  1. Paste the original version into the first field and the changed version into the second.
  2. Choose “line by line” for code, lists or text split into lines, or “word by word” for a running paragraph.
  3. Run the comparison; tick “Ignore case” or “Ignore extra spaces” if needed.

Reading the result

  • Green: line or word added in the changed version.
  • Red: line or word removed.
  • Yellow: changed line, with removed and added words highlighted.
  • Long runs of identical lines are collapsed to keep the result readable.

Common uses

  • Reviewing a new version of a contract or quote: paste both texts in word-by-word mode to spot every change, even a single figure.
  • Comparing two versions of code or configuration without a version control tool: line-by-line mode shows the lines added and removed.
  • Checking two lists (addresses, references): sort them first with the duplicate line remover, then compare them line by line.

Frequently asked questions

Does the comparison take case and punctuation into account?

By default, yes. Tick “Ignore case” to treat “Hello” and “hello” as identical, and “Ignore extra spaces” to ignore doubled or trailing spaces. Punctuation is compared as a separate element.

Is there a size limit?

Identical parts at the start and end do not count; only the area that differs is analysed. Beyond roughly 2,000 differing lines on each side, compare the text in smaller parts.

Are my texts stored?

No, the comparison runs in your browser and nothing is sent.

How do I compare two Word or PDF documents?

Copy the text of each document and paste it into the two fields. Formatting (bold, fonts, images) is not compared, only the text.

Why does a small edit show up as a whole changed line?

In line-by-line mode, any change inside a line marks the full line as removed and re-added. Switch to word-by-word mode to see exactly which words changed within a paragraph.

Can I ignore indentation changes in code?

Yes. Tick “Ignore extra spaces”: runs of spaces and tabs count as one space and spaces at the start and end of each line are ignored, so a line that was only re-indented is shown as unchanged. The “Swap” button reverses the two versions if you pasted them the wrong way round.