Embed Video in PowerPoint Using Embed Code: Steps & Limits

How-to basics · Updated November 3, 2026

Embed Video in PowerPoint Using Embed Code: Steps & Limits

Yes. In PowerPoint for Microsoft 365 on Windows, go to Insert > Video > Online Videos, paste the video provider’s embed code into the embed-code box, and select Insert. The video remains online rather than becoming a copy inside the presentation, so viewers generally need an internet connection to play it.

What an embed code does in PowerPoint

An embed code is a short piece of HTML supplied by a video service. It tells a compatible player where a video is hosted and how to display it. YouTube’s code, for example, normally contains an iframe element. PowerPoint uses that information to place an online video player on a slide; it does not download the video file and store it in the presentation.

This distinction matters when you share or present the deck. The slide contains a player linked to online content, not the content itself. A person opening the file may need internet access, and the video can fail if the source is removed, restricted, blocked by a network, or no longer allows embedding. An embed code is also different from a plain web address: use the code when PowerPoint specifically asks for an embed code, and use a URL only in a field that accepts a video link.

Get the embed code from the video service

Use the official sharing options on the service that hosts the video. For a YouTube video, open the video, select Share, then Embed, and copy the displayed code. The code may look long because it includes an iframe and player settings. Copy the complete snippet rather than just the address between quotation marks.

  • Check that the video owner permits embedding. Some videos cannot be embedded because of the owner’s settings or licensing restrictions.
  • Use a video that viewers are permitted to watch. An unlisted video is not the same as a private video; access rules still apply, and changing a video’s status can affect playback.
  • Do not copy embed markup from an unfamiliar website or edit its code unless you know what the change does. PowerPoint is not a general-purpose HTML editor.

Services and PowerPoint versions do not all use identical code or offer the same insertion choices. If a provider’s code is rejected, try its direct video URL in PowerPoint’s online-video dialog if that option is available. If neither method is supported, use a link to the video or insert a permitted local video file instead.

Insert the code in PowerPoint for Microsoft 365 on Windows

  1. Open the presentation and select the slide where the video should appear.
  2. Choose Insert > Video > Online Videos on the ribbon.
  3. In the dialog, find the field for a video embed code. Paste the complete code copied from the provider. Depending on the PowerPoint build, the dialog may also offer a separate field for a video URL.
  4. Select Insert. PowerPoint adds a video player to the slide.
  5. Resize or reposition the player using its handles. To check playback, start the slide show and select the video player on the slide.

If the dialog only presents a URL field, do not assume that it accepts arbitrary HTML. Use the provider’s video URL if the dialog supports it, or check that PowerPoint is up to date and that your organization has not disabled online content. Microsoft changes interface details over time, so a label or available provider can differ by build. The key distinction is whether the current dialog explicitly asks for an embed code or for a link.

Choose between embed code, a video link, and a local file

These options solve different problems. An online embed is useful when the source should remain hosted by a service and you want to avoid adding a large media file to the deck. It can also make it easier to use a video that changes over time, though that means the presentation may not always show the same version.

  • Embed code: Use it when PowerPoint provides an embed-code field and the service allows embedding. It places an online player on the slide, but does not make the video available offline.
  • Video URL: Use a URL when PowerPoint’s online-video dialog accepts links. This is often simpler than copying HTML, but only supported providers and link formats will work.
  • Local video file: Use Insert > Video > This Device to add a file stored on your computer. This is generally a better choice when presenting without reliable internet, although the media increases the deck’s size or may need to be packaged and shared with it.
  • Hyperlink: Add a link to the video when embedding is unavailable or you prefer viewers to open it in a browser. This is not the same as displaying a player on the slide.

For example, a presenter at a conference with uncertain Wi-Fi may prefer a local video file, provided they have permission to use it and have checked that it plays on the presentation computer. A training deck distributed online may use an embed when the audience will have internet access and the hosting service permits playback. Test the actual file and network conditions rather than choosing based only on convenience.

Playback, editing, and internet requirements

An online video is played through its hosting service’s player. PowerPoint can position and size the player, but it does not give you the same control over the underlying video as it does over a file inserted from your computer. In particular, do not expect the online video to behave like an editable media file that you can freely trim, compress, or manipulate with every playback effect. Available controls depend on the provider and the PowerPoint version.

During a slide show, the player may need to contact the hosting service. A working internet connection is therefore only part of the requirement: the service must also be reachable from the computer, and any sign-in, content filter, or organization policy must allow the video. A video that works on your home network may be blocked on a school or corporate network. Test it on the device and network you plan to use.

Online playback can also depend on the provider’s current player and sharing rules. If a video owner replaces or removes a video, changes its privacy settings, or disables embedding, the slide can stop working even though the presentation itself has not changed. For a presentation that must remain usable for a long time, consider whether a properly licensed local copy is more dependable.

Common problems and practical fixes

  • PowerPoint rejects the code: Confirm that you copied the complete code from the service’s official Embed option. Make sure you are pasting into an embed-code field, not a field that accepts only a URL. Try the supported video link if the dialog offers one.
  • The video appears as a blank box: Start the slide show, connect to the internet, and check whether the provider opens in a browser on that computer. A network filter, sign-in requirement, unavailable video, or disabled embedding can prevent playback.
  • The video works for you but not for recipients: Recipients may lack permission, access to the service, or a compatible PowerPoint version. Share the deck with a note about internet access, or provide an authorized alternative.
  • Playback fails in the presentation room: Test the final deck on the presentation computer and network. If access is uncertain, use a local video file where licensing permits, and keep a backup link or alternate presentation plan.
  • The code shows on the slide as text: It was likely pasted into a text box rather than the online-video insertion dialog. Remove the text and insert the player using Insert > Video > Online Videos.
  • The video is cropped or too small: Select the player and resize it on the slide. Keep its proportions when dragging a corner handle, and leave enough space for the player’s controls.

Mac, web, and mobile differences

The steps above describe Microsoft 365 PowerPoint for Windows. PowerPoint for Mac also offers ways to insert online video in supported versions, but the dialog and available options can differ. Depending on the Mac build, the interface may focus on entering a video URL rather than provide the same embed-code box as Windows. If you cannot find an embed-code field, use the online-video option and follow the input type shown in that dialog; do not paste HTML into a URL-only field.

PowerPoint for the web and mobile apps can have different insertion and playback capabilities from the desktop app, and organization settings may limit online media. A deck containing an online video may still open on another platform while the video itself behaves differently. If the presentation will be edited or shown on multiple devices, test it in each important environment. For a critical live presentation, a local file or a direct link can be a useful backup, subject to permissions and the recipient’s setup.

Permissions, privacy, and sharing considerations

Embedding a video does not give you ownership of it or permission to redistribute it. Follow the video owner’s terms and any applicable license. If the video is intended for a limited audience, remember that the player still connects to the hosting service; sharing the PowerPoint does not necessarily grant recipients access. Avoid placing confidential material in a public or broadly accessible video service just to make it play inside a slide.

When viewers play an online video, their device contacts the provider. That can have privacy implications, particularly in a classroom, workplace, or public-facing presentation. If this matters, review the provider’s policies and your organization’s rules. A locally stored, appropriately licensed file may reduce reliance on a third-party player, though it still needs to be shared and protected responsibly.

Frequently Asked Questions

Can I embed a YouTube video in PowerPoint?

Yes, if the video permits embedding and your PowerPoint version supports online video. In Windows Microsoft 365, use Insert > Video > Online Videos and paste the code from YouTube’s Share > Embed option into the embed-code field. You can also use a YouTube URL if the dialog offers a URL field.

Does an embedded video work without internet?

Usually not. An online embed streams from the video provider, so the computer needs a connection and access to that service. For offline playback, insert a video file stored on the device using Insert > Video > This Device, and confirm that you have permission to use the file.

Why does PowerPoint say my embed code is invalid?

The code may be incomplete, from an unsupported provider, or pasted into a URL-only field. Copy it again using the provider’s official Embed command and check the field label in PowerPoint. If the provider is not supported, try a video URL if accepted, or use a link or local file.

Can I use a video link instead of embed code?

Often, yes, but only when your version’s online-video dialog accepts that provider and link format. A URL is not interchangeable with HTML in every dialog. Follow the prompt shown in PowerPoint and test playback in slide-show mode.

Will recipients see the same video I see?

They will see it only if the video remains available and their device can reach it with the required permissions. Network restrictions, account access, privacy settings, or removal of the source video can change the result. Test the shared presentation under conditions similar to those your audience will have.

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.