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.
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:
- Open the Wix Editor and go to the page where you want the video.
- Click the + (Add Elements) button on the left sidebar.
- Select Video & Music from the menu.
- Choose Single Video Player and drag it onto your page.
- Click the video element, then click Change Video.
- 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

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

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

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

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

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

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:
- Go to the YouTube playlist you want to embed.
- Click Share, then Embed.
- Copy the iframe code. The URL in the code will contain
/embed/videoseries?list=PLAYLIST_IDinstead of a single video ID. - In the Wix Editor, add an Embed Site element (same as Method 2, Step 4).
- 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=1to start the video automatically. Note: most browsers block autoplay unless the video is also muted. - Mute: Add
&mute=1to mute the video on load. Required for autoplay to work in Chrome, Firefox, and Safari. - Loop: Add
&loop=1&playlist=VIDEO_IDto loop a single video. You must include theplaylistparameter with the same video ID for single-video looping to work. - Start time: Add
&start=30to begin playback at 30 seconds. - End time: Add
&end=120to stop playback at the 2-minute mark. - Hide controls: Add
&controls=0to hide the player controls. The video can still be paused by clicking it. - Disable related videos: Add
&rel=0to 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=1alongside&autoplay=1in 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://, nothttp://. Wix sites use HTTPS, and loading an HTTP iframe will be blocked by the browser.
* read the rest of the post and open up an offer