Website Generator AI
Guide

How to put a single HTML file online for free

Three ways to publish one HTML file, with the limits each host states in its own documentation.

5 min read. Updated 4 December 2026.

A page from the website generator is a single file with no server code: no database, no PHP, no build step. That means any static host can serve it, and several have free plans. Below are three common options and what each states in its own documentation, checked on 4 December 2026. Hosting terms change, so read the linked page before you rely on one.

First: name the file index.html

Most static hosts serve a file called index.html when someone visits the root of your site. Rename your download to that name. If a host asks for a folder rather than a file, create a new folder, put index.html inside it, and upload the folder.

Option 1: Netlify Drop

Netlify documents creating a site by dragging a project folder that contains your site files onto Netlify Drop, and says a dropped folder can be deployed with no account required. It also notes that if you drop a project without being logged in, Netlify publishes the files as-is. Source: Netlify Docs, create deploys.

  1. Put index.html in a folder.
  2. Open Netlify Drop and drag the folder onto the page.
  3. Open the address it gives you and check the page.

This is the fastest way to see your page online. If you want to keep updating it, or connect your own domain, sign in so the site is tied to your account.

Option 2: Cloudflare Pages (Direct Upload)

Cloudflare Pages accepts a zip file or a single folder of assets by drag and drop in the dashboard. Its limits page says Pages sites can hold up to 20,000 files on the Free plan, and that the maximum size for a single asset is 25 MiB; the Direct Upload page lists 1,000 files for drag and drop. Cloudflare also notes that new static sites can use Workers Static Assets instead. Sources: Direct Upload and Pages limits.

A one-page site is one file of a few kilobytes, so these limits will not matter unless you add a lot of large photos. You need a Cloudflare account for this option.

Option 3: GitHub Pages

GitHub Pages publishes files from a repository. GitHub says that if the account that owns the repository uses GitHub Free, the repository must be public, and that Pages sites are publicly available on the internet even when the repository is private. Sources: Creating a GitHub Pages site and About GitHub Pages.

  1. Create a new public repository.
  2. Upload index.html through the web interface.
  3. Turn on Pages in the repository settings and choose the branch to publish.

Read GitHub's usage notes on the About page, since Pages is aimed at project and personal sites. A public repository also means anyone can see the file, which is fine for a public web page but worth knowing.

Which one to pick

Using your own domain

All three let you connect a custom domain. You add the domain in the host's dashboard, then create the DNS records it shows you at your domain registrar. Each host documents its own steps; follow those rather than a generic guide, because the record values differ between hosts. Changes to DNS can take a while to reach everyone, so do it a day before you print new business cards.

Updating the page later

When your hours or prices change, regenerate the page (or edit index.html in a text editor) and upload the new file the same way. On GitHub Pages, upload over the old file. On Netlify and Cloudflare, create a new deploy with the updated folder.

Common problems after publishing

Before you publish