Compare Two Texts

ToolText · updated 5 October 2026

Supply contract No. 15 The price is 120,000. Delivery within 10 working days. Payment within 5 days.

Supply contract No. 15 The price is 135,000. Delivery within 10 working days. Late delivery penalty 0.1% a day. Payment within 5 days.

Compare by

Added: 11, removed: 1. Places with changes: 2

Supply contract No. 15 The price is 120135,000. Delivery within 10 working days. Late delivery penalty 0.1% a day. Payment within 5 days.

The fields work with JavaScript on. Above is a worked example.

Paste the old version into “Before” and the new one into “After”. The result below shows both texts at once: the common part appears once, what “After” added is underlined on a green background, and what it removed from “Before” is struck through on a red one. It updates as you type. The line above it counts what was added and removed — words and punctuation marks, or lines when comparing by lines — and the places where the texts differ. Empty lines and spaces are not counted as added or removed: if the texts differ only in them, the line says “Differences in spacing only”. The example shows a contract where the price went from 120,000 to 135,000 and a line about a late delivery penalty appeared.

By words and by lines

By words, the texts are split into words, spaces and punctuation marks, and the tool shows the shortest set of insertions and deletions that turns one into the other. A replaced word appears as the old one struck through next to the new one underlined.

By lines, a line is compared as a whole. This is clearer for lists and code, where it matters which line changed, not which letter. An empty line counts as a line too.

Case and spaces

“Ignore case” treats “Price” and “price” as the same word; the result shows the spelling from “After”. “Ignore spaces” hides changes that are only about spacing: a double space or an indent, and, when comparing by words, a line break in a different place. Turn both off to see every difference.

Moving between changes

“Previous change” and “Next change” jump through the places where the texts differ and outline the current one; the page scrolls so it is in the middle of the screen. After the last change “Next change” goes back to the first.

Limits

The comparison is done on your device, and long or very different texts take time and memory. So it stops at 50,000 pieces in both texts together and at 2,000 added and removed pieces, and instead of a result shows a line saying the texts are too large or too different. Compare such texts in parts: by chapter, by section, by page.

Questions

What is the difference between comparing by words and by lines?
By words, every word, space and punctuation mark is compared on its own, so a changed number inside a sentence is highlighted by itself. By lines, the whole line is the unit: if anything in it changed, the old line is shown removed and the new one added. Words suit prose and contracts; lines suit lists, code and tables pasted as text.
What does "Ignore spaces" do?
By words, spaces and line breaks are left out of the comparison, and the result shows the words separated by single spaces. By lines, runs of spaces inside a line count as one and spaces at the ends of a line are ignored, so a line that only gained an indent counts as unchanged.
Why does it say the texts are too large or too different?
The comparison runs in your browser and stops before the tab freezes: at most 50,000 pieces in both texts together — every word, space and punctuation mark is a piece — and at most 2,000 added and removed pieces. Past either limit, compare the texts in parts, for example section by section.
Is my text sent anywhere?
No. Both texts are compared in your browser; they are not sent to a server and not saved.