Websites
Embed a YouTube or Vimeo video on your website
Embedding a video means showing a YouTube or Vimeo player on your page so visitors watch without leaving. Done carelessly, a player loads megabytes of script before anyone presses play; done well, the page shows a still and loads the player on the click.
Where the video goes
Give the video link in the brief or in chat and say where it belongs: one video big on the home page, such as a promo or a tour, or a video beside a few sentences explaining why it is worth watching, which helps visitors decide to press play. The AI writes the embed into the page with a heading and a title on the frame for screen readers.
YouTube and Vimeo only
The site may embed only YouTube, through youtube-nocookie.com, and Vimeo players; the AI is refused any other host when it finishes a change. Give a normal watch link, a short youtu.be link or a Vimeo link. Video files are not uploaded or hosted, so upload the video to YouTube or Vimeo first, as unlisted if you like.
Privacy friendly loading
YouTube plays from youtube-nocookie.com, which keeps YouTube's tracking cookies off the page until someone plays the video. When the site has a consent banner, the embed is a click to load placeholder until the visitor accepts. Ask for the player to load only when the visitor presses play, so a video near the bottom costs nothing for visitors who never reach it.
Keep it reachable
Ask for a plain link to the video page under the player, so visitors with scripts off, or who declined the consent banner, can still watch on YouTube or Vimeo, and search engines get a normal link to follow.
Where video earns its place
A short tour of the premises, the owner explaining what makes the business different, or a client story usually earns its space. Long videos rarely get watched on a business site. Keep the heading specific, such as Take a two minute tour of the gym, and do not rely on the video to carry information that should also be written on the page.
How it works, in three steps
Step 1
Give the link
Paste the YouTube or Vimeo address in the brief or in chat and say which page it goes on.
Step 2
Write why to watch
Give a heading that says why to watch, such as Take a two minute tour of the gym.
Step 3
Check and publish
Check the player in the preview at phone width, then publish on a paid plan.
Limits worth knowing
- Only YouTube and Vimeo embeds are allowed; video files are not uploaded or hosted.
- With a consent banner, the player waits for the visitor to accept.
- Autoplay on page load is not used.
- The video must be public or unlisted on YouTube or Vimeo to play.
Questions people ask
Can I upload a video file instead?
No. Video files are not hosted; the site plays videos from YouTube or Vimeo. Upload your video there, as unlisted if you do not want it in search results, and give the link. That also gives visitors adaptive quality for slow connections, which file hosting would not.
Can the video play automatically?
No. The video starts when the visitor presses play. Autoplaying video on page load costs data, annoys people in quiet places and slows the page. A clear heading and a good thumbnail on YouTube or Vimeo do more for views than autoplay.
Will the video slow down my site?
A little, unless you ask for the player to load on press. A YouTube or Vimeo frame loads its own player script, so one video near the top costs more than one far down. Asking for click to load, or adding a consent banner, keeps that weight off the page until someone wants to watch.
Can I embed a YouTube Short?
Yes. Shorts links play in the same YouTube player. The frame is usually landscape shaped, so a vertical Short looks small inside it on a desktop screen; ask for a portrait frame, or use a landscape cut of the same video, which usually suits a website better.
Can I show several videos?
Yes. Ask for each one where it belongs, or for a videos page with a few of them. For a long list of videos, a link to your YouTube channel from the menu keeps the page readable and light. Each embed adds its own player weight.
Does an unlisted YouTube video work?
Yes. Unlisted videos play in the embed for anyone who visits your page, while staying out of YouTube search and your channel page. That suits a welcome video made only for your website. Private videos do not play for visitors, so switch them to unlisted first.
Will Google see my video?
The heading and text around the embed describe the video to search engines, and a plain link to the video page gives them something to follow. The video itself is indexed on YouTube or Vimeo, so write a good title and description there as well.
Make your own website
The button opens the generator with this use case already described. Change the wording to match yours, generate, then edit anything you like.
Create a website with OneCraftNot ready to start? See the AI website builder page first.
Related pages
Dark mode website: one switch, every palette, readable contrast
A dark mode website uses a dark background with light text, which suits photography, nightlife, music and premium products. Done badly it is hard to read; done well every colour pair is retuned for the dark background rather than simply inverted.
Add Google Maps to your website: type the address, choose the layout
Adding Google Maps to a website shows visitors exactly where you are and gives them directions in one tap. You should not need an API key or embed code for that, only the address people would type into Maps themselves.
Careers page with applications and a hiring pipeline
A careers page lists the roles a business is hiring for and takes applications with a CV, so they arrive in one place instead of scattered emails. What matters to applicants is a clear role and a short form; what matters to the business is a pipeline it can move people through and CVs nobody else can read.
More finished work of this kind is on the website examples hub.
Written and checked by the OneCraft team. Last checked .