How to Convert a Word Table to HTML

Microsoft Word is a word processing program with many functions, including the ability to place information in tables. The tables can have multiple rows and columns, as defined by the user. Microsoft Word also has the ability to save its documents in HTML format. Any tables in a Word document are then converted to HTML tables.

Step

Open the Microsoft Word program, and open the document that contains the table you want to convert.

...
Word 2007 "Save As" dialog box

Step

Click the Office menu (Word 2007) and click "Save As," then "Other Format," and choose "Web Page." In all other versions of Word, click the File menu and select "Save As," then choose "Web Page/HTML" as the file format. Some versions of Word have a "Save As Web Page" command under the File menu, which will work as well.

Step

Give the file a new name and click "Save." The saved file will have the extension .HTM.

Step

Quit the Word program.

Step

Open a web browser application and open the HTML file using the File menu's "Open File" command. Alternatively, you could right-click the file on the desktop and choose "Open With..." from the pop-up menu to select your browser application.

Step

Click the View menu (Firefox and Safari) and the "Page Source" (or "View Source") command to view the HTML code Word created. In Internet Explorer, the command to view page source is under the Page menu on the far right.

...
HTML code created in Word

Step

Scroll down the HTML window and look for a <TABLE> tag. That is the start of the HTML code for the converted table from Word.