How to Host Your Website on Google Drive for Free
A complete step‑by‑step guide for beginners. Get your static website online using Google Drive and a simple third‑party service – no paid hosting required.
Prepare Your Website Files
Google Drive can only host static websites (HTML, CSS, JavaScript). You cannot run server‑side code like PHP. Make sure your site is just a collection of plain files.
Below is a simple HTML template you can copy and use. It includes a basic webpage with a heading and some text.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Google Drive Website</title>
<style>
body { font-family: Arial, sans-serif; text-align: center; padding: 50px; background: #f9f9f9; }
h1 { color: #4285F4; }
</style>
</head>
<body>
<h1>🚀 My Website is Live on Google Drive!</h1>
<p>This is a free hosted static site.</p>
</body>
</html>
Upload Files to Google Drive
Go to drive.google.com and log in with your Google account. Create a new folder (e.g., "my-website") and upload all your website files into it.
- Click New → Folder and name it.
- Open the folder, then drag & drop your files, or use New → File upload.
- Make sure you upload index.html and any linked CSS/JS/images.
Share the Folder & Get a Raw Public URL
Right‑click your website folder and select Share → General access. Change from "Restricted" to "Anyone with the link". Copy the link.
This link is a Google Drive folder link, not a direct website URL. We will convert it in the next step. However, you can test if the files are accessible by opening the link in an incognito window.
If you want to see the raw index.html content, you can use the direct file link format:
https://drive.google.com/uc?export=view&id=YOUR_FILE_ID
(Replace YOUR_FILE_ID with the file's ID from the share link)
But this only shows the file content, not a proper website. For a real hosted site, move to Step 4.
Use drv.tw to Get a Real Website URL
drv.tw is a free service that turns your Google Drive folder into a working website with a custom subdomain. It's the easiest method for hosting.
- Go to drv.tw and click "Get Started".
- Sign in with your Google account and allow the necessary permissions.
- Click "Connect Google Drive" and select the folder you created.
- Choose a subdomain (e.g., mywebsite.drv.tw) and click "Create Site".
Your website will be live at that URL within a few seconds. You can now share the link with anyone.
Test Your Website & Common Fixes
Open your new drv.tw URL in a browser. If it doesn't load correctly, check the following:
- Index file missing? Make sure there is an
index.htmlin the folder. - Broken images or styles? Use relative paths (e.g.,
./style.cssor juststyle.css). - Folder not public? Double‑check that the folder is shared with "Anyone with the link".
- Still not working? Disconnect and reconnect the folder in drv.tw dashboard.
Final Checklist & Useful Resources
Before sharing your site, go through this checklist:
- All files uploaded to a single Google Drive folder
- Folder is shared publicly ("Anyone with the link")
- drv.tw site created and connected to that folder
- index.html is present and correctly named
- All internal links use relative paths
- Tested in incognito window
Useful Links:
Key Takeaways
🚀 Start Hosting Your Website for Free
Now you know how to turn a simple Google Drive folder into a live website. Grab your files and give it a try – it only takes a few minutes.



Join the tech debate...
We love a good discussion, but please keep it respectful and relevant to the topic. Vulgarity, personal attacks, and spam will be removed. Let’s keep the community smart, helpful, and welcoming to all tech fans!