How To Embed An Image From Google Drive

How To Embed An Image From Google Drive

You can store photos and other images on Google Drive, but Google doesn’t offer an easy option for embedding that image on another web page (as it does for videos or PDF files). Google Operating System outlines a URL hack which allows you to include pictures stored on Google Drive in other pages.

If you edit an uploaded picture, you’ll see a URL in the form

where FILEID is a very long sequence of characters. Edit this so it reads

Note that this will only work if you set the access permissions on the uploaded image to be public; a private file (which is the default) won’t work. It’s unlikely you’d permanently store images on Google Drive for use on a web site, but it could be useful in some circumstances.

Permalinks for Google Drive Images [Google Operating System]


  • You can use, it got updated and now allows users to log in with their google drive account and share the list of files instantly, getting for each file “View” & “Download” short permalink.

    There’s also the old solution (login to Google Drive, set everything to “Public on web”, copy share link, convert it into the textarea in the homepage), but it’s just a waste of time, you should try “MyDrive” api.

    You should write a post about it. It’s more user/mobile friendly and complete.

  • I could not get this to work for me, but this discussion from 2012 worked for me so well.

    “Yes, it’s possible. Provided that you put your files in a public folder, you can get any file in a folder by this URL:

Show more comments

Log in to comment on this story!