ok.OK UtilityA LITTLE EVERYDAY MAGIC

Text Compare

Text Compare: Compare two text versions line by line and identify additions and removals.

Compare two texts

How to use Text Compare

Compare two text versions line by line and identify additions and removals.

  1. Paste the original and changed texts in their labelled boxes.
  2. Choose whether to ignore letter case or whitespace at line edges.
  3. Compare, inspect the change table and optionally download the line diff.

Example: Using Original text = First line Second line Third line; Changed text = First line Updated second line Third line; Ignore leading and trailing whitespace = off; Ignore letter case = off, the result is 1 added · 1 removed.

How it is calculated: Normalize line endings, optionally ignore letter case or surrounding whitespace, and find a longest common subsequence of lines; an edited line appears as a removal plus an addition.

Understanding the result

Texts are compared line by line. The change table marks lines as unchanged, added or removed; an edited line normally becomes one removed line and one added line.

Ignore leading and trailing whitespace trims the edges of each line for comparison. It does not ignore spacing changes inside a line. Ignore letter case is a separate option.

A calculation you can check

Changing a one-line text from blue to green produces 1 added · 1 removed. With Ignore letter case selected, BLUE and blue compare as unchanged.

What to check before using the answer

  • A line diff is not a word-by-word semantic comparison and cannot decide whether an edit improves meaning.
  • Use up to 1,000 lines per text and 200,000 characters in total. Both pasted texts remain on the device.
Does the downloaded file apply changes automatically?

No. It is a plain-text line comparison with change markers, not a full patch command or a merge operation.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit