Text Diff Checker

Compare two texts line by line and see what was added and removed, with options to ignore case and spacing. Free and private.

Runs in your browserNo sign-upWorks offline
Ctrl+Enter to run
Original131 characters
Changed
✓ ReadySample content shown

What the Text Diff Checker does

The Text Diff Checker compares an original text with a changed version and highlights the differences line by line. Added lines are marked in green with a plus, removed lines in red with a minus, and both sides keep their line numbers so you can find each change in your own files. You can copy or download the result as a standard diff.

How to use it

  1. Paste the original text on the left and the changed text on the right.
  2. Read the highlighted comparison below the boxes, and the count of added and removed lines.
  3. Turn on Ignore upper and lower case or Ignore spacing differences to hide changes that do not matter.
  4. Use Swap sides to compare the other way, and Copy diff or Download to save the result.

Example

Two versions of a privacy policy look the same at a glance. Paste both and the checker shows one changed line, “We keep your data for 30 days”, removed and replaced with “We keep your data for 90 days”, plus a new paragraph added at the end. You can review the two real changes instead of rereading the whole page.

How the comparison works

The checker finds the longest run of lines the two texts share and marks everything else as added or removed, the same approach used by programmers’ version-control tools. A line that changed shows as one removal and one addition. Lines are compared whole, so a single changed word marks the whole line.

Very long texts, such as two files of several thousand changed lines each, are too large to compare in a browser. The tool tells you when that happens; compare smaller sections instead.

Questions people ask

Can it compare word by word?

It compares whole lines. To see a single word change clearly, put each sentence on its own line before comparing.

Can I compare files?

Open the files in any text editor, copy their contents and paste them into the two boxes.

What does the downloaded .diff file contain?

Every line, with a plus for added lines, a minus for removed lines and a space for unchanged lines.

Are my texts uploaded?

No. The comparison runs in your browser, so confidential documents stay on your device.

Related tools