Shows what changed between two versions of a text, line by line and word by word. “brown fox” against “red fox” is 1 word removed and 1 word added. Both texts stay in your browser.

Lines added
1
Lines removed
0
Lines changed
2
Words added
2
Words removed
2
Differences between the two texts
Line Original text Line Changed text
1 Changed: The meeting moves to Friday at 10 am. 1 Changed: The meeting moves to Thursday at 10 am.
2 Bring the quarterly report. 2 Bring the quarterly report.
3 Changed: Room 4B, second floor. 3 Changed: Room 4B, third floor.
4 Added: Lunch is provided.

More in Text and writing

How the comparison works

Paste the original on the left and the changed version on the right. The table updates as you type. Lines are matched with the Myers difference algorithm, the method behind git diff, which finds the smallest set of added and removed lines. When a removed line is followed by an added one, the two are shown as one changed line and the words that differ inside it are marked: struck through in red for removed, underlined in green for added.

Options. Ignore case treats "Report" and "report" as equal. Ignore spaces treats runs of spaces and tabs as one and ignores spaces at the ends of a line. Only changes folds long runs of unchanged lines, keeping two lines of context around each change. Swap exchanges the two texts. Copy diff copies the result with "- " before removed and "+ " before added lines.

Two text panels side by side with matching lines connected; removed line in red, added line in green, changed line in yellow with the changed word highlighted
Lines are matched between the two versions, then marked as removed, added or changed, with the changed words highlighted.

Worked example

The example on this page is a meeting notice in two versions. The comparison finds 2 changed lines, 1 added line and 0 removed lines: "Friday" became "Thursday", "second" became "third", and the line about lunch is new.

Advertisement
Side-by-side diff layout with two columns next to an inline diff layout with removed and added lines stacked in one column
The same differences shown side by side (left) or inline in a single column (right).

FAQ

Are my texts uploaded? No. Both texts stay in your browser and the comparison runs there.

Can it compare Chinese or Japanese? Yes. Words are found with the browser's word segmentation, so a change inside a sentence without spaces is still shown word by word.

How large can the texts be? Thousands of lines work. When two long texts have almost nothing in common, the rest is shown as replaced lines instead of word by word, so the page stays fast.

Last updated:

Most popular in Digital Life

View all Digital Life calculators