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.
If you'd rather host your own video files directly on your site, see our guide on how to add Wix Video to your site.
Which Embedding Method Should You Use?
Before getting into the step-by-step for each method, here is a quick comparison to help you pick the right one for your situation:
| Method | Best For | Requires Code? | Customization |
|---|---|---|---|
| Video Element | Most users; clean responsive player | No | Low (basic playback settings) |
| HTML Iframe | Advanced control (autoplay, start time, no related videos) | Yes | High (full URL parameter control) |
| URL Paste | Quick one-off embeds in newer Wix Editor | No | Low |
The Video Element is the right choice for 90% of users. Use the HTML Iframe method only when you need specific behavior the Video element cannot deliver, such as autoplaying a muted video or embedding without the related-videos screen at the end.
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 YouTube Shorts on Wix
YouTube Shorts are vertical videos filmed in a 9:16 aspect ratio, which is the opposite of standard YouTube videos. Embedding a Short on Wix requires specific sizing adjustments because the default 16:9 layout will cut off the video or add large black bars on the sides.
Here is how to embed a YouTube Short correctly on Wix:
- Go to the YouTube Short you want to embed. Click Share, then Embed. Copy the iframe code.
- In the Wix Editor, add an Embed Site element (same as Method 2). Paste the Short's iframe code.
- Resize the element for vertical format. YouTube Shorts are 9:16, so set the embed element to a vertical size. For example: 315px wide by 560px tall. This matches YouTube's standard Short player dimensions.
- If you want the Short to fill a larger area while keeping the correct ratio, you can scale up proportionally: 360x640, 405x720, or 450x800.
Common mistake: Many users try to embed a Short using the Video Element (Method 1) or paste a Short URL into the standard video player. The Wix Video element treats Shorts as regular videos and displays them in a 16:9 container, which distorts or crops the vertical video. Always use the HTML Embed (Method 2) for YouTube Shorts so you can control the exact dimensions.
Using the Shorts URL: YouTube Short URLs look like https://www.youtube.com/shorts/VIDEO_ID. The embed URL in the iframe code will be in the format https://www.youtube.com/embed/VIDEO_ID, which is the same format as regular videos. The difference is only in the display dimensions you set for the iframe element.
How to Embed a YouTube Live Stream on Wix
Embedding a YouTube live stream on your Wix site is different from embedding a standard video. Live streams use a different URL structure and the embed behaves differently depending on whether the stream is currently active or has ended.
Finding the Live Stream Embed Code
Go to your YouTube live stream page (or your channel's live tab if the stream is currently running). Click the Share button and then Embed. YouTube will generate an iframe code. The embed URL for a live stream looks like this:
https://www.youtube.com/embed/LIVE_STREAM_VIDEO_ID
This is the same format as a regular video embed. The difference is in how the player behaves: when the stream is live, the player shows the live feed. When the stream ends, the player either shows the replay (if you saved it) or displays a "stream ended" message.
Embedding the Live Stream on Your Wix Page
- Copy the iframe code from YouTube's Share > Embed dialog for your live stream.
- In the Wix Editor, add an Embed Site element (same process as Method 2 above).
- Paste the iframe code and click Update.
- Resize the embed to 16:9 ratio (e.g., 730x411).
Key Differences When Embedding Live Streams
- The embed URL must be for the actual stream video ID, not your channel URL. If you use your channel's main URL, visitors will see a channel preview, not the live player.
- Before the stream starts, the embed will show a waiting room or thumbnail. This is normal and matches what YouTube shows natively.
- Chat is not included in the standard embed. If you want to show the live chat alongside the video, YouTube offers a separate live chat embed URL:
https://www.youtube.com/live_chat?v=VIDEO_ID&embed_domain=yourdomain.com. Add this as a second Embed Site element next to the video embed. - Pre-scheduled streams use the same video ID. If you scheduled a stream in YouTube Studio, you can embed it before it goes live. Visitors who visit the page before the scheduled start time will see the countdown timer.
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.
Video Schema Markup: Getting Your YouTube Embed Into Google Search
Adding a YouTube video to your Wix page does not automatically make Google show it as a rich result in search. To get the video thumbnail, duration, and upload date to appear in Google's video rich results, you need to add VideoObject structured data (JSON-LD schema markup) to the page.
This is something almost no general-audience tutorial covers, but it can significantly improve your page's visibility in search results by triggering a video rich snippet alongside your standard listing.
What VideoObject Schema Tells Google
VideoObject is a type of Schema.org structured data that tells Google the key properties of a video: its name, description, thumbnail, upload date, duration, and embed URL. Without this markup, Google has to infer these properties from the page content, which is less reliable and less likely to trigger rich results.
How to Add VideoObject Schema to a Wix Page
Wix does not have a built-in schema editor, so you add the JSON-LD code through a Wix Velo code file or an HTML embed element. The HTML embed method is simpler for users without coding experience:
- In the Wix Editor, add an Embed Site element to the page (drag it to the bottom or off-screen if you don't want it visible).
- Click Enter Code and paste the following, replacing the placeholder values with your video's actual details:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Your Video Title Here",
"description": "A description of what your video covers.",
"thumbnailUrl": "https://img.youtube.com/vi/YOUR_VIDEO_ID/maxresdefault.jpg",
"uploadDate": "2026-01-15",
"duration": "PT5M30S",
"embedUrl": "https://www.youtube.com/embed/YOUR_VIDEO_ID",
"contentUrl": "https://www.youtube.com/watch?v=YOUR_VIDEO_ID"
}
</script>
A few notes on the field values:
- thumbnailUrl: Replace
YOUR_VIDEO_IDwith your actual YouTube video ID. Themaxresdefault.jpgpath gives you the highest-quality thumbnail YouTube generates automatically. - uploadDate: Use the date you published the video on YouTube, in YYYY-MM-DD format.
- duration: Use ISO 8601 duration format.
PT5M30Smeans 5 minutes and 30 seconds.PT1H2Mmeans 1 hour and 2 minutes. - embedUrl vs contentUrl: Include both.
embedUrlis the iframe src URL;contentUrlis the standard YouTube watch URL.
Testing Your Schema Markup
After publishing, test the schema with Google's Rich Results Test tool (search "Google Rich Results Test"). Paste your page URL and look for a VideoObject entry in the results. If it shows up with no errors, Google can read your video metadata. It may take a few days for the rich result to appear in actual search results after Google recrawls the page.
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.
- Autoplay not working: Browsers block autoplaying videos that have sound. Add
&mute=1alongside&autoplay=1in your embed code. - "Video unavailable" message: 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). For Shorts, use a 9:16 ratio instead.
- Video works in editor but not on live site: Publish your site and clear your browser cache. 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