Embed Google Drive Images in HTML Emails

Published:
20 Jun 2025
Updated:
02 Apr 2026

Google Drive sharing links are designed for viewing in a browser — not for embedding in <img> tags. Using a standard share URL as an image source will result in a broken image in your email.

The Problem

A standard Google Drive share link looks like this:

https://drive.google.com/file/d/[IMAGE_ID]/view?usp=sharing

This URL opens a Drive preview page — it does not return the raw image file. Browsers and email clients cannot render it as an image.

The Fix

Change the URL format to use the direct export endpoint:

https://drive.google.com/uc?export=view&id=[IMAGE_ID]

Then use it in an <img> tag:

<img src="https://drive.google.com/uc?export=view&id=[IMAGE_ID]" alt="Description">

How to Find the Image ID

  • Right-click the image in Google Drive → Share → Copy link
  • The link looks like: https://drive.google.com/file/d/1aBcDeFgHiJkL/view
  • The bold part between /d/ and /view is your IMAGE_ID

Important: File Must Be Public

The image file must be shared publicly — set sharing to Anyone with the link in Google Drive. Otherwise the image will not load for email recipients.

Pro Tips

  • Always use an HTML email converter (e.g. Maizzle, MJML, or Litmus) — raw HTML emails render differently across clients.
  • Add width and height attributes to your <img> — email clients often block CSS dimensions.
  • Google Drive direct links can be slow or blocked by some corporate email filters — for critical emails, host images on your own server instead.
Matus Trgina
- Founder of Shapeusto

Get it done.

Pause or cancel any time

If you don't need our services, there's no reason to pay. Just pause your subscription.

48 hour average delivery

We work incredibly fast. We can create most tasks within 48 hours.

Unlimited requests

Simply enter the number of tasks you need to solve, and we'll take care of all of them.

Unlimited users

An unlimited number of team members can add tasks to us.

Pause or cancel anytime

If you don't need our services, there's no reason to pay. Just pause your subscription.

48 hour average delivery

We work incredibly fast. We can create most tasks within 48 hours.

Unlimited users

An unlimited number of team members can add tasks to us.

Unlimited requests

Simply enter the number of tasks you need to solve, and we'll take care of all of them.
Headquartered in European Union, Slovak Republic
© 2026 Shapeusto. All rights reserved