← Swarmify Blog

How to Add Video to Google Sites: 3 Methods (2026 Guide)

Add video to Google Sites with YouTube, Drive, or custom embed code. Follow the steps, check visitor access, and fix common playback problems.

James Christensen · August 17, 2026 · Updated November 4, 2026 · 9 min read
Illustration of a video player tile being slotted into a puzzle-piece gap on a website page under construction

To add video to Google Sites, open your page in the editor and choose Insert → YouTube, Insert → Drive, or Insert → Embed → Embed code. Select the video or paste its player code, resize the block, and publish. Google Sites does not accept direct video uploads; the file must live on YouTube, Drive, or another host.

The right method depends on who needs to watch. YouTube is convenient for public videos, Drive fits an audience with Google account access, and custom embed code lets you use an external player with different branding and delivery options.

📋 TL;DR

  • Quick public video: Use Insert → YouTube.
  • Workspace or classroom file: Upload to Drive, set file permissions, then use Insert → Drive.
  • Without YouTube or Drive: Paste your host’s player code into Insert → Embed → Embed code.
  • Custom scripts: Include the required script inside each embed block, not in a site-wide header.

Which Google Sites video method should you choose?

Choose by access and player requirements before uploading. Custom embed code is a container for your chosen host; it does not provide hosting or adaptive streaming by itself.

ConsiderationYouTube insertGoogle Drive videoCustom embed code
Ads and brandingYouTube branding; ads and related videos may appearGoogle player interfaceDepends on host; ad-free options available
Quality deliveryYouTube manages playback qualityDrive processes the file for playbackAdaptive streaming if the host provides it
ResolutionDepends on source and YouTube processingMaximum playback: 1920×1080Depends on host and source
Viewer accessVideo must allow embedding and be accessible to viewersFile permissions apply; signed-out playback can hit a limitHost’s access rules apply
Storage and costVideo hosting does not use your Drive storageSource file uses Drive storageHost’s storage and plan charges
Setup effortSelect a videoUpload, share, then insertPaste complete player code per block

For teachers, Drive can suit a Workspace class; test with a student account. For a business page, consider whether ads or recommendations would interrupt the next action. For an intranet, check both site access and video access: permission to read the page does not automatically grant permission to watch its video.

Method 1: How to add video to Google Sites with YouTube

Use Insert → YouTube when the video is already on YouTube and its player fits your page. Google documents this native insertion route in its Sites help guide (Google Sites Help, 2026).

  1. Open your site on a computer and select the page.
  2. Choose Insert → YouTube in the right-hand panel.
  3. Find the video using search or its YouTube URL.
  4. Select the result and click Insert.
  5. Resize and position the player, then click Publish.
  6. Open the published page while signed out and confirm that playback works.

Two colleagues discussing a site editor window with an Insert panel open beside a video preview card Illustration of a site editor, not a screenshot of Google Sites.

What to check before choosing YouTube

A YouTube embed retains YouTube’s viewing environment. Even privacy-enhanced embeds can serve ads; privacy-enhanced mode is not an ad-removal setting (YouTube Help, 2026).

Start with the video the page actually needs rather than a wall of players. For more context, see what a YouTube embed actually costs your page and the options to embed video without ads.

Method 2: Add a Google Drive video with Insert → Drive

Use Insert → Drive for a video stored in your Google account. Uploading the file and granting access are separate from placing it on the Sites page.

  1. In Drive, choose New → File upload and select the video.
  2. Open Share on the file and give the intended audience access.
  3. Confirm that another intended viewer can play the file; processing may continue after the uploader can watch it.
  4. In Sites, choose Insert → Drive, select the video, and click Insert.
  5. Resize the player and click Publish.
  6. Test using a student or colleague’s account, or while signed out for a public page.

A stored video file card arcing from a warehouse shelf into a web page layout with a sharing-permission list beside it Illustration of a stored video and sharing settings, not a screenshot of Google Drive.

For public content, use Anyone with the link only if your organization permits it and the file is intended for public access. Keep internal videos restricted to their actual audience.

Drive’s playback and storage limits

Drive supports formats including MP4 and MOV with supported codecs, but its maximum playback resolution is 1920×1080. It also documents a playback limit for viewers who are not signed in, without stating a numerical threshold on that help page (Google Drive Help, 2026).

Test Drive before a large class or public launch. A successful owner preview does not prove everyone can watch.

For access-sensitive material, compare private video hosting for internal pages. If your source file needs preparation, start with which video format to upload.

Method 3: Google Sites embed code for custom HTML video

Use Insert → Embed → Embed code to add video without YouTube or Drive. Your external host supplies the player; Google Sites displays its code in a separate block.

  1. Copy the complete embed code from your video host.
  2. Open the destination page in Sites and choose Insert → Embed → Embed code.
  3. Paste the code, including any required script.
  4. Click Next, inspect the preview, then click Insert.
  5. Resize the block to fit the player and its controls.
  6. Click Publish and test the published page on desktop and phone.

Google supports HTML, CSS, and JavaScript through this dialog; JavaScript belongs inside script tags (Google Sites Help, 2026).

An embed code dialog holding a video player snippet inside a dashed responsive preview frame Custom code runs inside an iframe block. Illustration, not an editor screenshot.

Add SmartVideo inside one embed block

Google Sites has no site-wide header or footer code area. For SmartVideo, copy the complete script snippet from Dashboard → Configuration into the Embed code box, then place this tag beneath it in that same box:

<smartvideo src="path/to/my/video.mp4" width="1280" height="720" class="swarm-fluid" controls playsinline></smartvideo>

Replace path/to/my/video.mp4 with your video’s accessible source URL. The tag alone is insufficient: include the dashboard script above it in every block that uses SmartVideo. Keep width and height proportional to your source video; swarm-fluid makes the player responsive within its container.

In our August 10, 2026 published-site test, the script and tag worked together inside Google Sites’ sandboxed iframe. We confirmed DASH video segment requests to Swarmify’s CDN with HTTP 206 responses. That establishes this installation path; it is not a test of every browser or school network.

Need an ad-free player for your Google Sites page? SmartVideo provides adaptive streaming without suggested videos or third-party branding. Explore SmartVideo’s video hosting solutions.

For other external hosts, confirm those features before choosing their embed code. See the broader guide to host videos without YouTube for the hosting decision.

Autoplay, looping, and video layout

Autoplay and looping depend on the player and browser. To configure them with the parameters below, use a custom YouTube iframe through Insert → Embed → Embed code.

For a custom YouTube iframe, autoplay=1 requests automatic playback. Muted playback is more likely to work because browsers restrict autoplay with sound; Chrome also applies permission rules to playback inside iframes (Chrome for Developers, 2018). Google Sites wraps custom code in another iframe, so its permissions may still prevent autoplay; test the published page.

For a single YouTube video to autoplay muted and loop, paste this iframe into the Embed code box, replacing both instances of VIDEO_ID:

<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1&amp;mute=1&amp;loop=1&amp;playlist=VIDEO_ID" title="YouTube video player" allow="autoplay; encrypted-media; picture-in-picture" allowfullscreen></iframe>

YouTube documents both parameters. To begin at a specific point instead, start=90 requests a start around 90 seconds (YouTube player parameters, 2026).

For SmartVideo, add muted autoplay playsinline to request a silent inline start. Keep visible controls and make essential instructions available in text rather than relying on automatic playback.

Resize the Sites block as well as configuring the player. For video beside an image or explanation, use a two-column layout and inspect the phone preview. Put the video title and summary in ordinary page text so visitors can understand the section before pressing play.

Add captions at the video source: use YouTube Studio for YouTube, add a caption track to the Drive file, or follow your external host’s caption instructions. Check that viewers can turn captions on in the published player.

Troubleshooting Google Sites video not playing

Diagnose the published page using the same access conditions as your audience. An owner’s working preview can hide a permissions problem.

Drive video is blank or asks for sign-in

Check file sharing first, then processing. If signed-out viewers hit Drive’s playback limit, consider requiring sign-in or using another host; changing sharing settings alone will not remove the limit.

The embed preview works, but the published page fails

Republish the change and open the actual visitor URL. Confirm the complete script and tag are in the same block, external URLs use HTTPS, and the block has enough height. For YouTube, check that the source video permits embedding.

Some providers prevent their pages from appearing inside another site. Use the provider’s official player embed rather than an ordinary watch-page URL; Google warns that some websites disallow embedding (Google Sites Help, 2026).

According to Steegle, custom embed code runs inside an iframe and is excluded from Google Sites’ own site search. Add the video title, a summary, and useful transcript text as normal Sites content beside the player. This concerns Sites’ internal search, not a blanket rule about Google Search indexing.

Frequently asked questions

Can you upload a video file directly to Google Sites?

No. Upload an MP4 to Drive and use Insert → Drive, or host it elsewhere and insert its player.

How do I embed a video on Google Sites without using YouTube or Drive?

Choose Insert → Embed → Embed code and paste an external host’s player code. Include any required script in the same block as the video element, following the host’s installation instructions.

Does Google Sites let you add custom HTML or JavaScript?

Yes. Insert → Embed → Embed code accepts custom code, isolated within that embed. It does not install JavaScript across the whole site or provide access to a global header.

Why is my Google Drive video not playing on my Google Site?

Check the source file’s permissions and processing status, then test as an intended viewer. A separate signed-out playback limit can also interrupt public viewing. Playing the file as its owner does not establish visitor access.

Is there a view limit on Google Drive videos?

Google documents a playback limit for viewers who are not signed in but does not give a numerical threshold on its video help page. Avoid planning public distribution around an assumed number of free views.

How do I make a video autoplay and loop on Google Sites?

Use a custom player embed with the provider’s supported controls. YouTube looping needs loop=1 plus playlist set to the same video ID. Autoplay remains subject to browser policy, so always leave a usable play control.

How do I remove ads and suggested videos from a Google Sites video?

Choose a host with an ad-free player and paste its code into Sites. YouTube’s rel=0 limits related videos to the same channel rather than disabling them, and modestbranding is deprecated and has no effect (YouTube player parameters, 2026).

Test the video as your audience will see it

Choose YouTube for straightforward public sharing, Drive for an audience whose file access you can verify, or custom embed code for an external player. For another platform, compare the five ways to embed video on a website.

Before sharing the page, check playback, captions, controls, and the next action on a phone and with the intended account permissions. A successful insertion is only the first step; the published page needs to work for its visitors.

Try SmartVideo Free for Your Site →

Keep Visitors on Your Page, Not YouTube’s

SmartVideo’s player is 2x lighter than a YouTube embed, with zero ads. No suggested videos, no one else’s logo.

Build your player
10% conversion increase
“We’ve had a 10% increase in conversion rate from lead to customer.”
Pedro C.
Dir. of Digital Marketing, White Jacobs
Instant side-by-side winner
“SmartVideo loaded immediately; YouTube took 5 seconds to start. It became a no-brainer.”
Aaron H.
IT Director, PizzaTV
Rankings improved
“Our search-engine rankings went up after we switched over to Swarmify.”
Philip A.
Owner, Ignite Images