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 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.
• 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 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:
- Go to YouTube or Vimeo and copy the video URL from your browser's address bar (or use the "Share" button).
- Open your WordPress post or page in the Block Editor.
- Add a new block by pressing "Enter" to create an empty paragraph line.
- Paste the URL directly into the editor.
- 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:
- In the Block Editor, click the + icon to add a new block.
- Search for "YouTube" or "Vimeo" (depending on your host).
- Select the specific block.
- 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:
- On YouTube, click Share below the video, then select Embed.
- 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." - Click Copy to grab the iframe code.
- In your WordPress editor, click the + icon and search for Custom HTML.
- Add the Custom HTML block to your page.
- 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.
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:
- From your WordPress admin dashboard, navigate to Appearance > Widgets.
- Find the widget area where you want the video to appear (e.g., Main Sidebar or Footer).
- Click the + icon to add a block inside that widget area.
- You can use either the YouTube block (paste the URL) or the Custom HTML block (paste the iframe code).
- Click Update or Save to push the changes live.
Method 5: Embedding With Page Builders
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?
Does embedding videos slow down my WordPress site?
How do I make my embedded videos responsive?
Why is my WordPress video embed not working?
Can I embed private videos in WordPress?
How do I add a video to the WordPress sidebar?
What is the best format for self-hosting videos on WordPress?
How do I disable related videos on a YouTube embed?
Can I embed videos from my own server instead of YouTube?
What is the difference between embedding and uploading a video in WordPress?
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.