In WordPress, you can embed videos using the media library, a URL or embed function, an embed code or a plugin. The main dif­fer­ences are where the video is hosted, how easy it is to add and what ad­di­tion­al cus­tomiza­tion or con­ve­nience features are available.

$1 Domain Names – Grab your favorite one
  • Simple reg­is­tra­tion
  • Premium TLDs at great prices
  • 24/7 personal con­sul­tant included

What are the various ways to embed video in WordPress?

If you manage your website with WordPress, there are several ways to embed videos. The first thing to decide is whether you want to host the video on your own web space or use an external provider:

  1. If you want to retain full control, you can upload videos via the WordPress media library or the Video block and add them directly to your page. The files are stored in your WordPress media library and are generally delivered through your hosting.
  2. If you prefer to host videos ex­ter­nal­ly, you can usually embed content from platforms such as YouTube or Vimeo in your website, blog or online store simply using a URL or the relevant embed function.
  3. If you want ad­di­tion­al features alongside video embedding, WordPress video plugins are another option. Depending on the plugin, these ex­ten­sions can simplify embedding and provide features such as video galleries, sliders, more privacy-friendly embeds and per­for­mance op­ti­miza­tions.
Note

If you use the built-in media library to embed videos in WordPress, keep the per­for­mance of your website in mind. Large video files or a high number of videos can sig­nif­i­cant­ly affect loading times, bandwidth and server resources. For websites with extensive video content, external video platforms, a CDN or spe­cial­ized video hosting services are usually a better choice.

How WordPress video embedding works

The media library is a good option if you own the video and want to store it directly on your own web space. For ex­ter­nal­ly hosted videos, such as those on YouTube or Vimeo, embedding via URL is usually the simplest approach. Just paste the link into a suitable block and WordPress handles the rest au­to­mat­i­cal­ly. Using an embed code is more advanced and is mainly useful when you need ad­di­tion­al settings, such as spec­i­fy­ing a fixed start point or enabling enhanced privacy mode, that are not available with simple URL embedding.

Insert a video using the WordPress media library

The video is stored in your WordPress media library and can then be added to a page or post using the Video block.

Step 1: Open the media library by clicking “Media” in the menu on the left:

Image: WordPress: Media button
Use the Media button to access the media library

Step 2: Click “Add Media File” and then “Select Files”. Choose the location of the video file you want to upload and confirm your selection to add it to the media library. Al­ter­na­tive­ly, you can simply drag and drop the video into the des­ig­nat­ed area marked by the dashed lines:

Image: WordPress media library: dialog box for file upload
The WordPress media library provides space not only for videos, but also for other mul­ti­me­dia content such as images or music.

Step 3: Open the WordPress page or post where you want to add the video and click the plus sign to insert a new block.

Image: WordPress: “Add block” button
WordPress lets you embed a video in your page using the “Add block” function.

Step 4: Scroll to the “Media” section and select “Video” to add a video block to the page. In the block, click “Media Library”. WordPress will display the available videos so you can select the one you want to use. You can also add metadata such as a title, caption and de­scrip­tion. Finally, click “Select” to insert the video into your WordPress page.

Image: WordPress dialog “Select or Upload Media”
Al­ter­na­tive­ly, you can also add a new file to the media library in this window.

The video is now embedded in your WordPress page. If necessary, you can move the block to a different position or replace it with another content block.

Embed videos in WordPress using an embed code

If you want to avoid uploading videos to your own web space – and therefore reduce the amount of storage space and computing power required – you can upload your video content to a video platform such as YouTube or Vimeo instead. These platforms provide an embed code that you can use to embed video in WordPress. Depending on the focus and type of your website, you can also insert videos from other users in this way – provided they hold the rights to the content and have made the videos publicly available.

To add a YouTube video using an embed code (the exact process may differ slightly on other platforms), proceed as follows:

Step 1: Open the video on the platform where it is hosted and select the option for sharing or embedding it.

Image: YouTube: “Share” button
On YouTube, the button for sharing is located directly under the video

Step 2: Select the “Embed” option to open the embedding settings. You can either keep the default settings or customize the embed code. For example, you can specify a start time so that the embedded video begins at a par­tic­u­lar point (“Start at”). You can also activate enhanced privacy mode, which loads the video via the domain youtube-nocookie.com rather than youtube.com and reduces data transfer when the page is accessed. Finally, click “Copy.”

Note

YouTube’s enhanced privacy mode is more privacy-friendly than the standard embed, but on its own it does not ensure com­pli­ance with ap­plic­a­ble US privacy laws. Even in privacy-enhanced mode, the embedded player shares some basic user data with YouTube when it loads, with ad­di­tion­al data shared when the video is played.

Image: YouTube menu for embedding a video
YouTube menu for embedding a video

Step 3: In the WordPress backend, open the page where you want to embed the video. Add a “Custom HTML” block and paste the embed code from your clipboard into it.

Image: WordPress: embed video via code
Using the “Preview” function, you can see how the video will look on the website.

Step 4: WordPress inserts the video in the usual format. Click “Preview” to check how it will appear on your website.

Embed videos in WordPress using a URL

The simpler and more modern al­ter­na­tive to using an embed code is to embed the video directly via its URL:

  • Step 1: Copy the URL of the video from your browser’s address bar or use the share function on the relevant platform.
  • Step 2: In the WordPress backend, open the page or post where you want to embed the video. Click the plus symbol to add a new block and search for “YouTube” or “Vimeo,” depending on where the video is hosted. Al­ter­na­tive­ly, you can use the general “Embed” block.
  • Step 3: Paste the copied URL into the block’s input field and click “Embed.” WordPress rec­og­nizes the link au­to­mat­i­cal­ly and inserts the video directly into your page.
Image: YouTube block in the Gutenberg editor
YouTube block in the Gutenberg editor
Note

To embed a YouTube video via URL, the video must be publicly ac­ces­si­ble and embedding must be allowed by the provider. Otherwise, WordPress may display an error message or simply turn the URL into a link.

Add videos to WordPress using a plugin

If you want to do more than simply embed videos in WordPress, a WordPress video plugin can provide ad­di­tion­al features. Depending on the plugin, these ex­ten­sions may offer options such as custom player settings, video galleries, sliders, preview images, pop-ups or more privacy-friendly embedding of content from external platforms. They can be par­tic­u­lar­ly useful if you want to display multiple videos on your website or customize how they fit into your site design.

Plugins can be installed directly from the WordPress backend:

Step 1: In the left-hand menu of the WordPress backend, open the “Plugins” section and click “Add Plugin.”

Image: Plugins section in the WordPress backend
The plugins section in the WordPress backend

Step 2: Enter a keyword in the search bar at the top right to find a suitable WordPress video plugin. For a general overview of available options, you can search for “Video,” for example:

Image: View of available video plugins in the WordPress backend
View of available video plugins in the WordPress backend

Step 3: Once you have chosen an extension, click “Install Now” in the cor­re­spond­ing tile. When in­stal­la­tion is complete, click the “Activate” button that appears to enable the WordPress video plugin:

Image: WordPress plugins: buttons to install and activate
To embed video in WordPress via plugins, you simply need to install and activate them.

Step 4: You can then access the extension via the “Installed Plugins” submenu. In many cases, the plugin also adds its own button to the sidebar menu in the WordPress backend, as shown here with the example plugin “Html5 Video Player” by bPlugins.

Image: Installed plugins in the WordPress backend
You manage ex­ten­sions in the “Installed Plugins” area or in the in­di­vid­ual menu of each extension.
New call-to-action

The best WordPress video plugins at a glance

Plugins are a useful option for both ex­pe­ri­enced WordPress users and beginners who want to embed videos and add more value to their website. Below, we introduce some of the best ex­ten­sions for adding and managing videos in WordPress.

WP YouTube Lyte

WP YouTube Lyte is a WordPress video plugin designed to embed YouTube videos in a more per­for­mance-friendly way. Instead of loading the full YouTube player im­me­di­ate­ly, the plugin first displays a light­weight preview image. The player is only loaded when a visitor clicks on the video. This can sig­nif­i­cant­ly improve loading times and page per­for­mance, par­tic­u­lar­ly when several YouTube videos are embedded on the same page. The plugin also supports re­spon­sive display, locally hosted preview images and more privacy-friendly embeds.

To use the full range of features, WP YouTube Lyte requires a YouTube API key. Without one, the WordPress video plugin still works, but some features are limited: video titles, de­scrip­tive metadata and playlist preview images are not loaded. You can create an API key free of charge in the Google Developer Console and then add it in the plugin settings.

Image: WP YouTube Lyte in the WordPress editor
The menu of WP YouTube Lyte in the WordPress backend

Embed Plus for YouTube

Embed Plus for YouTube adds a wide range of features for embedding YouTube content in WordPress. Alongside in­di­vid­ual videos, you can also add playlists, channels, livestreams and Shorts. The WordPress video plugin also provides various options for cus­tomiz­ing display, per­for­mance and privacy, making it a good choice if you want not only to embed videos in WordPress but also to manage them in more detail.

Image: Embed Plus in the WordPress editor
Embed Plus in the WordPress editor

MetaSlid­er Pro

MetaSlid­er Pro is par­tic­u­lar­ly well suited to embedding videos in WordPress in sliders, slideshows or carousels. This paid WordPress video plugin supports videos from platforms such as YouTube and Vimeo, as well as locally hosted video files and other external sources. It is es­pe­cial­ly useful when you want to present WordPress video content as part of a visually engaging slideshow or carousel rather than dis­play­ing videos in­di­vid­u­al­ly.

Image: MetaSlider in the WordPress backend
MetaSlid­er in the WordPress backend

Reviewers

Go to Main Menu