Embedding means placing a video from one website, like YouTube or Livestorm, directly onto another page using a snippet of code, so visitors can watch it without leaving that page.
Embed Video
Embedding a video is the process of using HTML code to insert content into a webpage, blog post, or other online platform.
What does embedding a video mean?
Embedding a video is the process of using HTML code to insert content into a webpage, blog post, or other online platform. Viewers can then play and watch the video directly on the page or platform without having to open another website or application.
Different ways to embed videos
There are three common ways to embed a video on a page:
- iframe embed — the simplest method: paste a snippet provided by the hosting platform (YouTube, Vimeo, Livestorm) directly into the page’s HTML. It works everywhere but gives the least control over styling.
- JavaScript player embed — a script tag that renders a fully custom player (controls, branding, autoplay behavior). It’s more flexible but adds a small amount of page-load weight, and works well for embedding content in emails.
- Native HTML5 video tag — used when self-hosting the video file directly rather than through a third-party platform. It gives full control, but means handling encoding, bandwidth, and CDN delivery yourself.
Pros and cons of embedding videos
Embedded videos can make emails, blog posts, and webpages more visually appealing. When you incorporate video marketing into written content, you can increase viewer engagement and retention. Embedding relevant videos can also optimize the content for search engines.
When you embed videos, you can share content on multiple platforms simultaneously. For example, the webpage you’re reading features an embedded video (see below) that’s also published on YouTube.
However, embedded videos can lead to potential problems. Embeds can create compatibility issues for older browsers.
Webpages with embedded videos can also load more slowly. This can negatively affect user experience. To optimize website content with embedded videos, check page speed.
How to generate an embed code for a video
Follow these steps to create an embed code:
- Upload your video to a hosting platform like YouTube or Vimeo. Want to embed a Livestorm video? Download the livestream recording from your dashboard first. Then upload the video file to your hosting platform of choice.
- Click to generate an embed code from the hosting platform. Then copy and paste the iframe tag into your webpage. To embed in an email or other platform, you may need a JavaScript code or an embedding tool.
Editorial & methodology — Written and reviewed by the Livestorm content team, based on first-party product experience and platform documentation. Last updated: July 2026.
Frequently Asked Questions
What does it actually mean to embed a video?
Does embedding a video slow down page load speed?
It can, especially with heavier JavaScript player embeds. A lightweight iframe embed or lazy-loading the video helps minimize the impact.
Can you embed a video that's set to private?
Generally no. Most platforms require a video to be public or unlisted for the embed to play.
Does an embedded video count as a visit on the original hosting platform?
Yes, typically. Most platforms count embedded plays in their own analytics regardless of where the embed appears.
Try Livestorm for free
Get started in minutes and run your first engaging webinar today.
- No credit card needed
- No installation required