How to Embed HTML or an iframe in PowerPoint

Code brackets

Summary

This post shows you how to display HTML in PowerPoint by loading a hosted page or pasting self-contained code.

The right method depends on whether you have a web address or HTML source:

Hosted pages need internet access; pasted code may still rely on online resources.

Option A: Load hosted HTML with Web Viewer 2.0

Insert Web Viewer 2.0 on your slide

  1. Select the slide, then open Home > Add-ins.
Home and Add-ins marked 1 and 2 in PowerPoint for Mac
  1. Enter Web Viewer 2.0 in the search box (1). Under More search results, select Add beside the matching result (2).
PowerPoint's quick Add-ins menu with Web Viewer 2.0 entered in search, marked 1, and its Add button marked 2

Complete any installation prompts. For other Office versions or organization-managed installation, see the full installation guide.

Load your page

  1. Copy the page's HTTPS address, such as PhET's Pendulum Lab. For iframe code, copy only the URL inside src="...".
  2. Select www (1), paste the address into URL (2), and select Load (3).
Web Viewer 2.0 www, URL, and Load controls highlighted
  1. Resize the viewer and test the page's controls on the slide. In the PhET example, select Intro to open the pendulum simulation.
PhET Pendulum Lab activity selection on a PowerPoint slide with Intro highlighted An interactive HTML-based PhET simulation running on a PowerPoint slide
  1. Start Slide Show and test the page's controls before presenting.

If the site blocks embedding, load its supported alternative when offered or check why the site blocks embedding. A hosted page needs internet access.

For help with Web Viewer 2.0, contact support.

Option B: Paste code with HTML Viewer 365

This example uses a launch-status panel with expandable Plan and Risks sections.

Insert HTML Viewer 365 on your slide

  1. Select the slide, then open Home > Add-ins.
PowerPoint web Home and Add-ins controls highlighted
  1. Enter HTML Viewer 365 in the search box (1). Under More search results, select Add beside the matching result (2).
PowerPoint web Add-ins search for HTML Viewer 365 with its Add button highlighted

Complete any installation prompts. For other Office versions or organization-managed installation, see the full installation guide.

Load the HTML sample

  1. Copy the complete ready-to-use HTML sample.
  2. Select the Edit HTML (</>) button in the add-in's toolbar.
HTML Viewer 365 on a PowerPoint slide with the Edit HTML button highlighted
  1. Replace the editor's contents with the sample, then select Save.
HTML Viewer 365 editor containing the launch-status sample with Save highlighted
  1. Resize the add-in to fit the slide. Select Plan or Risks to expand a section of the saved panel.
The saved launch-status panel on a PowerPoint slide with Plan and Risks expanded
  1. Start Slide Show and expand the sections to present their contents.
The launch-status HTML panel filling PowerPoint Slide Show with both sections expanded

The saved HTML stays with the presentation. The sample needs no hosting; content that uses remote resources can still need internet access. See HTML sizing options if your own code does not fit the slide.