WordMeasure

Compare text

Paste two versions of a text to see exactly what changed. Removed words are struck through and added words are highlighted.

Sample texts shown. Paste your own to replace them.

0Words added
0Words removed
0Words unchanged
0%Match

Differences

Struck through was removedHighlighted was addedCopied differences mark removals as [-text-] and additions as {+text+}.

How text comparison works

We split both texts into words, or into lines, and find the longest sequence they share in the same order. Anything in the original that is not part of that shared sequence was removed. Anything in the changed text that is not part of it was added. This is the same method programmers use to compare versions of code.

Compare words for prose, such as two drafts of an essay or a contract. Compare lines for lists, addresses, code or anything where each line is its own item. Very long or very different texts are compared line by line, so the page stays quick.

Match is the share of all words, or lines, that both versions have in common. A small reword can move it more than you expect, because a changed word counts once as removed and once as added. Both texts stay in your browser.

Questions about comparing text

How do I compare two documents for differences?

Copy the text of the first document into Original text and the second into Changed text. Removed words are struck through and added words are highlighted below. Word has its own Compare feature on the Review tab for Word files. Pasting here works for text from any program, email or web page, with nothing to install.

Should I compare by words or by lines?

Compare words for prose, such as essays, letters and contracts, where small changes in wording matter. Compare lines for lists, addresses, code and anything copied from a spreadsheet, where each line stands on its own. In line mode, a line with even one changed word shows as one removed line and one added line.

Does it ignore capital letters and punctuation?

Tick "Ignore capitals" and "The" and "the" are treated as the same word. Punctuation changes still show in the differences, but only words are counted in the figures above. If the words match and only punctuation or spacing has changed, a note above the differences tells you so. That saves you hunting for a change you cannot see.

What does the match percentage mean?

Match is the share of words, or lines, that both versions have in common. Two identical texts score 100%. A light edit scores high and a full rewrite scores low. Because a changed word counts once as removed and once as added, a few small edits can lower the figure more than you might expect.

Can I copy the differences?

Yes. Press Copy differences to copy the whole comparison as plain text. Removed text is marked like [-this-] and added text like {+this+}, so the changes still show when you paste them into an email, a chat message or a plain text file. In line mode, each line starts with a minus or plus sign instead.

Related tools and guides

Editing to a limit? Read our guide on how to cut your word count.