Word's HTML is built to round-trip back into Word, so it ships XML namespaces, conditional comments, MsoNormal classes and mso- CSS that no browser reads. This page shows what a Word paste actually contains and the shortest path from it to publishable markup.
Editor:Microsoft Word (desktop Word for Windows and Mac, plus Word on the web)
Word paste includes XML namespace declarations (xmlns:o, xmlns:w), conditional comments targeting specific Office versions, MsoNormal and MsoListParagraph classes, and inline styles with mso- prefixed properties that no browser understands. Images are often embedded as VML or base64 data URIs with Word-specific wrappers.
A fragment guarded by <!--[if gte mso 9]><xml>…<![endif]--> conditional comments and xmlns:o / xmlns:w / xmlns:m namespace declarations on the body element.
class="MsoNormal" plus a style attribute that includes margin-bottom:0cm; line-height:normal; and mso- properties such as mso-pagination and mso-layout-grid-align.
Point-based sizes (font-size:11.0pt) and a font-family list ending in a mso-ascii-theme-font fallback, which no browser resolves.
class="MsoListParagraph" with a manual mso-list:l0 level1 lfo1 declaration and a literal bullet character in a span, rather than a clean <ul>.
A <table> with class="MsoTableGrid", border-collapse:collapse, and explicit mso-table-lspace / mso-table-rspace properties on every cell.
Microsoft Word Output
<p class="MsoNormal" style="margin-bottom:0cm;line-height:normal"><b><span style="font-size:14.0pt;font-family:'Calibri',sans-serif;mso-ascii-theme-font:minor-latin">Introduction</span></b></p> <p class="MsoNormal" style="margin-bottom:0cm;line-height:normal"><span style="font-size:11.0pt;font-family:'Calibri',sans-serif;mso-ascii-theme-font:minor-latin">This is a paragraph with </span><b><span style="font-size:11.0pt">bold text</span></b><span style="font-size:11.0pt"> and </span><i><span style="font-size:11.0pt">italic text</span></i><span style="font-size:11.0pt">.</span></p>
Clean HTML
<h2>Introduction</h2> <p>This is a paragraph with <strong>bold text</strong> and <em>italic text</em>.</p>
Copy the passage from Word, accepting the full clipboard flavour
Clean with comment removal on — Word's conditional comments are the first thing to go
Check that MsoNormal classes and mso- properties are gone and the lists still read as lists
Rebuild bullet structure in the destination editor if the paste flattened it
Sends the full Word HTML flavour, conditional comments included. Many editors keep it; some, such as WordPress's block editor, strip the XML prologue but keep MsoNormal classes.
Affects pasting into Word, not out of it. There is no equivalent “copy as clean HTML” command in the desktop app.
Removes VML and some Office-specific markup, but keeps MsoNormal classes and point-based font sizes. Better than a raw copy, still not clean.
A much smaller flavour than desktop Word: no XML prologue, but still inline font-family, font-size in points and span wrappers around runs.
Word writes the bullet character into the text and fakes indentation with mso-list levels. Remove the literal characters and rebuild the list as a real <ul><li>, or paste into the destination as plain text and re-apply the list.
That is Word's conditional comment for older Office versions. Publish Helper's comment removal deletes it; if you are cleaning by hand, remove the whole comment block before editing anything else.
Word may paste images as VML shapes or base64 data URIs with Office wrappers. Upload the images separately to your CMS and insert them there; keep the cleaned text as the article body.
Word's HTML is not designed for browsers at all. It is designed to round-trip: open the saved page in Word again and you get the document back, with the same margins, list levels and theme fonts. That is why the markup contains conditional comments addressed to Office versions, namespace declarations for OOXML, and CSS properties with an mso- prefix that only Word understands. Every one of those is dead weight once the content is on the web.
The practical consequence is that Word paste is measurably heavier than Docs paste, and its list handling is worse. Lists are paragraphs with a mso-list declaration and a literal bullet glyph, so removing styles leaves the glyphs behind and the structure disappears. Cleaning gives you the text and the paragraphs; list structure usually has to be rebuilt in the destination editor.
Word targets document fidelity across Office versions, so it ships XML namespaces, conditional comments, table layout properties and mso- CSS that browsers ignore. Docs targets a simpler visual match. Both are presentation markup, but Word carries more of it.
Cleaner, not clean. The filtered export drops VML and some Office-specific markup but keeps MsoNormal classes, point-based font sizes and mso- properties. Pass the result through the cleaner before publishing.
Word generates HTML designed to round-trip back to Word, not for the web. It includes XML namespaces, Office-specific CSS properties (mso- prefixed), and conditional comments — none of which browsers understand. Google Docs HTML is bloated but at least uses standard CSS properties.
Yes. Word often converts bullet lists into paragraphs with MsoListParagraph classes and manual indentation. Publish Helper's cleanup removes the Word-specific classes and inline margins, though the content structure is preserved as-is from your paste.
Word sometimes embeds images as base64 data URIs or VML markup. Publish Helper preserves standard img tags but removes Word-specific wrappers and VML content. For best results, upload images separately to your CMS.
Last updated: March 2026