# How to compare two Word documents?

**URL:** <https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847>\
**Category:** Factual Questions\
**Created:** [January 27, 2012, 10:13am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847 "2012-01-27T10:13:27Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dog80](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@Dog80](https://boards.straightdope.com/u/Dog80)\
**Post date:** [January 27, 2012, 10:13am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/1 "2012-01-27T10:13:27Z")

</div>

I have the original Word document and an OCR from a printed document. The two are supposedly the same, but I expect the OCRed version to have a bit different spacing, fonts, sizes etc.

How can I compare the two documents word for word while ignoring spacing, fonts etc?

---

<div class="post-metadata">

**Author:** ![Nava](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nava](https://boards.straightdope.com/u/Nava)\
**Post date:** [January 27, 2012, 11:20am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/2 "2012-01-27T11:20:30Z")

</div>

MSWord has a Compare command but I can’t recall where. In OpenOffice, it’s under Edit/Compare: open one of the two docs, then go to Edit/Compare and you’ll get the usual “pick a document” window, pick the document you want to compare to.

Since you’re interested in comparing “with no accounting for formatting or spaces”, I recommend that you start by making copies of each document, get rid of formats in these copies, then go through some cleansing for double spaces, double line breaks, etc. and compare the result. I do a similar cleanup whenever I have to compare data.

---

<div class="post-metadata">

**Author:** ![Bryan\_Ekers](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bryan_ekers/32/183_2.png) [@Bryan\_Ekers](https://boards.straightdope.com/u/Bryan_Ekers)\
**Post date:** [January 27, 2012, 11:32am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/3 "2012-01-27T11:32:55Z")

</div>

Well, try saving each document as a simple text file - that should eliminate all formatting. Then to a search-and-replace where the “Search” field is two spaces (i.e. " “) and the “Replace” field is only one (” "). Run this repeatedly until you get no more hits. Do the same for repeated line feeds, boiling them all down to singles.

I figure two or three minutes of preparations like these will save you multiple minutes of wasted time when you get to the actual compare.

---

<div class="post-metadata">

**Author:** ![grimpixie](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@grimpixie](https://boards.straightdope.com/u/grimpixie)\
**Post date:** [January 27, 2012, 11:58am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/4 "2012-01-27T11:58:44Z")

</div>

> [@Nava](#):
>
> MSWord has a Compare command but I can’t recall where.

In Office 2007, it is under the View tab in the Window block - called “View Side by Side” and the two documents scroll in synch so you can easily see where they get out of alignment…

---

<div class="post-metadata">

**Author:** ![Nava](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@Nava](https://boards.straightdope.com/u/Nava)\
**Post date:** [January 27, 2012, 12:02pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/5 "2012-01-27T12:02:22Z")

</div>

That’s different, Compare actually marks the differences as notes.

---

<div class="post-metadata">

**Author:** ![thelurkinghorror](https://avatars.discourse-cdn.com/v4/letter/t/7c8e57/32.png) [@thelurkinghorror](https://boards.straightdope.com/u/thelurkinghorror)\
**Post date:** [January 27, 2012, 4:57pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/6 "2012-01-27T16:57:06Z")

</div>

Review \> Compare in Word 2010, and presumably 2007.

---

<div class="post-metadata">

**Author:** ![redtail23](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@redtail23](https://boards.straightdope.com/u/redtail23)\
**Post date:** [January 27, 2012, 5:06pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/7 "2012-01-27T17:06:38Z")

</div>

I’m assuming you just want to make sure the text matches, since you want to ignore formatting and such.

If the document is very long, I’d use UltraCompare. They have a free trial download. Or there may be a similar shareware program out there.

That program will provide you with a side-by-side comparison, with any differences marked.

First, follow the suggestions for turning it into a text file and removing extra spaces. Also either remove multiple tabs in the same way, or change all tabs to spaces. And replace multiple line feeds while you’re at it.

I use either UltraEdit or Notepad++ (freeware) for this sort of thing due to the wildcard and pattern searches, e.g., replace all “whitespace” with a single space.

---

<div class="post-metadata">

**Author:** ![Blakeyrat](https://avatars.discourse-cdn.com/v4/letter/b/ecd19e/32.png) [@Blakeyrat](https://boards.straightdope.com/u/Blakeyrat)\
**Post date:** [January 27, 2012, 6:29pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/8 "2012-01-27T18:29:04Z")

</div>

Since you don’t care about formatting at all, you could just save the contents of both files into plain .txt files and use a tool like ExamDiff to compare them. It’s designed as a programmer’s tool, so unfortunately it’ll mark differences in whitespace also…

---

<div class="post-metadata">

**Author:** ![Exapno\_Mapcase](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/exapno_mapcase/32/1051_2.png) [@Exapno\_Mapcase](https://boards.straightdope.com/u/Exapno_Mapcase)\
**Post date:** [January 27, 2012, 6:34pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/9 "2012-01-27T18:34:53Z")

</div>

Professional proofreaders use two marvelous machines, conveniently located between the forehead and the nose.

---

<div class="post-metadata">

**Author:** ![hogarth](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/hogarth/32/1773_2.png) [@hogarth](https://boards.straightdope.com/u/hogarth)\
**Post date:** [January 27, 2012, 7:08pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/10 "2012-01-27T19:08:28Z")

</div>

My old boss used to print out both copies and hold the pages, one on top of the other, up to a window (or other light source). It worked pretty well, most of the time. In your case you might get spurious differences due to white space, I suppose.

---

<div class="post-metadata">

**Author:** ![ultrafilter](https://avatars.discourse-cdn.com/v4/letter/u/3d9bf3/32.png) [@ultrafilter](https://boards.straightdope.com/u/ultrafilter)\
**Post date:** [January 27, 2012, 7:25pm UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/11 "2012-01-27T19:25:26Z")

</div>

If you save them as text, you can use something like [WinMerge](http://winmerge.org/) to highlight all of the differences quickly.

---

<div class="post-metadata">

**Author:** ![DarrenS](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@DarrenS](https://boards.straightdope.com/u/DarrenS)\
**Post date:** [January 28, 2012, 4:11am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/12 "2012-01-28T04:11:49Z")

</div>

[This](http://www.grigsoft.com/wincmp3.htm) great little shareware program does the trick - and automatically converts the docs to text for you beforehand. It can also compare other types of “binary” formats. I’ve used it extensively over the years, and love it.

---

<div class="post-metadata">

**Author:** ![BigT](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/bigt/32/12044_2.png) [@BigT](https://boards.straightdope.com/u/BigT)\
**Post date:** [January 29, 2012, 1:49am UTC](https://boards.straightdope.com/t/how-to-compare-two-word-documents/610847/13 "2012-01-29T01:49:15Z")

</div>

> [@Exapno\_Mapcase](#):
>
> Professional proofreaders use two marvelous machines, conveniently located between the forehead and the nose.

Which explains the rather large amount of time needed or large numbers of errors. With tedious tasks like this, the human brain just can’t compare to using a computer.
