Embed video without YouTube ads or buffering. Try SmartVideo free →

How to Embed Video in WordPress: 5 Methods Explained (2026)

Learn how to easily embed video in WordPress using the Block Editor, plugins, or iframes. Complete step-by-step tutorial with the latest methods for 2026.

WordPress dashboard showing video embedding interface with multiple methods

WordPress powers 42.6% of all websites globally as of March 2026, and video remains one of the most effective ways to keep visitors engaged on those sites. In fact, 91% of businesses actively use video as a marketing tool (Wyzowl, 2026).

But when it comes to getting that video onto your pages, you have options. WordPress has evolved significantly since the classic editor days, and modern block-based workflows make adding media simpler than ever. Here is a complete guide covering the five best ways to embed video in WordPress.

đź“‹
TL;DR
• Don't self-host: Uploading videos directly to WordPress consumes massive bandwidth and slows down your site.
• The easiest method: Simply paste a YouTube or Vimeo URL directly into the Block Editor to auto-embed via oEmbed.
• Better performance: Use dedicated WordPress video plugins or customized iframe codes for lazy loading and advanced playback control.
• Ad-free hosting: Platforms like SmartVideo offer clean, distraction-free playback tailored for business sites.
Method Difficulty Speed Impact Best For
WordPress Block Editor Easy Moderate General-purpose embeds, beginners
oEmbed / URL Paste Easy Moderate Quick posts, no customization needed
iframe Embed Medium High impact Custom start times, playback control
Plugin (SmartVideo) Easy Low impact Ad-free, performance-focused business sites
Self-Hosted HTML5 Video Hard Very high impact Not recommended — server bandwidth risk

Why You Should Never Upload Video Directly to WordPress

Before we look at embedding methods, we need to address a common mistake: uploading MP4 files directly to the WordPress media library.

While WordPress allows you to upload videos just like images, doing so is a recipe for performance issues. Videos are massive files. When dozens of users stream a locally hosted video simultaneously, it puts immense strain on your server. According to WP Engine, if 100 people watch a one-hour video on your site, you consume roughly 300GB of bandwidth.

In our testing with hundreds of small business websites, we've seen locally hosted videos consistently cause server timeouts during unexpected traffic spikes.

To avoid server crashes, slow load times, and poor mobile playback, you should use external hosting and then embed the player. For a deeper dive into this, read our guide on why you should never upload videos directly to WordPress.

Method 1: The oEmbed URL Paste (Easiest)

WordPress editor interface showing video embed options
Photo by Fikret tozak on Unsplash

WordPress comes with a built-in feature called oEmbed. This allows the Block Editor (Gutenberg) to automatically turn a supported video link into a fully functional player.

This works natively with major platforms like YouTube, Vimeo, Facebook, Twitter, and TikTok.

How to do it:

  1. Go to YouTube or Vimeo and copy the video URL from your browser's address bar (or use the "Share" button).
  2. Open your WordPress post or page in the Block Editor.
  3. Add a new block by pressing "Enter" to create an empty paragraph line.
  4. Paste the URL directly into the editor.
  5. WordPress will immediately detect the link and fetch the embed code, transforming the URL into a playable video.

Pros: Takes two seconds, no coding required.
Cons: Limited customization. You can't control player colors, hide suggested videos, or add lazy loading through this method.

Method 2: The Native WordPress Video Blocks

If you prefer a more structured approach or need slightly more control than a raw paste provides, you can use the dedicated embed blocks included in modern WordPress.

How to use the YouTube/Vimeo block:

  1. In the Block Editor, click the + icon to add a new block.
  2. Search for "YouTube" or "Vimeo" (depending on your host).
  3. Select the specific block.
  4. Paste your video URL into the input field and click Embed.

The Block Editor also offers a generic Video block, but this is primarily intended for self-hosted videos (which we strongly advise against). Stick to the platform-specific embed blocks for external hosting.

Method 3: The Custom HTML Block (iFrame Method)

When you need granular control over how the video behaves—such as starting playback at a specific timestamp, enabling privacy-enhanced mode, or adjusting the player dimensions—the iframe method is your best option.

How to embed via iframe:

  1. On YouTube, click Share below the video, then select Embed.
  2. You'll see a block of HTML code starting with <iframe>. Here you can check boxes to "Start at" a specific time or "Enable privacy-enhanced mode."
  3. Click Copy to grab the iframe code.
  4. In your WordPress editor, click the + icon and search for Custom HTML.
  5. Add the Custom HTML block to your page.
  6. Paste the iframe code into the block. You can click "Preview" to see how it looks.

While this method provides more control, keep in mind that standard YouTube iframes can significantly impact your site's performance by loading heavy third-party scripts. Read more about how YouTube embeds affect your page load time.

⚡
Looking for a faster, cleaner WordPress video player?
Standard embeds leak traffic and slow down your site. Deliver ad-free, high-speed video directly through WordPress using our dedicated plugin. Learn more about WordPress video hosting.

Method 4: Sidebar and Widget Embedding

Sometimes you want a welcome video or a promotional clip to appear on every page via your site's sidebar or footer. WordPress makes this simple through the Widgets menu.

How to embed in a widget:

  1. From your WordPress admin dashboard, navigate to Appearance > Widgets.
  2. Find the widget area where you want the video to appear (e.g., Main Sidebar or Footer).
  3. Click the + icon to add a block inside that widget area.
  4. You can use either the YouTube block (paste the URL) or the Custom HTML block (paste the iframe code).
  5. Click Update or Save to push the changes live.

Method 5: Embedding With Page Builders

Web developer working with WordPress page builders
Photo by Fikret tozak on Unsplash

A significant portion of WordPress users rely on page builders to design their sites. If you are using one, you should use their native video modules rather than standard WordPress blocks.

  • Elementor: Drag the "Video" widget onto your canvas, select your source (YouTube, Vimeo, Dailymotion, or Self Hosted), and paste the link. Elementor includes built-in options for lazy loading and image overlays. Check out our guide on embedding video with Elementor.
  • Divi: Add a "Video" module to your layout. Under the Content tab, you can insert your video URL or upload a custom thumbnail to display before playback begins. Read more about embedding video with Divi Builder.
  • Beaver Builder: Use the "Video" module, which supports direct URL embedding and gives you fine-tuned control over spacing and responsiveness. See our guide on embedding video with Beaver Builder.

Summary: Which Method Should You Choose?

Method Best For Customization
1. oEmbed URL Paste Absolute beginners, quick posts None
2. Native Video Blocks Structured layouts in Block Editor Low
3. Custom HTML (iFrame) Specific start times, hiding controls High
4. Sidebar/Widgets Global promotional videos Medium
5. Page Builders Elementor or Divi users High

The Ad-Free Hosting Angle: When YouTube Isn't Enough

YouTube is fantastic for organic discovery, but it presents serious drawbacks when used as a hosting provider for business websites, landing pages, or course platforms.

When you embed a YouTube video, you surrender control. YouTube may insert ads before your content, and when the video finishes, they will display a grid of "related videos"—which often include content from your direct competitors. Furthermore, the standard YouTube iframe adds roughly 500KB of JavaScript to your page, hurting your Core Web Vitals.

This is where professional WordPress video hosting steps in. Platforms like SmartVideo offer a dedicated WordPress plugin that automatically converts messy, slow-loading YouTube embeds into a clean, ad-free player.

With SmartVideo, you get:

  • Distraction-free playback: No ads, no competitor suggestions, no YouTube branding.
  • Faster load times: The player is lightweight and CDN-delivered, significantly improving your site speed compared to standard iframes.
  • Complete brand control: Customize the player colors to match your website perfectly.

Frequently Asked Questions

Can I embed a video in WordPress without a plugin?

Yes, you can easily embed video without a plugin using the oEmbed method. Simply copy the video URL from YouTube or Vimeo and paste it directly into the Block Editor on an empty line. WordPress will automatically convert it into a playable video player.

Does embedding videos slow down my WordPress site?

Yes, standard video embeds, particularly from YouTube, can slow down your site by loading heavy third-party scripts and trackers. To mitigate this, you should use lazy loading techniques, custom thumbnail overlays, or a performance-focused video hosting solution.

How do I make my embedded videos responsive?

If you use the Block Editor's native video blocks or the oEmbed URL paste method, WordPress automatically makes the video responsive so it scales correctly on mobile devices. If you are using the iframe method, you may need to add custom CSS or wrap the iframe in a responsive container div to ensure it resizes properly.

Why is my WordPress video embed not working?

If your video embed isn't working, ensure the URL is correct and public. Private videos cannot be embedded via oEmbed. Also, make sure the URL is placed on its own line without any other text or formatting. If using an iframe, check that your WordPress user role has permission to use the Custom HTML block.

Can I embed private videos in WordPress?

You cannot embed videos marked as "Private" on YouTube or Vimeo using the standard URL method, as WordPress cannot access them. However, you can embed "Unlisted" YouTube videos or use domain-level privacy settings on Vimeo and professional hosting platforms to restrict playback to your specific WordPress site.

How do I add a video to the WordPress sidebar?

To add a video to a sidebar, navigate to Appearance > Widgets in your WordPress dashboard. Add a Video block or Custom HTML block to your sidebar widget area, paste your video URL or iframe code, and save your changes.

What is the best format for self-hosting videos on WordPress?

While self-hosting is highly discouraged due to bandwidth constraints, if you must do it, MP4 is the most universally supported format. Ensure the video is properly compressed using H.264 video codec and AAC audio codec for the best balance of quality and file size.

How do I disable related videos on a YouTube embed?

YouTube no longer allows you to completely disable related videos at the end of playback. The best you can do is append "?rel=0" to the iframe embed URL, which restricts the related videos to only show content from your own channel, rather than external competitors. For a truly distraction-free experience, a private video host is required.

Can I embed videos from my own server instead of YouTube?

You can, but it's generally not a good idea unless you have a dedicated media server. Serving video files from your WordPress host consumes large amounts of bandwidth and can cause server timeouts under normal traffic. If you want full control over your video without relying on YouTube, a purpose-built video hosting platform is a much safer option.

What is the difference between embedding and uploading a video in WordPress?

Uploading means storing the video file on your WordPress server, which consumes bandwidth and storage every time someone watches it. Embedding means the video is hosted on an external platform (YouTube, Vimeo, or a dedicated host) and you simply display a player on your page. Embedding is almost always the better choice — it offloads the heavy lifting to a service built for video delivery.

Ready for Better Video Performance?

Embedding video in WordPress shouldn't mean sacrificing page speed or handing your audience over to third-party ads. If you want a fast, clean, and professional viewing experience, SmartVideo handles all the heavy lifting in the background, ensuring your videos look fantastic and load instantly.