1xA2ZOne Data. Any Format.
Live syncLocal-first · no data upload

Convert Word to HTML

Copy text in Word, paste it into the left editor and the HTML tab on the right gives clean markup made only of structural tags. No file to open and no server.

Runs entirely in your browser. Your data is never uploaded. Tiếng Việt

01

Editor

DocsWordGmailNotionMarkdown
0 words
Ready · LocalPaste here from Google Docs, Word, Gmail, Notion
02

Live Output

Markdown
SyncedEdit the code here; the editor on the left updates itself
0 characters
Every change is processed right in your browserUTF-8 · by xuanhieu.org

When you need to convert Word to HTML

The HTML Word produces when you save or copy is heavy: every paragraph carries an MsoNormal class, o:p tags, dozens of style attributes and even conditional comments for Office. Putting that whole block on a website breaks the styling and is hard to edit. The tool reads the HTML Word places on the clipboard, keeps only what carries structure and writes the HTML again from scratch.

How to do it

  1. In Word, select the content and copy it (⌘C or Ctrl+C).
  2. Paste into the Editor editor on the left (⌘V or Ctrl+V). The tool says it recognised Word as the source and, if any unsafe elements were removed, how many.
  3. Open the HTML tab on the right (selected on this page). Check multi-level lists and tables.
  4. Open ⚙ Options if you need a full document instead of only the body, then press Copy result or Download file.

A real example

The input is a real, shortened piece of Word HTML. The list that Word numbers with fake bullet characters is recognised again as a two-level ul, the MsoTableGrid table becomes a compact table, and the Mso classes and o:p tags are gone.

Input · Word · HTML on the clipboard

<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"><head><meta name=Generator content="Microsoft Word 15"></head><body lang=EN-US><!--StartFragment--><h1><span style='font-size:20.0pt'>Weekly meeting minutes</span></h1><p class=MsoNormal>When: <b style='mso-bidi-font-weight:normal'>Monday</b>, in meeting room 3. Document: <a href="https://example.com/plan">quarterly plan</a>.<o:p></o:p></p><p class=MsoListParagraphCxSpFirst style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Close the Q4 budget<o:p></o:p></p><p class=MsoListParagraphCxSpMiddle style='margin-left:1.0in;text-indent:-.25in;mso-list:l0 level2 lfo1'><![if !supportLists]><span style='font-family:"Courier New"'>o<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Marketing: <i style='mso-bidi-font-style:normal'>up 10%</i><o:p></o:p></p><p class=MsoListParagraphCxSpLast style='text-indent:-.25in;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='font-family:Symbol'>·<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><![endif]>Assign next week's tasks<o:p></o:p></p><table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0><tr><td width=120><p class=MsoNormal><b>Task</b><o:p></o:p></p></td><td width=90><p class=MsoNormal><b>Due</b><o:p></o:p></p></td></tr><tr><td><p class=MsoNormal>Send the quote<o:p></o:p></p></td><td><p class=MsoNormal>Friday<o:p></o:p></p></td></tr></table><!--EndFragment--></body></html>

Result · HTML

<h1>Weekly meeting minutes</h1>
<p>When: <strong>Monday</strong>, in meeting room 3. Document: <a href="https://example.com/plan">quarterly plan</a>.</p>
<ul>
  <li>· Close the Q4 budget
    <ul>
      <li><code>o </code>Marketing: <em>up 10%</em></li>
    </ul></li>
  <li>· Assign next week's tasks</li>
</ul>
<table>
  <thead><tr><th><strong>Task</strong></th><th><strong>Due</strong></th></tr></thead>
  <tbody>
    <tr><td>Send the quote</td><td>Friday</td></tr>
  </tbody>
</table>

Options worth changing

Body only (no <html>)
Keep it on to paste into a website editor. Turn it off when you need the whole document with doctype and head.
Line breaks and indentation
Keep it on for readable HTML while you still edit by hand. Turn it off for compact output.
Add ids to headings
Turn it on if the destination page needs links that jump to each section.

Common problems

Limits

Frequently asked questions

Do I have to upload a Word file?

No. Copy in Word and paste into the editor. If you prefer a file, press Import file and choose a .docx; it is read in your browser.

Why do my list levels look wrong?

For lists Word numbers itself, the nesting level Word records decides the level. If you typed bullet characters by hand, use the clean-up tool to turn them into real lists.

Does the HTML contain Word styles?

No. Only structural tags such as headings, paragraphs, lists, tables, links, images and a few text styles like bold, italic and underline.

Can I use it for a WordPress post?

Yes: paste the HTML into the editor's HTML mode. If you use Gutenberg blocks, pick the Gutenberg tab to get blocks ready to paste.

Related conversions

1xA2Z · Guide

Document statistics

Most frequent words