Embed Video in PowerPoint With HTML: Options That Work

How-to basics · Updated November 21, 2026

PowerPoint does not turn pasted HTML into a video embedded on a slide. For a standard online video, use Insert > Video > Online Videos and add its URL. If you need custom HTML, publish the page online and display it with a suitable web-viewer add-in, if your PowerPoint setup allows one. For playback that works without internet or add-ins, insert a video file instead. Have the video URL, hosted webpage, or video file ready before you begin.

What You’ll Need

  • Microsoft PowerPoint for Microsoft 365, preferably updated, and permission to install an Office add-in if you plan to use a web viewer.
  • A stable internet connection for online videos or hosted HTML pages. Your presentation audience also needs access to the content.
  • For a custom HTML page, a web host that serves the page over HTTPS, plus a video file the page can load. A file saved only on your computer is not a dependable web-viewer source.
  • Alternatively, a local video file in a PowerPoint-compatible format. MP4 encoded with H.264 video and AAC audio is a practical choice.
  • A few minutes to test the slide in Slide Show mode and, if possible, on the computer that will present it.

Step-by-Step

  1. Choose the method that matches your goal. If you want to show a YouTube or other supported online video, use PowerPoint’s online-video feature; you do not need HTML. If the video is part of a custom HTML player or page, publish that page and try a web-viewer add-in. If you need the video to play offline, insert the video file itself. PowerPoint’s normal slide editor does not offer a box where you can paste arbitrary HTML or an iframe and have it become a native video object.
  2. For a supported online video, copy the page URL. Open the video in its service and copy the address from the browser’s address bar. Use the regular video page URL, not the HTML iframe snippet or a shortened link if you can avoid it. Check that the video is allowed to play for your audience: private, age-restricted, region-restricted, or organization-blocked videos may not work during a presentation.
  3. Insert the online video in PowerPoint. In PowerPoint for Microsoft 365 on Windows, open the target slide and choose Insert > Video > Online Videos. Paste the URL into the dialog and select Insert. The wording or location can differ slightly between builds. On a Mac, look under Insert > Video for the online-video option; if it is missing, update PowerPoint or use a hosted page/add-in or local video file instead. Do not paste raw HTML into the URL box.
  4. Size and position the video. Select the inserted video and drag its corner handles to resize it without distorting its proportions. Move it into the intended location and leave enough space around it for the controls or captions. Avoid placing important text behind the video. Use the playback controls in the ribbon, where available, to choose a start option such as In Click Sequence or Automatically. The options can vary by video type and PowerPoint version.
  5. For custom HTML, prepare a page that can be reached online. Put the HTML page and video on a web host that supports HTTPS, and make sure the page’s video source points to a reachable media URL. For example, a simple HTML5 player can use a source element like this:
<video controls playsinline width="960">
  <source src="https://example.com/video.mp4" type="video/mp4">
  Your browser does not support HTML5 video.
</video>

Replace the example address with the real video location. The browser loading the page must be able to retrieve both the HTML and the media file. Check the page in a regular browser first. If it cannot play there, PowerPoint’s web viewer will not fix it.

  1. Add a web viewer only if your organization provides one. In PowerPoint, open Insert > Get Add-ins (the Mac label may be Add-ins or Get Add-ins) and search for a web viewer that your organization permits. Availability and names can vary by account, region, and administrator policy. Read the add-in’s description and privacy requirements before installing it. If it accepts a webpage address, enter the public HTTPS URL of your HTML page—not the HTML source code—and follow its prompts to add the viewer to the slide.
  2. Test the page and video inside the slide show. Start Slide Show mode and click the viewer or video as appropriate. Confirm that the player loads, sound is audible, controls work, and the page is not asking for a sign-in that your audience will not have. Test on the actual presentation computer and network. Add-in previews in edit mode may not behave exactly like the slide show.
  3. Use a file instead when reliability matters more than HTML. Save or obtain a permitted copy of the video, then choose Insert > Video > This Device on Windows and select the file. On Mac, use Insert > Video and choose the local-file option. PowerPoint versions may label it Movie from File. Save the presentation and test it. If you need to move the presentation to another computer, use File > Info > Optimize Media Compatibility if that option is available, and keep the media with the presentation when prompted.

Common Mistakes

Pasting an iframe into the slide: The online-video dialog is intended for a supported video URL, not a block of embed code. An iframe may work on a website but does not become an embedded PowerPoint video just because it is pasted onto a slide. Use the provider’s video URL, or put the iframe on a hosted page and display that page with an available web viewer.

Using a local HTML file as though it were a hosted page: A web viewer may block local files for security reasons, and another computer will not have the same file path. Publish the page to a reachable HTTPS address or use a native video file.

Assuming an online video is stored in the deck: Online videos generally remain dependent on the service, network access, and playback permissions. Inserting a link or viewer does not download the media into the presentation. Confirm access before presenting and respect the video’s copyright and sharing terms.

Testing only in edit view: A thumbnail or blank viewer in edit mode does not prove what will happen in a slide show. Conversely, a preview that appears to load does not guarantee that the presentation room’s network will allow playback. Test the full presentation path.

Tips

  • Keep a backup plan. Add a clear link to the video page in your speaker notes or on a separate slide, and keep a permitted local copy available if offline presentation is essential.
  • Use a stable, direct HTTPS page address for a web viewer. Avoid links that expire, require a private login, or redirect through several sites.
  • For custom HTML, check that the host allows cross-origin media requests when the page and video are on different domains. Also check that the server sends the video with a media content type and supports requests needed for seeking.
  • Keep captions available for viewers who need them. Use the video’s built-in caption controls or provide a separate transcript when practical; do not assume captions will appear automatically in every player.
  • Set the video to start only when you intend to play it. Automatic playback can be blocked by a browser or viewer, and autoplay with sound may be restricted. A click-to-play plan is usually easier to explain to an audience.
  • Check the result at the presentation’s actual resolution and in Slide Show mode. A video that is too small, cropped, or covered by another object is difficult to fix while presenting.

Troubleshooting

The Online Videos command is missing: Update PowerPoint and check Insert > Video for a version-specific label. Some work or school administrators restrict online content or add-ins. If the command remains unavailable, insert a local video file or use a hyperlink that opens the video in a browser.

The URL is rejected: Confirm that you copied the public video page address rather than an iframe code block, playlist address, or private sharing link. Try the URL in a browser where you are not signed in. If it redirects to a login or consent page, your audience may encounter the same barrier.

The custom page is blank in the viewer: Open the page directly in a current browser and check for HTTPS, sign-in prompts, blocked scripts, and browser-console errors. Some web viewers restrict features or block sites from being displayed inside another application. The page owner may also prohibit embedding with security settings. If the viewer cannot display it, use a normal hyperlink to open the page in a browser, or insert a video file instead.

The page loads but the video does not play: Check the media URL, file permissions, codec, and whether the host allows the video to be requested from the page’s domain. Test the exact media address in a browser. If the file is not a supported browser format, re-encode a permitted copy as MP4 with H.264 video and AAC audio, then update the HTML source.

Playback works on your computer but not at the venue: The room may have weak or filtered internet, or the audience may lack access to the service. Try a wired connection or approved network, confirm the account can reach the video, and run the slide show on the presentation computer. If you cannot guarantee connectivity, use a local video file and verify it travels with the presentation.

There is no sound or the player is cropped: Check the computer’s output device and volume, then check the video’s own mute control. Reposition or resize the video using its corner handles. If you inserted a file, confirm that the file itself includes an audio track and replay it outside PowerPoint.

Frequently Asked Questions

Can I paste HTML code directly into a PowerPoint slide?
No. PowerPoint’s standard slide editor does not interpret arbitrary HTML as slide content. Insert a supported online video, use an approved web-viewer add-in with a hosted page, or add a video file.

Can I paste YouTube’s iframe embed code into PowerPoint?
Usually, use the video’s page URL in Insert > Video > Online Videos, not the iframe code. If you need a customized iframe, put it on a hosted webpage and use a compatible web viewer if your PowerPoint account offers one.

Will an HTML video work without internet?
A hosted HTML page and online video normally need internet access. A local HTML file might work in a desktop browser, but web viewers can block local files and the setup is difficult to transfer reliably. For offline playback, insert the video file into PowerPoint.

Does the video get saved inside the PowerPoint file?
An online video or webpage viewer typically refers to external content; it does not mean the media has been downloaded into the deck. A video inserted from your device is the better choice when you need the media packaged with the presentation. Check file size and portability before sharing.

Can I use this method in PowerPoint for Mac?
Yes, but the exact labels and availability of online video and add-ins can differ by PowerPoint version and organization. Look under Insert for video and add-in options, then test in Slide Show mode. If the feature you need is absent, use a local video file or a browser hyperlink.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.