How to Embed a Google Drive Video in WordPress (Quick & Easy Guide)

Want to show a video from your Google Drive on your WordPress site? We often get asked as we operate as website maintenance agency for our customers but you can do it your self of course.

It only takes a few steps. You don’t need a fancy plugin or any deep tech skills. Just a shareable link, a little copy-paste, and your video is live.

Upload Your Video to Google Drive

First, make sure your video is saved to Google Drive.

  1. Go to drive.google.com
  2. Click the + New button
  3. Choose File upload
  4. Select your video file
  5. Wait for it to finish uploading

Once it’s uploaded, you’re ready to get the embed link.

This step lets others (like your site visitors) view the video.

  1. Right-click your uploaded video
  2. Click Get link
  3. Under “General access,” set it to Anyone with the link
  4. Click Copy link
  5. Hit Done

But here’s the thing: that link is for viewing, not embedding. So now we need to create an embed code.

Generate the Embed Code

Google Drive doesn’t give you an embed code directly from the file menu. But don’t worry—you can do it manually.

Here’s the format:

<iframe src="https://drive.google.com/file/d/FILE_ID/preview" width="640" height="480" allow="autoplay"></iframe>

But you’ll need to replace FILE_ID with your video’s real ID.

How to find the file ID:

  • Paste the share link you copied earlier into a browser tab.
  • It will look something like this:
https://drive.google.com/file/d/1AbCDeFGhIjKlMnOPqRst/view?usp=sharing

That long mix of letters and numbers between /d/ and /view is your file ID. In this case, it’s:

1AbCDeFGhIjKlMnOPqRst

Now just plug it into the embed code:

<iframe src="https://drive.google.com/file/d/1AbCDeFGhIjKlMnOPqRst/preview" width="640" height="480" allow="autoplay"></iframe>

You can also adjust the width and height if you want the video bigger or smaller.

Add the Embed Code to Your WordPress Page or Post

Now let’s put it on your site!

If you’re using the Block Editor (Gutenberg):

  1. Open your page or post
  2. Click the + button to add a block
  3. Search for Custom HTML
  4. Paste the iframe code you just made
  5. Click Preview to check it
  6. Hit Update or Publish when it looks good

If you’re using Classic Editor:

  1. Switch to the Text tab (not Visual)
  2. Paste the iframe code
  3. Save or update your post

Boom. Your Google Drive video should now show up right on the page.

Things to Keep in Mind

  • Google Drive limits: If too many people view or download the video in a short time, Google might block access temporarily. It’s not built for high-traffic video streaming.
  • Permissions: Always double-check that the video is shared with “Anyone with the link.” If not, your visitors will see an error.
  • File size: Large videos might load slowly. Compress them first if possible.
Facebook
Twitter
LinkedIn
Pinterest

Table of Contents