Skip to content
Hosting choices

Can you host an HTML page on Google Drive?

Old tutorials still say "put it in Drive and share the link". That stopped working years ago. Here is what happened and what to use instead.

5 min readUpdated October 2026By the HTMLtoURL.dev team
Short answer

No. Google ended web hosting from Google Drive on 31 August 2016; HTML files shared from Drive now download or display as code. Dropbox and OneDrive behave the same way. To host an HTML page, use an HTML to URL converter for a quick link, or GitHub Pages / Cloudflare Pages for a permanent free site.

What changed

Drive used to have a googledrive.com/host/… address that served files in a public folder as a website. Google announced its deprecation in 2015 and switched it off in 2016. Dropbox's Public folder, which could also serve HTML, was retired around the same time. The reason is the same in both cases: serving user HTML from a big company's domain lets anyone run scripts and build convincing phishing pages there.

What happens if you try today

  • Google Drive: the share link opens Drive's preview, which shows the source code, or prompts to download.
  • Dropbox: shows a code preview or downloads the file.
  • OneDrive / SharePoint: downloads the file; SharePoint libraries may block .html entirely.
  • Google Sites: can embed snippets of HTML in a box, but not host your HTML file as the page.

What to use instead

NeedUseWhy
Share a page today, no setupHTML upload on an HTML to URL converterUpload → link in seconds, works from a phone
Free permanent siteGitHub Pages or Cloudflare PagesFree forever, custom domain; needs an account and setup
Team-only internal pageConverter with a password, or your company intranetKeeps it off the open web
Interactive form that writes to SheetsHost the HTML anywhere + Google Apps Script web app as the backendDrive cannot serve the page, but Apps Script can receive the data
Convert your HTML to a URL now
Paste code or drop a file, ZIP or folder. Free plan, custom address, password & editing included.
Get a URL

What about Google Apps Script?

Apps Script's HtmlService can serve HTML from a script's web-app URL, and it is a legitimate free option if you already work in Google Workspace. It wraps your page in an iframe with a Google banner, has its own quirks with links and scripts, and requires you to paste the HTML into a script project — fine for internal tools, clumsy for sharing a page someone sent you.

Questions people ask

Does Google Drive still host websites?

No. Drive web hosting was shut down on 31 August 2016.

Can I share an HTML file from Dropbox as a website?

No. Dropbox shows HTML as code or downloads it.

What is the free alternative to Google Drive hosting?

For a quick link, an HTML to URL converter. For a permanent site, GitHub Pages, Cloudflare Pages or Netlify.

Read next

Paste HTML. Get a URL.

Code, an .html file, a ZIP or a whole folder becomes a live HTTPS URL with your own address, an optional password and a QR code. Free to start with Google sign-in; paid plans keep URLs online for good.

Convert HTML to URL