How to Host a Website on Google Drive for Free

Vinay Patankar November 21, 2026
Web operator presenting a website display and storage drive to explain Google Drive hosting

Google Drive web hosting is no longer a supported way to publish a public website. If you are searching for how to host a website on Google Drive for free, the current answer is that Drive stores and shares files, but Google ended its built-in web-hosting feature in 2016.

If you want free web hosting from Google for a static HTML site, use Firebase Hosting. It serves HTML, CSS, JavaScript, and media over HTTPS on a Google-provided domain, and it supports custom domains when you are ready to add one.

The distinction matters. A shared Drive folder gives people access to files. A web host receives browser requests, serves the correct file at a public URL, handles HTTPS, and returns the right content type. Making a folder public does not turn it into a web server.

How to Host a Website on Google Drive using a Google Script

The old Google Drive web hosting method no longer works. It relied on a googledrive.com/host/ address that converted a public Drive folder into a website. Google deprecated that feature and shut it down on August 31, 2016.

Historically, the easy way put all the website files in a .zip file, opened a Google Script written by Amit Agarwal, uploaded the ZIP, and returned a hosted page. The downloadable sample and public Script uploader are no longer available, so hitting upload file cannot reproduce that result.

The hard(er) way created a new folder in Google Drive, uploaded the contents of the website ZIP, opened Share and Advanced, selected Public on the web, and saved a public link. It then cut the string of letters and numbers between id= and &usp, pasted that value after googledrive.com/host/, and navigated to the new link. Both the sharing option and the hosting endpoint behind those steps have been retired.

After hitting save, the old flow allowed an actual website to appear at the changed address. That matters when reading older advice about Google Drive, Dropbox vs Google Drive, migrating to the cloud, or website hosting: a link to a folder is not an actual website, and the former host endpoint is unavailable.

Third-party scripts later tried to recreate the shortcut by reading files from Drive and serving them through another service. Those tools were never the same as native Google Drive web hosting. The ZIP uploader used by the former method is no longer publicly available, and DriveToWeb, another popular workaround, permanently shut down in 2026.

Custom-URL services such as gweb.io and GDrives also disappeared or changed purpose. Frame forwarding and shortening services can hide a long URL, but they do not turn file storage into a reliable website host, add a durable custom domain, or provide the SSL and delivery controls expected from modern hosting.

Google Apps Script can still publish a small web app, but that is a different product and a different architecture. A current Apps Script web app needs a doGet() or doPost() function, returns HTML through HtmlService, and runs inside Google’s sandbox restrictions. It is useful for a small Google-connected utility, not as a general replacement for static website hosting.

The Hard(er) Way

The current Google-supported route is Firebase Hosting. It takes a few more steps than sharing a folder, but it gives you real web hosting with HTTPS, a global CDN, versioned deployments, and a public URL.

Step 1: Prepare a static site folder

Put your site’s files in one local folder. The entry page should normally be named index.html. Keep CSS, JavaScript, images, and other assets in that folder or its subfolders. Firebase Hosting can serve static files, but server-side code such as PHP will need a different runtime.

Step 2: Create a Firebase project

Open the Firebase console, create a project, and enable Hosting. Firebase provides a project subdomain, so you can publish and test the site before buying or connecting a custom domain.

Step 3: Install the Firebase CLI

npm install -g firebase-tools
firebase login

Run these commands from a computer with Node.js installed. The login command connects the CLI to the Google account that owns your Firebase project.

Step 4: Initialize Hosting

cd path/to/your-site
firebase init hosting

Select the Firebase project you created. When the CLI asks for the public directory, choose the folder that contains index.html. If this is a plain multi-page site, do not configure it as a single-page app unless your routing setup requires that behavior.

Step 5: Deploy the site

firebase deploy --only hosting

Firebase returns a public HTTPS URL when deployment finishes. Open it in a private browser window, test every page and asset, and confirm that relative links work before sharing it. Firebase documents a no-cost allowance, but usage beyond the allowance can incur charges, so check the current plan limits for a high-traffic site.

Bonus tip:

You can connect a custom domain in Firebase Hosting and use the automatically provisioned SSL certificate. Keep the domain in your own registrar account, verify the DNS records Firebase supplies, and wait for DNS propagation before treating the new address as live.

If your site is stored in Git, GitHub Pages is another durable option for static files. If you need forms, authentication, databases, or server-side processing, choose a platform that supports those services rather than trying to stretch Google Drive into a web host.

Publishing the page is only part of the operating system behind it. If the site collects requests or starts recurring work, a workflow automation tool can route each submission, assign an owner, enforce required steps, and keep an audit trail. Process Street is a single Compliance Operations Platform with Docs and Ops capability areas plus built-in AI, so governed instructions and execution live in one product.

For more practical Drive advice, read these Google Drive tips and tricks. If the site is part of a broader publishing program, this guide to starting a company blog covers the planning and operating work around it.

Google Drive website hosting FAQs

Can I host HTML in Google Drive?

You can store and share an HTML file in Google Drive, but Drive will not serve the folder as a public website. Use a static host such as Firebase Hosting or GitHub Pages if you want the page to open at a normal web address.

Why did Google stop Drive web hosting?

Google retired the dedicated Drive hosting feature as it moved website publishing to services designed for that job. Its shutdown notice directed users toward Firebase Hosting and Google Cloud Platform.

Is Firebase Hosting free?

Firebase Hosting includes a no-cost allowance and a Google-provided subdomain. Traffic, storage, or related services beyond the current allowance can create charges, so review the current Firebase pricing page before deploying a busy site.

Can Firebase Hosting use my own domain?

Yes. Firebase Hosting supports custom domains and provisions SSL after you verify the domain and add the required DNS records.

Get our posts & product updates earlier by simply subscribing

Take control of your workflows today

Choose which optional cookies to allow. You can change or withdraw consent here at any time.