Compare two texts

Paste the original and the edited version to see exactly what changed - line by line, with the changed words marked inside each line.

Differences

Added lines: 2 · Removed: 1 · Unchanged: 3

  1. Dear team,
  2. Removed:the meeting is on Monday at 10:00.
  3. Added:the meeting is on Tuesday at 11:00.
  4. Please bring your laptop.
  5. Added:Lunch is provided.
  6. See you there!

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Paste the original text on the left and the changed text on the right.
  2. The differences appear below at once. Swap exchanges the two texts.
  3. Turn on “Ignore case” or “Ignore extra spaces” to hide changes that do not matter.

How it works

Both texts are split into lines. The tool looks for the longest run of lines the two texts share in order, and everything else is a change - a line only in the original was removed, a line only in the new text was added. Common lines at the start and end are matched first, so a small edit in a long document is found quickly.

Inside a block of changes, the first removed line is paired with the first added line, the second with the second, and so on. Each pair is compared again word by word, and only the words that differ are highlighted. A whole new paragraph has no pair, so it is shown simply as added.

Worked example

In the sample, line 2 changed from “on Monday at 10:00” to “on Tuesday at 11:00”, and the line “Lunch is provided.” was added. The result shows 2 added lines, 1 removed and 3 unchanged: line 2 appears as removed and added, with “Monday” and “10” marked in the old version and “Tuesday” and “11” in the new one.

Tips

Changes are shown by lines, so a paragraph written as one long line is reported as one changed line; the word highlighting still shows what changed inside it. For code and JSON, format both versions the same way first, or every line with different indentation counts as changed.

Frequently asked questions

How are the two texts compared?

Line by line, with the Myers difference algorithm, which finds the smallest set of added and removed lines that turns the original into the new text. When a removed line is followed by an added one, the two are also compared word by word, and the words that differ are highlighted.

What do the colours and signs mean?

Lines with a minus on a red background exist only in the original; lines with a plus on a green background exist only in the new text. Inside them, struck-out words were removed and highlighted words were added. Lines without a sign are the same in both. The two columns of numbers are line numbers in the original and in the new text.

Can I ignore differences in spacing or capital letters?

Yes. "Ignore extra spaces" treats lines as equal when they differ only in spaces at the ends or in the number of spaces between words. "Ignore case" treats "Monday" and "monday" as the same.

Is there a size limit?

The texts stay in your browser, so the limit is your device. Up to 1,000 differences between the texts are aligned line by line; beyond that, the differing part is shown as removed and then added as a whole.

More in Text

All tools in this category: Text ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.