Host a Website on Google Drive For Free

If you have a static website created in HTML and CSS  and want to host it on the Internet, then Google Drive is the place you are searching for.By static website I mean it is created purely in HTML and CSS with no dynamic scripting language like php or you can host web pages with javascript included in them.
Before starting the tutorial, I want to make one thing clear that this in not a kind of professional web hosting you get on some other web hosting sites.This can be helpful to you if you created some web pages offline and want to share them with your friends or this will really helpful if you are working some web project and want to show your progress to your team members.I will demonstrate this tutorial by uploading few webpages that I had created offline.

  • First put all your webpages(.html &.css extension) and images in a single folder.Go to and Click Create,Select Folder and Name the folder .Here I am going to name it My website.
Creating a folder in google drive
  • Now you need to make this folder public so that anyone who has its URL address can access it.Right click on the folder and select Share.Select Change and change the access from private to public on the web.Save the settings.
Making Folder public in google drivechanging from private to public access in google drive
  • Your newly created folder will appear in the list .Just click it to open the folder.Now click on the small upload button on the left top corner and select files.A pop up window will open.Go to the local folder you created in above step and Select all the webpages and images(ctrl+A) and press open.Your web pages and images will start uploading on the google drive.Wait until the uploading of all files finished. 
uploading files to google driveupload progress to goggle drive
  • Now Click on the homepage of your site(generally index.html). When opened ,select blue open button on below-right corner.This will show you the coding of your main homepage.Select Preview and this will open the main page of your website.Copy the URL in the address bar.Sent this URL to anyone who want to view your website.All the other pages of your website can be reached through links on the main page.
files in google driveopening files in google drivecopying the url
The URL link is long but you can convert it into shorter one using a service such as Bitly( before sharing.

Leave a reply