--- title: "HTML to Word Document Step" slug: "html-word-document-step" description: "Convert HTML documents into Microsoft Word files using the HTML to Word Document step in a Flow." tags: ["HTML", "Word"] updated: 2026-06-26T13:53:39Z published: 2026-06-26T13:53:39Z canonical: "documentation.decisions.com/html-word-document-step" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # HTML to Word Document Step ## Overview The **HTML to Word Document** step converts an HTML document into a Microsoft Word document. ## Example The following HTML code will be used in the example: ```markup HTML to Word Document My First Page

I am small - size 10

I am medium - size 20

I am large- size 50

``` In the above HTML document example, font sizes have been defined as 10px, 20px, and 50px. Microsoft Word measures size using "pt" instead of "px", this will result in a smaller font size within the document upon conversion. If an exact font size is desired when converting an HTML document to a Word document, the font size attribute should use "pt" instead of "px". 1. In a Designer Project, click CREATE FLOW to create a new [Flow](https://documentation.decisions.com/version-10/docs/creating-your-first-flow-2). 2. In the Toolbox panel, navigate to **DATA > MS WORD** category, drag an **Html to Word Document** step to the workspace and connect it to the **Start** step.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779125316615.png) 3. Attach a **Show Form** step from the Toolbox panel to the **Done** outcome path of the **Html to Word Document** step. In the Properties panel, click PICK OR CREATE FORM and create a new Form.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779125366323.png) 4. Configure the Form to have a **File Download** (OutputFileDocument) and a **Button** component. Click **Save** and close the Form Designer.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779125431625.png) 5. Connect the **Failed** path and the Done path to the **End** step. Select the HTML to Word Document step. On the Properties panel, enter "HTMLWord.docx" in the **File Name** field and paste the HTML code in the **HTML** field.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779125570303.png) 6. Select the Show Form step and change the input mapping for the **Output File Document** field from **Unknown** to **Flow Data**. Select **Doc File** and click DONE.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1782481973902.png) 7. Click Save to save changes to the Flow. ## Debug 1. Select **Debug** from the top action bar. 2. Click START DEBUGGING. 3. Click **Download File.** ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1779125745390.png) 4. After the file downloads select it to open. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/image-1648129769029.png)