logo
search
Others

How to Embed Interactive Plotly HTML in Microsoft Word

Adam DavisAdam Davis Oct 15, 2026 869 views

Question details

The user wants to embed an interactive Plotly HTML graph into a Word document but it pastes as a hyperlink.

How to Embed Interactive Plotly HTML in Microsoft Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Pasting a Plotly HTML graph directly into a Word document to maintain its interactive data visualization features.
Observed behavior
The pasted HTML code or file appears as a standard text hyperlink instead of an interactive graph, even when connected experiences are enabled in Office.
Before you start

Understand that standard Microsoft Word documents are primarily designed for print and static viewing, meaning the direct embedding and native rendering of interactive HTML files is not supported out of the box.

Solution 1Recommended

Export the Plotly Graph as a Static Image

Since Word does not natively render interactive HTML files without custom development, the most reliable method for presenting your data is to export the Plotly chart as a static image.

Interactive HTML elements require a browser engine to render scripts and interactive tooltips. By capturing the graph as a high-quality static image, you ensure that anyone opening the document can view your data precisely as intended, regardless of their device or security settings.

1
Open the Plotly graph

Launch your Plotly HTML graph in a standard web browser or your Python IDE's viewer.

2
Download as image

Hover over the top right corner of the interactive graph to reveal the Plotly modebar, then click the camera icon labeled 'Download plot as a png'.

3
Insert into Word

Open your Microsoft Word document, navigate to the 'Insert' tab on the ribbon, and click 'Pictures' > 'This Device'.

4
Select the file

Locate the downloaded PNG file on your computer and click 'Insert' to place the static graph into your document.

Export the Plotly Graph as a Static Image
Maintain a Link to the Interactive Version: You can add a hyperlink to the inserted image that points to the hosted HTML version of your Plotly graph, allowing readers to click the static image to view the interactive web version.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Creation

If you are struggling with complex Microsoft Word developer features or looking for a more streamlined word processor, WPS Office offers a free, lightweight, and highly compatible alternative for creating professional documents.

  1. 1. Download and Install: Visit the official WPS website to download and install WPS Office Free on your device.
  2. 2. Open WPS Writer: Launch the application and select 'Docs' to open the word processing module.
  3. 3. Load your document: Click 'Open' to seamlessly load your existing Microsoft Word (.docx) files and continue editing your reports and charts.
Free and lightweight alternative to Microsoft Office.Fully compatible with Microsoft Word (.docx) formats.Easily insert static charts, images, and other data visualization elements.Familiar tabbed user interface for a smooth transition.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Plotly HTML code paste as a link in Word?

Microsoft Word's text editor is designed to interpret standard text and basic rich formatting. When you paste raw HTML or drag an HTML file into the document, Word interprets it as a file path or URL hyperlink rather than rendering the underlying code, because it lacks a native web browser engine in the document canvas.

Can I embed a live, interactive website inside a Word document?

Not natively through standard copy-pasting. To embed a live website, you must install an Office Add-in like 'Web Viewer' from the Add-ins store, which creates an iframe-like window inside your document to load secure (HTTPS) URLs.

Does saving a Word document as a Web Page retain interactive elements?

Saving a Word document as a Web Page (HTML) primarily converts static Word formatting into HTML/CSS. It will not magically convert static images back into interactive Plotly graphs, nor will it execute JavaScript from items pasted as plain text.