How to Embed Google Drive Videos on Your Website 2026

Embed Google Drive video on your website and you get a free video player with no hosting bill, no YouTube account and no third-party video platform in the middle. The whole trick is one iframe pointing at Drive’s preview player — but the details around it are where most guides go wrong: the sharing has to be set before the embed will play for anyone else, the code samples floating around the web are often broken, and Drive has limits (a 1080p playback ceiling, a cap on anonymous viewers) that decide whether this is the right call for your page at all.
This guide gives you the code that actually works, tested against how Drive behaves in December 2026, and tells you plainly where the method stops being enough.
A pottery studio’s class page, embedded in an afternoon
The fastest way to see how this works is a small, real-shaped example. A pottery studio in a two-person business wants its 3-minute-42-second wheel-throwing demo on its class page, so visitors can watch before they book. The video is a 720p MP4, 86 MB, exported from a phone. There is no YouTube channel and no budget for a video host.
The owner uploads the MP4 to a Drive folder called Website Videos, right-clicks it, chooses Share, and changes General access from Restricted to Anyone with the link, role Viewer. That takes under a minute. From the share link she copies the file ID — the long string between /file/d/ and /view — and drops it into the preview URL. Then she opens the class page in WordPress, adds a Custom HTML block, pastes the iframe with loading=”lazy”, and publishes.
The result: the demo plays on the class page on desktop and phone, with Drive’s own play, volume and fullscreen controls. The only cost was 86 MB of the studio’s existing Drive storage. The one thing she checks afterwards, and you should too, is the page in a private browser window while signed out of Google — because the embed that plays for the person who uploaded it does not always play for everyone else. Hers did, because the sharing was set first. That order — sharing first, embed second — is the whole method, and skipping it is the single most common reason embeds fail.
The three steps
Everything else in this guide is detail around these three moves.
Step 1 — Share it. In Drive, right-click the video, choose Share, and under General access change Restricted to Anyone with the link, with the role set to Viewer. If you leave it Restricted, only people you have explicitly granted access to will see anything — everyone else gets an error. If you are embedding several videos from one folder, set the folder to Anyone with the link – Viewer instead; files inside inherit the permission.
Step 2 — Copy the file ID. A normal Drive share link looks like this:
https://drive.google.com/file/d/1aBcD2EfGhIJKlmNOPqrStUvWXyz/view?usp=sharing
The file ID is the string between /file/d/ and /view — here, 1aBcD2EfGhIJKlmNOPqrStUvWXyz. Copy it; you will need it for the embed code.
Step 3 — Paste the iframe. Put the ID into the preview URL and wrap it in an iframe:
<iframe src="https://drive.google.com/file/d/FILE_ID/preview" width="640" height="360" title="Pottery wheel throwing demo" allow="autoplay" allowfullscreen></iframe>Replace FILE_ID with the ID from step 2 and the title with a description of your own video. That renders Drive’s preview player: play and pause, a seek bar, volume, and a fullscreen button. The width and height are the player’s starting size; the responsive wrapper below takes over from there.
Getting the embed code from Drive itself
You do not have to build the iframe by hand. Open the video in Drive’s viewer, go to File, then Share, and choose Get embed link. Drive opens a dialog with a ready-made iframe — paste that HTML into your page and you are done. Two things worth knowing: older guides point you at a three-dot menu with an “Embed item” option, which the 2026 viewer no longer shows, and the code Drive hands you is a fixed 640 x 480 iframe with no title attribute and no lazy loading. It works, but the hand-built version above is better for a real page — it has an accessible title and a size you control.
Making it responsive, and keeping the page fast
A fixed 640 x 360 iframe looks fine on a desktop and breaks on a phone. Wrap it in a container that holds the 16:9 ratio, and let the iframe fill the container:
<div class="video-embed">
<iframe src="https://drive.google.com/file/d/FILE_ID/preview" title="Pottery wheel throwing demo" loading="lazy" allow="autoplay" allowfullscreen></iframe>
</div>.video-embed {
position: relative;
padding-bottom: 56.25%; /* 16:9 aspect ratio */
height: 0;
overflow: hidden;
max-width: 100%;
}
.video-embed iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}Two details in that snippet do real work. The padding-bottom of 56.25% is what keeps the 16:9 shape at any screen width — 9 divided by 16 — so the player never stretches or leaves a black bar. And loading=”lazy” tells the browser to hold off fetching the player until the visitor scrolls near it, which keeps the video from dragging down the page’s first paint. Drive’s player is a heavy iframe; on a page where the video sits below the fold, lazy loading is the difference between a fast page and a sluggish one.
WordPress in particular
WordPress has no built-in embed for Google Drive — pasting a Drive share link into a paragraph will not turn into a player the way a YouTube link does, because WordPress has no oEmbed provider for Drive. Use a Custom HTML block, paste the iframe (or the responsive version above, with the CSS in your theme’s Custom CSS or a code-snippets plugin), and publish. In the classic editor, the same code goes in the Text tab, not the Visual tab — the Visual tab will strip or mangle it. After publishing, open the page in a private window while signed out of Google and press play. If it plays there, it plays for your visitors.
The limits nobody mentions first
Drive’s preview player is a good free option for a light-traffic page. It is not a video CDN, and these are the limits that decide which side of that line you are on.
Playback tops out at 1080p. You can upload a 4K file — Drive accepts files up to 5 TB, if you have the storage — but the player never shows more than 1920 x 1080. Your original file stays untouched in Drive; only the playback is capped.
A new upload is not instantly ready for everyone. Drive lets you play a video right away in the same browser session, while it is still processing for other people and devices. If the embed plays for you and not for a visitor, wait for processing to finish and test again in a private window.
Anonymous viewers have a cap. Google’s own help page has a “Playback limits” error: “You’ve hit the limit for viewers who aren’t signed in.” Google publishes no number for that limit, and in practice it clears after some hours — the usual figure quoted is within a day. A video that goes viral, or sits on a high-traffic page, can hit it. Signed-in viewers are not affected. If your video hits the cap more than once, that is Drive telling you the page needs a real video host.
Third-party cookies have to be on. Google’s help page says plainly that playing videos in Drive needs third-party cookies enabled. A visitor with them blocked will see a player that refuses to load, and there is nothing your embed code can do about it — it is worth a line on the page for the small number of people it affects.
Autoplay is not something you can rely on. Google documents no autoplay parameter for the preview player. People report that adding ?autoplay=1&mute=1 to the preview URL sometimes starts the video muted, but the reports also say it behaves inconsistently across browsers, and every browser blocks autoplay with sound. Do not build a page that depends on the video starting by itself.
You cannot remove the Drive branding. The preview player carries Google’s interface, including an “Open in new window” button in the corner, and because the iframe is cross-origin you cannot restyle it with CSS or switch it off with a URL parameter. If a completely brand-free player is a hard requirement, the HTML5 route below is the only way — and it has its own costs.
Storage is the quiet constraint. The file counts once against your storage quota — a free Google account gets 15 GB shared across Drive, Gmail and Photos — and watching the video does not use extra storage. But a library of embedded videos adds up fast, and a full account will not accept the next upload until you clear space or buy more.
The HTML5 alternative — and why it is a trade-off
If you want your own player controls and no Drive interface, you can point a plain HTML5 video tag at the file’s direct download URL instead of embedding the preview player:
<video controls width="640" height="360" preload="metadata">
<source src="https://drive.google.com/uc?export=download&id=FILE_ID" type="video/mp4">
Your browser does not support the video tag.
</video>That gives you the browser’s native player, your own poster image, and full control over autoplay, loop and mute — and it is also the way to build the direct download link our full guide to Google Drive direct download links explains step by step. But be honest about what you are giving up. The uc address is undocumented: Google does not promise it will keep working, and it already redirects to drive.usercontent.google.com/download. A popular file can hit Drive’s download quotas and stop playing with a “download quota exceeded” error, and the file has to be set to Anyone with the link just like the iframe version. For a low-traffic page where you control the player, it is a reasonable choice. For anything public and busy, the supported preview iframe is the safer default — and if you want to share the file itself rather than play it, use this site’s own Google Drive Direct Link Generator to make a proper download link instead.
When it breaks
| Problem | Likely cause | Fix |
|---|---|---|
| “Video unavailable” or “This video is currently unavailable” | File still processing, or sharing still Restricted | Wait for processing to finish; set sharing to Anyone with the link – Viewer |
| “Playback limits” | Anonymous-viewer cap reached | Signed-in viewers can still play; wait — it usually clears within a day; if it keeps happening, move the video to a dedicated host |
| Player loads but will not play | Third-party cookies blocked in the visitor’s browser | Enable third-party cookies for drive.google.com; test in a fresh browser profile |
| Plays for you, not for visitors | You saw instant playback in your own session while the file was still processing | Wait, then test in a private window signed out of Google |
| Player tiny, stretched, or overflowing on mobile | Fixed width/height with no responsive wrapper | Use the .video-embed wrapper above; check no theme CSS sets a fixed iframe size |
| “Open in new window” button you cannot remove | That is part of Drive’s player and cannot be switched off | Accept it, or use the HTML5 route above |
| Video will not upload at all | Over the 5 TB per-file ceiling, or out of storage | Check available space; Workspace users also have a 750 GB daily upload-and-copy cap |
SEO and accessibility that actually help
Search engines cannot watch your video, but they can read everything around it, and that is where the ranking value sits. Give the iframe a descriptive title attribute — “Pottery wheel throwing demo” beats “video” — and put a short caption under the player naming what the video shows. If the video matters to the page, add VideoObject structured data with the preview URL as the embed address:
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Pottery wheel throwing demo",
"description": "A three-minute wheel-throwing demonstration from our beginner pottery class.",
"thumbnailUrl": "https://example.com/thumbs/pottery-demo.jpg",
"uploadDate": "2026-12-03",
"duration": "PT3M42S",
"embedUrl": "https://drive.google.com/file/d/FILE_ID/preview"
}Use your own thumbnail image URL and your own dates — the values above are placeholders, and a schema block with example.com in it does nothing for you. A sentence or two of text beside the player, saying what the video covers, helps both search engines and visitors who would rather skim than watch. If the video has spoken words, a short transcript below it is the single best accessibility and SEO addition you can make; Drive’s player has no caption track of its own for embedded videos.
One more check worth doing after the embed is live: open the file in Drive, open the Details panel, and look under Analytics. Google shows how many times the file has been opened — under 5 shows as “<5 opens”, over 5,000 as “>5000 opens” — which tells you whether anyone is actually reaching the video through the embed, without any analytics code at all.
FAQs
Can I embed a Google Drive video on any website?
Yes, as long as the file is shared as Anyone with the link. Paste the preview iframe into any page that accepts HTML — a WordPress Custom HTML block, Google Sites’ Embed option, or a plain HTML file. No plugin is required.
Is embedding a Google Drive video free?
Yes. There is no charge for the player; the video counts once against your Drive storage quota. A free account has 15 GB shared across Drive, Gmail and Photos, so a video library will use that up faster than documents do.
Why does my embedded video say “Playback limits”?
Google caps how many people who are not signed in can play a file in a short period, and it does not publish the number. Signed-in viewers keep playing, and the block usually clears within about a day. If it keeps coming back, the video has outgrown Drive as a host.
Can a Google Drive video autoplay when the page loads?
Not reliably. Google documents no autoplay parameter for the preview player, and browsers block autoplay with sound. Some people report ?autoplay=1&mute=1 works sometimes; treat that as a maybe, not a feature.
Can I hide the Google Drive branding or the pop-out button?
No — not in the iframe embed. The player is cross-origin, so your CSS and URL parameters cannot change it. The only route to a clean player is the HTML5 video tag with the direct download URL, with the trade-offs in the section above.
What is the highest quality an embedded Drive video plays at?
1920 x 1080. You can upload 4K, and the original stays in Drive untouched, but the preview player never plays above 1080p.
Can I embed a whole Drive folder as a video playlist?
No. The preview player plays one file, and a folder has no player of its own. Link to the folder separately, or embed each video on its own.
Which video formats can I embed?
Anything Drive can play: WebM, MP4, 3GPP, MOV, AVI, MPEGPS, WMV, FLV, MTS and OGG. MP4 with H.264 video and AAC audio is the safest choice — it plays everywhere and processes fastest.
Do I need a plugin to embed Drive videos in WordPress?
No. A Custom HTML block and the iframe above is all it takes. Plugins exist that wrap the same iframe with extra options, but they do not change what Drive itself can do.
How do I share a video from a specific timestamp?
In Drive, open the video, go to the moment you want, and use Share > Copy link to this time. That link starts playback at that point — handy when you only want to point someone at one section of a long recording.
The short version
Share the video as Anyone with the link, take the file ID, and paste the preview iframe into a Custom HTML block — that is the whole method, and it works on any site that accepts HTML. Keep it responsive, lazy-load it, and test it signed out. And keep the limits in mind: 1080p playback, a cap on anonymous viewers, no autoplay you can count on, and no way to strip the Drive branding. Inside those limits it is the cheapest video player on the internet. Past them, it is time for a dedicated host — and the file is already in Drive, ready to move.
If the video is the only copy you have, sort that out first: our guide to automating cloud storage backups covers keeping a second copy without thinking about it. And if you need the file as a download link rather than a player, our step-by-step guide to creating a Google Drive direct download link walks through that in minutes.







