Quick Embed Code Generator for Google Drive and OneDrive

Supports: Google Drive, OneDrive - images, videos, files, folders

Example links:

Ensure the link is shared publicly to generate embed code.

How to Use the Embed Code Generator

  1. Get the shareable link from Google Drive or OneDrive (make sure the access is set to public or allows embedding).
  2. Paste the link into the input field above.
  3. Click "Generate Embed Code" to get your embed code.
  4. Copy the embed code and paste it into your website to display the content.

Frequently Asked Questions About Google Drive

Everything You Need to Know About Embedding Images From Google Drive

You've used Google Drive to store documents, images, videos and other important files. You can share Google Drive images with anyone, but there's no simple way to embed images stored on Google Drive into your website or email.

The HTML embed code for images can be used with Gmail Mail Merge, Document Studio, Google Forms Notifications, File Upload Forms or anywhere else you want to embed Google Drive images directly.

How Does the Embed Code Work?

Visit drive.google.com, right-click on any image file and select "Get link" to get the shareable link. Make sure the access is set to "Anyone on the internet with this link can view". Paste that link into the input field above to generate the HTML embed code.

Google Drive Embed Application

The Google Drive embed tool runs on Google Cloud Run, using Google's Puppeteer library to load the image page, extract oEmbed meta tags and convert the URL into an HTML tag for embedding.

Tutorial: Create Google Drive Image Links

Make sure your image has a public share link, then paste the link into this tool to get the corresponding embed code.

Limitations to Be Aware Of

The embed tool only works with individual images on Google Drive, not photo albums. Also, it doesn't work with private images.

Private Images

Your images are not stored anywhere and this application does not retain your image data.

Frequently Asked Questions About OneDrive

1. What is OneDrive?

OneDrive is a free cloud storage service provided by Microsoft that allows you to store, share and access files anytime, anywhere across multiple devices.

2. How to get shareable links from OneDrive?

  1. Log in to OneDrive.
  2. Right-click on the file or folder you want to share.
  3. Select "Share" → "Copy link".
  4. Paste the link into the embed tool to create an iframe.

3. How to embed files from OneDrive into a website?

You need an embeddable share link. Our tool will automatically convert OneDrive share links into embeddable iframe code that can be directly inserted into your webpage.

4. What types of files can I embed from OneDrive?

You can embed:

  • Images (.jpg, .png...)
  • Videos (.mp4, .mov...)
  • Documents (.docx, .pptx, .pdf...)
  • Folders (as file browser interface if shared publicly)

5. My file won't display properly?

Some possible reasons:

  • File isn't shared publicly.
  • Share link isn't in the correct embed format.
  • Browser doesn't support the file format.

You should check the sharing permissions in OneDrive (select "Anyone with the link").

6. Do I need a Microsoft account to use this tool?

Not for the tool itself. You only need the share link from OneDrive. However, to create or get share links, you'll need to log in to your Microsoft account.

7. Are there any limitations when embedding OneDrive?

Microsoft may limit some embedding features for:

  • Very large files
  • Private files
  • Organizational accounts with external sharing restrictions

If you encounter errors, try using a personal account and ensure files are set to public sharing.