How To Embed YouTube Videos on Wix (3 Methods)

How To Embed YouTube Videos on Wix (3 Methods)

You can embed a YouTube video on Wix in under two minutes. Open the Wix Editor, add a Video element or HTML embed block, paste your YouTube URL or embed code, and hit Update. The video appears on your page immediately. Below you will find three different methods to do this, plus settings for autoplay, playlists, mobile sizing, and fixes for common problems.

Key Takeaways
1
There are three ways to embed YouTube videos on Wix: the Video element, HTML iframe, and direct URL paste.
2
You can control autoplay, loop, and mute settings by editing the embed code parameters.
3
Embedded YouTube videos load externally, so they don't count against your Wix storage or bandwidth.

Method 1: Use the Wix Video Element (Easiest)

The Wix Video element is the fastest way to add a YouTube video to your Wix site. It handles responsive sizing automatically and gives you a clean player that matches your site design. If you want full control over all video options on Wix, including uploaded files and background videos, check out our full guide on how to add video on Wix.

Here is how to use it:

  1. Open the Wix Editor and go to the page where you want the video.
  2. Click the + (Add Elements) button on the left sidebar.
  3. Select Video & Music from the menu.
  4. Choose Single Video Player and drag it onto your page.
  5. Click the video element, then click Change Video.
  6. Select the YouTube tab, paste your YouTube video URL, and click Update.

The video element automatically adjusts for mobile screens and gives you built-in playback controls. This is the recommended method for most users because it requires no code and works with the Wix mobile editor.

Method 2: Embed YouTube Using HTML Iframe Code

If you need more control over the player -- like removing related videos at the end, forcing a specific start time, or adding custom parameters -- use the HTML embed method. This is also the way to go if you want to embed a YouTube video with specific iframe attributes. For more on working with HTML in Wix, see our guide on how to add HTML code on Wix.

Step 1: Find the YouTube Video

How To Embed Youtube Video On Wix - Find the YouTube you want to embed into your Wix site

Go to YouTube and find the video you want to embed. Click the Share button below the video player, then click Embed. YouTube will show you an iframe code snippet.

Step 2: Copy the Embed Code

How To Embed Youtube Video On Wix - Copy the embed code of the video so you can place it into your website

Copy the entire iframe code. It looks something like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>

You can also check the options YouTube offers before copying, like "Start at" to begin playback at a specific timestamp.

Step 3: Log Into Wix and Open the Editor

How To Embed Youtube Video On Wix - Log into Wix either by email or different social media platforms such as Facebook, Google or as a guest

Go to Wix and log into your account. Open the site you want to edit and enter the Wix Editor.

Step 4: Add an HTML Embed Element

How To Embed Youtube Video On Wix - From the menu, click on the Embed and Socials where you can drop the Embed Site to your page

Click the + button in the left sidebar. Select Embed & Social, then choose Embed Code and drag the Embed Site element onto your page.

Step 5: Paste the Embed Code

How To Embed Youtube Video On Wix - Paste the embed code to the settings of the widget for the YouTube video to appear

Click the HTML element on your page, select Enter Code, paste the YouTube iframe code, and click Update. Your video should appear in the editor right away.

Step 6: Resize and Position the Video

How To Embed Youtube Video On Wix - Adjust the video settings to your liking

Drag the corners of the embed element to resize it. Switch to the mobile editor (phone icon at the top) to check how the video looks on smaller screens. A 16:9 aspect ratio (for example, 640x360 or 730x411) works best for standard YouTube videos.

Method 3: Paste a YouTube URL Directly

In the newer Wix Editor (Wix Studio and updated classic editor), you can sometimes paste a YouTube URL directly into a Video element without copying iframe code. Add a Single Video Player element, click Change Video, select the YouTube tab, and paste the full video URL. Wix handles the rest. This method is quick but gives you the fewest customization options.

How to Embed a YouTube Playlist on Wix

You can embed an entire YouTube playlist so visitors can watch multiple videos without leaving your page. Here is how:

  1. Go to the YouTube playlist you want to embed.
  2. Click Share, then Embed.
  3. Copy the iframe code. The URL in the code will contain /embed/videoseries?list=PLAYLIST_ID instead of a single video ID.
  4. In the Wix Editor, add an Embed Site element (same as Method 2, Step 4).
  5. Paste the playlist embed code and click Update.

The embedded player will show a playlist sidebar where viewers can pick which video to watch. If you want the playlist to auto-advance to the next video, make sure the playlist URL does not include &loop=1 unless you also want it to restart from the beginning after the last video.

Autoplay, Loop, and Mute Settings

YouTube embed codes accept URL parameters that control playback behavior. You add these to the end of the video URL inside the iframe src attribute, separated by &.

Here are the most useful parameters:

  • Autoplay: Add &autoplay=1 to start the video automatically. Note: most browsers block autoplay unless the video is also muted.
  • Mute: Add &mute=1 to mute the video on load. Required for autoplay to work in Chrome, Firefox, and Safari.
  • Loop: Add &loop=1&playlist=VIDEO_ID to loop a single video. You must include the playlist parameter with the same video ID for single-video looping to work.
  • Start time: Add &start=30 to begin playback at 30 seconds.
  • End time: Add &end=120 to stop playback at the 2-minute mark.
  • Hide controls: Add &controls=0 to hide the player controls. The video can still be paused by clicking it.
  • Disable related videos: Add &rel=0 to limit suggested videos at the end to the same channel instead of showing random recommendations.

A combined example for a muted, autoplaying, looping video:

<iframe src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1&mute=1&loop=1&playlist=VIDEO_ID" ...></iframe>

Mobile Display Tips for Embedded YouTube Videos

Embedded videos can break your mobile layout if you don't size them correctly. Follow these tips to keep things looking right on phones and tablets:

  • Use the Wix mobile editor. After embedding your video on desktop, switch to the mobile view and reposition or resize the element. Wix treats desktop and mobile layouts separately.
  • Stick to 16:9 ratio. YouTube videos are filmed in 16:9. Setting your embed to a different ratio will add black bars around the video.
  • Don't make the embed wider than the screen. On mobile, set the width to 100% of the content area. In the HTML embed method, you can replace the fixed width with width="100%" in the iframe tag.
  • Test on a real phone. The Wix mobile preview is helpful, but always check your live published site on an actual phone to catch scrolling or overflow issues.

Performance and Page Speed

YouTube embeds load external scripts and assets from YouTube's servers. Each embed adds roughly 500KB to 1MB of page weight on first load. If you have multiple videos on one page, this can slow things down noticeably.

Here is how to keep your page fast:

  • Limit videos per page. If you need to show more than three or four videos, consider linking to a dedicated video page or embedding a playlist instead of individual players.
  • Use the lite-youtube approach. Advanced users can replace the standard iframe with a lightweight placeholder image that only loads the full YouTube player when clicked. This requires custom HTML code in an embed block.
  • Place videos below the fold. Videos placed lower on the page won't affect your initial load speed as much because they load as the user scrolls down.

Embedded YouTube videos are hosted on YouTube's servers, so they don't use your Wix storage or bandwidth quota. The only cost is the page load time from the external scripts. If you want to learn about adding video backgrounds on Wix (which use uploaded files instead), that guide covers the differences.

Troubleshooting: YouTube Video Not Working on Wix

If your embedded YouTube video is not displaying or playing correctly, check these common issues:

  • Black screen or gray box: Make sure you pasted the full iframe code, not just the video URL. The Embed Site element needs the complete <iframe> tag to render properly.
  • Video not playing: Some videos have embedding disabled by the uploader. Check the original YouTube video page -- if the Share > Embed option is missing, the video owner has restricted embedding. You will need to pick a different video or contact the creator.
  • Autoplay not working: Browsers block autoplaying videos that have sound. Add &mute=1 alongside &autoplay=1 in your embed code. Without muting, autoplay will be silently ignored.
  • "Video unavailable" message: This usually means the video was deleted, made private, or is region-restricted. Replace it with an active, publicly available video.
  • Video looks stretched or squished: The embed element aspect ratio does not match the video. Resize the element to a 16:9 ratio (for example, 730px wide by 411px tall).
  • Video works in editor but not on live site: Publish your site and clear your browser cache. The Wix Editor preview and the live site sometimes handle embed elements differently. Also check that your site is published (not just saved).
  • HTTPS mixed content error: Make sure your embed URL starts with https://, not http://. Wix sites use HTTPS, and loading an HTTP iframe will be blocked by the browser.
Show More

* read the rest of the post and open up an offer
FAQs

Yes. Repeat the embedding process for each video. However, each additional embed adds page weight (roughly 500KB-1MB per video). If you need to show more than three or four videos, consider embedding a YouTube playlist instead. A playlist embed loads a single player with a video list sidebar, which is much lighter than multiple individual players.

YouTube's terms of service allow embedding by default unless the uploader has disabled it. You are not legally required to credit the creator when using the standard embed code, since the YouTube player itself links back to the original video. However, adding a text credit or link below the video is good practice, especially for educational or creative content you did not produce yourself.

Yes. Use the same HTML embed method described above. Go to your YouTube live stream, click Share > Embed, copy the iframe code, and paste it into an Embed Site element in the Wix Editor. The stream will display in real-time. Keep in mind that once the live stream ends, the embed will either show the recorded version (if the creator saves it) or display a "Video unavailable" message.

Modern browsers (Chrome, Safari, Firefox, Edge) block autoplay for videos that have sound enabled. To make autoplay work, you must also mute the video by adding both &autoplay=1 and &mute=1 to your iframe embed URL. Without the mute parameter, the browser will silently ignore the autoplay request. This is a browser-level restriction, not a Wix limitation.

Go to the playlist on YouTube, click Share, then Embed, and copy the iframe code. The embed URL will contain /embed/videoseries?list=PLAYLIST_ID. Paste this code into an Embed Site element in the Wix Editor. The player will show a sidebar listing all videos in the playlist, and viewers can pick which one to watch.

Each YouTube embed adds roughly 500KB to 1MB of external resources on first load. One or two videos per page will not cause noticeable slowdowns, but five or more can affect load times. To reduce the impact, place videos below the fold so they load as users scroll, or use a single playlist embed instead of multiple individual players.

Top