Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There are a ton of utilities for cleaning the html produced by Word. Some are online services and some are Windows desktop apps.

Does anyone have good experience with any? I am looking for one that does a very good job of maintaining the layout and text styles of the original document. The people using the tool know very little or no html which means they can't be spending time doing html editing to fix the layout.

share|improve this question
    
Is this about exporting to HTML, or about Copy & Paste from Microsoft Office into other software, such as some online editor or email client? –  Arjan Oct 10 '09 at 11:20
    
It's about converting a doc file to html so that html can be used in a web page. Either taking the html converted by Word and cleaning it up or using another to do the conversion. In either case, the produced html should represent the original look as much as possible. –  Tony_Henrich Oct 10 '09 at 17:27
add comment

closed as off-topic by Excellll, Tog, Simon Sheehan, Mokubai, Dave Rook Sep 17 '13 at 12:41

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they tend to become obsolete quickly. Instead, describe your situation and the specific problem you're trying to solve. Here are a few suggestions on how to properly ask this type of question." – Excellll, Tog, Simon Sheehan, Mokubai, Dave Rook
If this question can be reworded to fit the rules in the help center, please edit the question.

7 Answers

The free and open-source HTML TIDY utility is recommended by w3.org.

share|improve this answer
add comment

OpenOffice.org does a good job of that. It's what I use to clean out the crap from an Office-produced HTML page. Here's a link to the Go-OO version.

share|improve this answer
    
What's the advantage of Go-OO over OpenOffice.org? –  Arjan Oct 10 '09 at 11:18
    
it's a community repackaging of OO, from the looks of it. includes some additional optimizations, features and eye-candy. it's the default build provided by Debian/Ubuntu/others. freer licensing as well. here's a nice graphical list of some of the stuff they've added: go-oo.org/discover –  quack quixote Oct 10 '09 at 11:30
add comment

maintaining the layout and text styles of the original document

Then you should simply not clean the HTML. The issue often is that the HTML created by Microsoft Office is full of style definitions, while most people only want to maintain the structure (and have the style defined by, for example, the web site on which the HTML is used).

share|improve this answer
add comment

I'm from Opilion Software, you can try our DOC To HTML Converter utility which was designed to batch convert MS Word docs to as compact HTML pages as possible, with many customizable options.

share|improve this answer
add comment

I just used Word Cleaner. It's expensive-ish at $99, but it is very configurable (so the title is misleading, sounds like it's just for cleaning bad HTML). I'm not a shill, by the way. I tried Doc to HTML and it would have probably done the job, but my situation involves a lot if pressure and customizing, so I decided to go with the most configurable. It can directly transform a docx file, not just html. It was very good at taking all my Styles formatting for headings (my biggest concern), even the spacing between paragraphs.

share|improve this answer
add comment

Microsoft had a nice little tool called the "Office 2000 HTML Filter" which I believe was integrated in to Office 2002 and later. Most people miss the output created by saving as "Filtered HTML" or "Compact HTML" - allowing you to save the HTML without all the extra Office markup.

I think (but can't seem to confirm) that some of the additional options from the Office add-in for creating decent HTML were also folded in, but for the life of me I can't find it at the moment.

Will it win any "coding standards" awards? No.

Is it better than the default "Save as HTML"? Yes.

Will it provide good enough HTML that won't make your web guy run to the corner crying? More or less... some tend to be a little too hard-core for their own good. :) (for the humor-impaired: that's a joke)

share|improve this answer
add comment
up vote 0 down vote accepted

I found Word Cleaner from Zapadoo. It did a better job than Word's html, there are different options of output HTML and it can be used for batch processiong.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.