To host a webpage with Drive:

  1. Open Drive at drive.google.com and select a file.

  2. Click the Share button at the top of the page.

  3. Click Advanced in the bottom right corner of the sharing box.

  4. Click Change….

  5. Choose On – Public on the web and click Save.

  6. Before closing the sharing box, copy the document ID from the URL in the field below “Link to share”. The document ID is a string of uppercase and lowercase letters and numbers between slashes in the URL.

  7. Share the URL that looks like “www.googledrive.com/host/[doc id] where [doc id] is replaced by the document ID you copied in step 6.


Anyone can now view your webpage.


  1. <!DOCTYPE html>

  2. <html>

  3. <head>

  4. <meta charset="utf-8">

  5. <title>Example image from Google Drive</title>

  6. </head>

  7. <body>

  8. <h1>Example image from Google Drive</h1>

  9. /span

  10. </body>

  11. </html>