Host images via Google Drive


Learn how to host your images on Google Drive and create public image URLs.

15 May, 2021 · 2 min read

The other day I was playing around with some image effects and needed a host to serve them from an online place.

Don’t get me wrong. I know there are many tools and websites to do this for you. Yet I learned that Google Drive could also be an image host.

As a person who owns unlimited Google storage, it was worthwhile giving it a go.

Hosting public images on Google Drive

So today, I’ll be showing you how to host images on Google Drive and have them available for everyone.

Firstly open your Google drive and upload an image.

For this purpose, it doesn’t matter if it’s in a folder or not.

Image uploaded in Google drive

That’s part one. Now, we can click the picture and select the sharing option.

Google drive share button

I changed the option to everyone with the link to be on the safe side. You’ll get a link like this:

Create public Image URL hosted on Google Drive

In the link, the part after the /d/ is what we are looking for, as it’s the unique ID of the image.

We can copy the unique ID and create the following image URL:{ID}

So in our case, we get a link like this:

And we can use the image as such:

Image of yes I do host on Google Drive

And that’s it. You’re now able to use your Google Drive to host images for you.

Thank you for reading, and let’s connect!

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter

Spread the knowledge with fellow developers on Twitter
Tweet this tip
Powered by Webmentions - Learn more

Read next 📖

I wrote 1000 articles, what’s next?

22 Dec, 2022 · 3 min read

I wrote 1000 articles, what’s next?

Vendure community and more

21 Dec, 2022 · 2 min read

Vendure community and more

Join 2098 devs and subscribe to my newsletter