Skip to content
HandyKit

How to Compare Two Texts and Find the Differences

· 2 min read

Two versions of a letter, contract, essay or list often look the same at a glance. Reading them side by side to spot the changes is slow, and it is easy to miss a single word.

Text Compare does that work for you and shows exactly what changed. This guide explains how to use it, its options, and a few things that can trip you up. No technical knowledge is needed.

Paste the two versions

Paste the original text on the left and the new version on the right. The tool compares them line by line and shows:

  • Removed lines, which are in the original but not the new version.
  • Added lines, which are in the new version but not the original.
  • Changed words, highlighted inside a line that changed, so a one-word edit stands out without rereading the whole line.

An example

The original:

Dear Sam,
The meeting is on Monday at 10.
Please bring the report.
Thanks,
Ada

The new version:

Dear Sam,
The meeting is on Tuesday at 10.
Please bring the report.
And the slides.
Thanks,
Ada

The tool shows the second line as changed, with "Monday" and "Tuesday" highlighted, and "And the slides." as a new line. Everything else matches.

Copy the differences

To send the changes to someone, or keep a record, use Copy differences. It copies only the changed lines, with line numbers: removed lines start with a minus sign and added lines with a plus sign. For the example:

-2: The meeting is on Monday at 10.
+2: The meeting is on Tuesday at 10.
+4: And the slides.

Adjust the comparison

  • Ignore upper and lower case treats "Cat" and "cat" as the same.
  • Ignore extra spaces counts a run of spaces as one and ignores spaces at the ends of lines.

Windows and Mac or Linux line endings always count as the same, so a file saved on one system doesn't show false changes against one from another.

Things that can trip you up

Moved text. A paragraph that moved shows as removed in its old place and added in its new place, not as moved. If you see the same paragraph removed and added, it may only have changed position.

Text from Word or a PDF. Line breaks may differ between the two versions. If a paragraph is one long line in one version and several lines in the other, the whole paragraph shows as changed, but the word highlights still point to the real edits.

Too many changes. If more than 3,000 lines changed, the tool says the texts are too different. Check you pasted the right texts, or compare smaller parts one at a time.

Other tools for related jobs

For JSON data, JSON Compare ignores key order and formatting and reports only real changes in the data. To make the same change in many places, use Bulk Find and Replace.

The comparison runs in your browser, so your text never leaves your device, and there is no sign-up.

Try it

Paste your two versions into Text Compare and read the highlighted changes.

Tools in this guide

  • Text Compare

    Paste two versions of a text to see the added, removed and changed lines, with changed words highlighted. Free and private: nothing is uploaded.

  • JSON Compare

    Paste two JSON documents to see exactly what changed: added, removed and changed values, each with its path. Key order and formatting are ignored.

  • Bulk Find and Replace

    Paste your text and a list of find → replace pairs, and every pair is applied in one go. Free and private: nothing is uploaded.

  • · 2 min read

    How to Compare Two JSON Files

    Find what changed between two JSON documents, ignoring key order and formatting. A worked example, how to read JSONPath, and how arrays and numbers compare.

  • · 3 min read

    How to Find and Replace Many Words at Once

    Replace a whole list of words in one go: write find => replace pairs or paste them from a spreadsheet, swap words safely, and check every change afterwards.

  • · 2 min read

    Minify JSON: What It Does and When to Use It

    What minifying JSON removes, what it never changes, when it is worth doing and when it is not, and why sorting keys gives stable output you can compare or hash.