Articles

How to host an HTML file for free: four ways, from one minute to permanent

The fastest free way to put one HTML file online is to drag it onto Netlify Drop, but unless you sign up within the hour, the site is deleted. Every free option trades a little setup for permanence. This page walks through four, in order of how quickly you get a link, and says what each one keeps and for how long. One step applies to all of them: name your file index.html, because that is the page a web server shows when someone opens the address.

A glowing amber document icon on the left with an arrow pointing to a grey outline of a globe

Before you start: make the file stand alone

1. Netlify Drop: a link in a minute, no account

Open app.netlify.com/drop and drag the folder onto the page. You get a live address ending in netlify.app straight away. Without an account, an unclaimed site is deleted within an hour, so this is for showing someone something now. Sign up and claim it to keep it; it then sits on Netlify's free plan with its monthly credit limit.

2. GitHub Pages: free and permanent, not for business

Make a free GitHub account and a public repository, upload index.html, then turn on Pages in the repository's settings. The site appears at yourname.github.io or a path under it. Sites can be up to 1 GB with a soft limit of 100 GB of traffic a month. GitHub does not allow Pages to be used as free hosting for an online business or shop, so keep it for personal pages, documentation and projects.

3. Cloudflare Pages: free, permanent, business allowed

Make a free Cloudflare account, create a Pages project, choose to upload files directly, and drag in the folder. The site gets an address ending in pages.dev, and you can add your own domain. The free plan lists unlimited bandwidth and allows commercial sites, with up to 20,000 files per site and 25 MiB per file. This is the most generous of the four if you are happy to use a dashboard.

4. Ask Claude or ChatGPT to publish it

ModelBrain Live is our product. Add ModelBrain to ChatGPT, Claude or another AI app as a connector (nothing to install: the setup guide shows each click), paste the HTML or attach the file, and say "publish this". Live puts it online at yourname.modelbrain.app; publishing the same name again updates it. With the ModelBrain app on your computer, Claude can also publish a file straight from a folder: "publish menu.html from my Downloads".

What you get beyond the hosting:

The free plan is one site with a small badge, no card and no time limit; business use is allowed. Up to 25 MB per publish.

Which to choose

Four free ways to host an HTML file, from each provider's documentation as of November 21, 2026.
OptionAccount neededHow long it stays upBusiness use
Netlify DropNo, to startDeleted within an hour unless claimedYes, once claimed
GitHub PagesYesUntil you remove itNo
Cloudflare PagesYesUntil you remove itYes
ModelBrain LiveYes, an email sign-inUntil you remove itYes

Sources

Common questions

How can I host an HTML file for free? Rename it index.html and upload its folder to Cloudflare Pages or GitHub Pages, both free and permanent. For a link in a minute with no account, drag it onto Netlify Drop, but claim the site within an hour or it is deleted.

Why does my page show without its pictures? The images are probably referred to by a path on your own computer. Put them in the same folder as index.html, refer to them by file name, and upload the whole folder.

Can I host a business page on GitHub Pages? No. GitHub says Pages is not intended for or allowed as free hosting for an online business or e-commerce site. Cloudflare Pages allows commercial sites on its free plan.

Can I make a form on a static HTML page work? Not on its own; something has to receive the message. On ModelBrain Live any form with method="post" emails each message to you. On other hosts you add a form service or a serverless function.

Can Claude publish an HTML file for me? Yes, with ModelBrain Live. Ask Claude on your computer to publish the file or its folder, and it goes online at yourname.modelbrain.app.

Last checked November 21, 2026.