File Format & Compatibility

How to Convert a Word Table of Contents to a Left-Side HTML Navigation Pane

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 870 views

Question details

The user needs to convert a large Word document into an HTML webpage where the table of contents functions as a left-side navigation pane while the main text appears on the right.

How to Convert a Word Table of Contents to a Left-Side HTML Navigation Pane
Product
Microsoft Word
Device & OS
not provided
Scenario
Creating a web-friendly version of a lengthy document with a fixed, accessible navigation menu for better readability.
Observed behavior
When exporting to HTML, Word generates a single-column layout, placing the Table of Contents inline at the top of the page rather than in a split-pane view.
Before you start

Ensure your Word document uses standard Heading styles and contains a properly generated, clickable Table of Contents before exporting it to a web page format.

Solution 1Recommended

Export to HTML and Use CSS to Create a Split Layout

Since Word does not natively support exporting to a two-column HTML layout, you must manually edit the exported HTML file using a code editor to add layout styling.

Microsoft Word's 'Save as Web Page' feature creates a standard, single-column HTML file. To achieve a modern layout with a static navigation pane on the left, you will need to separate the TOC and document content using HTML containers and apply CSS properties like Flexbox.

1
Save the Document as a Web Page

Open your document in Word, click 'File' > 'Save As', choose your destination folder, and select 'Web Page (*.htm; *.html)' from the 'Save as type' dropdown menu.

2
Open the File in a Code Editor

Locate the saved HTML file and open it using an HTML code editor, such as VS Code, Notepad++, or Adobe Dreamweaver.

3
Separate the TOC and Content

Find the section containing your Table of Contents and wrap it in a `<div id="sidebar">` tag. Wrap the remaining document text in a `<div id="main-content">` tag.

4
Apply CSS Flexbox Properties

Add CSS rules within a `<style>` block in the `<head>` section. Apply `display: flex;` to the parent body tag, and assign a fixed width (e.g., `width: 300px;`) to the sidebar div so it remains anchored on the left side.

Export to HTML and Use CSS to Create a Split Layout
Consider Web Development Tools: If manually writing CSS is too complex, consider using a third-party document-to-web converter or web development software that automatically maps Word headings to a left-pane navigation template.
Free Microsoft Office alternative

Experience Seamless Document Creation with WPS Office

While complex HTML exports often require manual coding regardless of your word processor, WPS Office provides a lightweight, highly compatible, and free alternative to Microsoft Office for writing, formatting, and organizing large documents perfectly before web conversion.

Fully compatible with Microsoft Word formats (.doc, .docx).Advanced formatting tools to easily structure Headings and clickable Tables of Contents.Lightweight application that handles very large, text-heavy documents smoothly without freezing.Free to use with a familiar, tabbed user interface for rapid content creation.
microsoft office alternative - wps office

Frequently Asked Questions

Can Word automatically create a multi-frame HTML site?

No, modern versions of Microsoft Word export HTML as a single, continuous page. The legacy 'Frames' feature is no longer supported for standard web exports, so a multi-column or split-pane layout requires manual CSS adjustments or third-party web tools.

Why do the links in my exported HTML Table of Contents not work?

This usually happens if the Table of Contents was typed manually rather than dynamically linked in the original Word document. Ensure you use the 'References' > 'Table of Contents' tool in Word to generate it so that hyperlink anchors are preserved in the HTML export.

Is there a non-coding way to convert a Word doc to a left-navigation web page?

Yes, you can use specialized third-party help authoring software like MadCap Flare, RoboHelp, or specific Word-to-HTML converters. These tools offer built-in templates with left-side navigation panes, bypassing the need for manual HTML coding.