Compare two Word documents for textual similarities
How to compare two Word documents for shared and changed text: revision comparison, similarity checks, hidden-character pitfalls, and output usability.
What comparing two Word documents actually measures
Comparing two documents does not change either source file. It produces a third view, such as a marked-up document, a list of changes or a score, built from the text the two files share and the text that differs. This covers two related questions. A revision comparison asks where the versions differ and marks insertions, deletions and sometimes moved passages. Whatever stays unmarked is the text the documents have in common. A similarity check asks how much the documents overlap and usually returns a percentage or a set of matching passages.
Granularity affects how readable the result is. Character-level comparison flags every changed letter. Word-level comparison treats each word as a unit, so changing one letter marks the whole word. Sentence- or paragraph-level comparison groups changes more coarsely. For edited prose, word-level comparison usually gives the clearest picture of revisions. It shows which words changed without breaking words into fragments.
Stored characters versus what you see on the page
Comparison tools work on the characters stored in the file, not on how the text looks. Two passages can look the same on screen and still count as different, and a formatting change can alter the appearance without changing a single character. The most common causes of false differences are:
- Spaces and punctuation variants: a non-breaking space versus a regular space, curly versus straight quotation marks, or a hyphen versus an en dash.
- Lookalike letters from other scripts: a Cyrillic letter that resembles a Latin one is a different character and will not match.
- Unicode-styled text: output from "font generator" tools often uses separate Unicode characters, such as the Mathematical Alphanumeric Symbols block, rather than formatting. A styled bold A is stored as a different character from the letter A.
- Invisible characters: zero-width spaces and bidirectional control characters take up no visible space but are present in the stored text.
- Reversed versus mirrored text: reversing character order produces different text that will not match the original. Visual mirroring applied through formatting, a flipped text box or CSS-style presentation usually leaves the stored characters unchanged, though how a tool reads text inside shapes or text boxes varies.
Formatting goes the other way. Bold, italics, font and color change appearance but leave the characters alone. Revision-comparison features may report formatting changes separately from text changes, so check whether that option is on, depending on whether formatting matters to you. If either file already contains tracked changes or comments, decide whether to accept or reject them before comparing. Otherwise existing markup can mix with the new comparison.
If you control the preprocessing, for example by exporting to plain text or using a script, normalizing both texts the same way removes some false differences. Unicode compatibility normalization (NFKC) converts many styled characters, including mathematical bold and italic letters, to their plain equivalents. Canonical normalization (NFC) does not. Neither form converts lookalike letters from other scripts into Latin letters. Those need a separate confusable-character check.
Which approach suits your result
The right method depends on whether you need a reviewable record of edits, a measure of overlap, or a repeatable check you can run many times. The table compares common approaches on the same criteria.
| Approach | What it reports | Keeps Word formatting | Best suited to | Main tradeoff |
| Built-in revision comparison in a word processor | Insertions, deletions and often moves and formatting changes, shown in a new document | Yes, the output is itself a document | Reviewing edits between versions of the same document | Shows differences rather than a similarity score; heavy rewrites produce dense, hard-to-read markup |
| Plain-text export plus a diff tool | Changed lines or words between two text files | No | Precise, repeatable checks and exposing hidden-character differences | Formatting is lost; tables, footnotes and text boxes may export unpredictably |
| Similarity or overlap checker | A percentage and/or highlighted matching passages | Usually not | Spotting shared passages between documents that are not versions of each other | Scores depend on the method; not a record of edits; often requires uploading files to an online service |
| Scripted comparison, such as Python's standard difflib module | Similarity ratios and matching blocks | No | Batch processing and custom normalization rules | Needs setup, and you must choose and justify the metric |
For Microsoft Word specifically, Microsoft's documentation for desktop Word describes a Compare command on the Review tab that creates a marked-up comparison of an original and a revised document. Menu names, options and availability can differ between versions and platforms, including web and mobile editions. Check this in the version you use. This guide does not evaluate third-party comparison or similarity services, so it makes no claims about what any particular one offers.
Illustrative comparisons
The examples below use matched input to show how the methods behave. The outputs are illustrative and were not produced by running a specific tool.
Version A: The committee approved the budget on Friday.
Version B: The committee approved the revised budget on Monday.
Word-level comparison (illustrative notation):
The committee approved the [+revised+] budget on [-Friday.-][+Monday.+]
In this pair, six words appear in the same order in both versions: "The committee approved the budget on". A revision view leaves those words unmarked. A similarity measure counts them toward a score, but the exact figure depends on the method, such as word overlap or character sequence matching, so no score is given here.
Version A: Final report
Version B: 𝐅𝐢𝐧𝐚𝐥 𝐫𝐞𝐩𝐨𝐫𝐭 (Unicode mathematical bold characters)
Without normalization (illustrative): every letter is reported as different
After NFKC normalization of both texts: the two lines match
The second example shows why text that looks the same can score as completely different. Had Version B been bolded with ordinary Word formatting instead, the characters would match and only a formatting change, if any, would be reported.
Will the results stay readable and usable where you need them?
Revision markup often relies on color. Readers who cannot tell the colors apart need other cues, such as underlining for insertions and strikethrough for deletions. Check that your markup settings include them. How screen readers announce tracked changes and comparison markup varies by assistive technology, word processor and version. If the output must be accessible, test it with the tools your readers actually use rather than assuming support.
Comparison markup may not survive copying. Pasting from a marked-up document into another application can keep the changes, flatten them, or drop deleted text, depending on the source and destination. Plain-text destinations such as email, chat or form fields lose underline, strikethrough and color, which can make inserted and deleted text impossible to tell apart. If you need to share results in plain text, write them as an explicit list, for example "Changed 'Friday' to 'Monday' in paragraph 2". Alternatively, accept or reject the changes in a copy and share the clean result. Either way, paste a sample into the destination to check it.
Plain-text exports keep hidden characters even though formatting is gone. To find out why two passages that look identical still differ, show formatting marks in the word processor, or use a tool that displays each character's code point.
Read similarity scores with care. A high percentage can come from shared quotations, boilerplate, citations or common phrasing, and a low one can hide a closely paraphrased passage. Review the matched passages rather than relying on the number alone.
Online similarity or comparison services usually require uploading both documents. For confidential, personal or unpublished material, review the service's stated data retention and usage terms before uploading, or use a local tool. Before sharing any file, remove comments, tracked changes, hidden text and document properties that are not meant to be shared.
Limits of this guide
No tool was tested for this article, and no accuracy measurements, version-specific menu paths, pricing or service comparisons were available. The example outputs are illustrative. Confirm feature availability, markup options and copy-and-paste behavior in your own software and destination before relying on them.