This article was co-authored by wikiHow staff writer, Rain Kengly. Rain Kengly is a wikiHow Technology Writer. As a storytelling enthusiast with a penchant for technology, they hope to create long-lasting connections with readers from all around the globe. Rain graduated from San Francisco State University with a BA in Cinema.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 197,299 times.
Learn more...
Embedding a YouTube video into a blog or website allows you to share videos freely across the internet. Since YouTube handles the video traffic, you don't have to worry about managing your site's bandwidth. Keep in mind this can't be done on mobile; it can only be done on the website. Here's how to embed a YouTube video into your blog post or website using a computer.
Quick Steps
- Go to a YouTube video or playlist on a desktop browser.
- Click Share below the video.
- Click Embed.
- Click Copy.
- Paste the embed code into a blog post, webpage, or another location.
Steps
-
Go to https://www.youtube.com in a web browser. You'll need to be using YouTube on a computer to get the embed code for your video.[1]
-
Go to the video or playlist you want to embed. Use the search bar to find the video or playlist, or find it in your library.Advertisement
-
Click Share. This is underneath the video, next to the Download icon.
- A pop-up window will open.
-
Click Embed. This is the first option, underneath the <> icon.
- Alternatively, embed videos or playlists on social media with the "Share" function. If you only want to post the video to Facebook, Twitter/X, Pinterest, or Tumblr, you can simply click on the appropriate icon in the "Share" window below the video. YouTube will prompt you to log into your social media account and automatically embed the video for you.
-
Edit your embedded video options. Before you embed the video, you can change the options, such as starting time, player control visibility, and privacy-enhanced mode.
- To change the start time, click Start at and enter a starting timestamp.
- To enable player controls (video playback and volume), check the box for Show player controls.
- To turn on privacy-enhanced mode, check the box for Enable privacy-enhanced mode. This prevents YouTube from storing visitor information unless they play the video.
-
Click Copy. You can find this at the bottom-right corner of the pop-up window.
- This will save the embed code to your computer's clipboard.
-
Navigate to where you want to embed the video. This is usually your webpage's HTML editor. HTML is a type of code used to build websites, and the embed code on YouTube is designed to insert into the code and display the video without any changes. Many blogging websites let you insert the video directly into the post as well without changing your website's code.
- Blog Posts: Begin a new post. Click the "HTML" link (or similar) in the toolbar above the post. This will display the code of your post but will keep your website's code intact.
- Website: Locate the HTML files for your website. You can edit them using a text editor like NotePad or TextEdit on Mac. You can also edit them using an HTML editor such as Adobe Dreamweaver. When you are done editing the HTML files, you will need to upload the files to your server manually or using FTP.
-
Paste the video code where you want the video to go. You can either right-click and choose Paste or press Control + V (PC) or Command + V (Mac) to paste the embed code.[2]
- Be sure to publish your changes. The YouTube video will be embedded.
Community Q&A
-
QuestionWhat do you do if the share button on YouTube doesn't do anything but make a gray haze?B ChenCommunity AnswerIf you are on the mobile YouTube app, there is nothing you can do. However, if you are on desktop, you can right click on the video and select "Copy embed code".
Video
Tips
-
Some videos don't allow embedding. In this case, you can insert a hyperlink instead.Thanks
-
Avoid using other people's music or videos to make a profit without properly acknowledging the creator; this can lead to legal issues.Thanks
References
About This Article
1. Go to YouTube.
2. Click the video.
3. Click Share.
4. Click Embed.
5. Highlight the embedding code.
6. Click COPY.
7. Right-click the embedding location.
8. Click Paste.