Guide
How to host an HTML file and get a link.
ChatGPT or Claude wrote you a page, and it opens fine on your laptop. To send it to someone, it needs to live on a host.
To host an HTML file, upload it to a static host, for example by dragging it into a drag-and-drop host, putting it in a GitHub Pages repository, or asking a coding agent to publish it, and you get a link anyone can open. Free options work well for a preview; a real client website usually needs its own domain, a way to update it and a history.
Why you cannot just send the file
You asked ChatGPT or Claude for a landing page, and it gave you one index.html. Double-click it and the page opens in your browser. The address bar shows a path on your own computer, though, and that path means nothing to anyone else. To host an HTML file is to copy it onto a computer that is always online, which then answers under a public address.
You could email the file itself, but then the other person has to download and open it, pictures that sit next to it on your computer will be missing, and you will send a new file for every change. A link is easier for everyone.
Get the file ready first
Name the file index.html. Hosts show that file when someone opens the bare address. Put it in a folder of its own, and if it uses pictures, put them in that folder too and make sure the file points to them by their file names, not to a place on your desktop.
Pages from chat assistants often load fonts or scripts from the internet. That works online as well. What does not work is anything that needs a server: a contact form that “saves to a database” will only look like it works. If you are unsure, ask the assistant whether the page works as a plain static file (a page that needs nothing computed on a server).
Three ways to host an HTML file online
All three give you a link. They differ in how much setup they need and how updates work.
Some static hosts let you drop a folder onto a web page and give you an address. Netlify Drop and Cloudflare Pages both offer this. It is the fastest way from file to link.
GitHub can serve the files of a repository (a project folder on GitHub) as a website at an address on github.io. It suits people who already use GitHub; there is an account and a few settings to learn.
If you work in Claude Code, Codex or Cursor, the agent can install a host’s tool and publish the folder for you. You type no commands; the agent asks before each step.
Three quick options compared
What we read on each provider’s own documentation, as of December 2026. Check again before you rely on it.
| Option | How you upload | What to know |
|---|---|---|
| Netlify Drop | Drag a folder onto its drop page, no account needed | Until you claim it by signing up, the address is protected with a temporary password |
| Cloudflare Pages | Drag a folder or zip file into the dashboard | Address ends in pages.dev; up to 1,000 files, 25 MiB per file, by drag and drop |
| GitHub Pages | Put the files in a GitHub repository | Address ends in github.io; on the free plan the repository must be public |
GitHub also says Pages is not meant as free hosting for an online business or a shop. The broader comparison of hosting kinds: how to host a website.
Paste this into your agent.
Free until a site goes live. Then $12 a month per site, plus tax.
Host an HTML file for free: what “free” means
You can host an HTML file for free in many places, and for a preview that is fine. Free usually comes with conditions, and they differ per service. Read them before you send the link to a client.
- The address belongs to the host. Your page lives at a name ending in the host’s domain, not at your own. If you move, the link changes.
- There are limits: on file counts, file sizes, traffic or builds. A single page rarely reaches them, but they exist.
- Some services restrict pages you did not claim with an account. Netlify Drop, for example, puts a temporary password on an unclaimed drop. Check whether a page without an account stays online.
- Public by default: on GitHub’s free plan, the repository with your files has to be public, so anyone can read them.
When the file becomes a real client website
Often the single page is a first draft. The café owner likes it, and now it should be the café’s website. Three things change at that moment.
First, the address. A client wants their own domain, so you need a host that connects one and sets up HTTPS for it. Second, updates. The page will change every few weeks, and dragging a new copy into a dashboard each time gets old, especially if you keep several versions of index.html on your desktop. Third, someone else will want to edit. The owner wants to change the cake of the week without calling you, and without being able to move your layout.
That is when it pays to keep the site in one folder, publish it from there with the same tool every time, and choose a host with a version history. How to publish a website walks through the steps, and let a client edit a static website covers the editing side.
Where heyweb fits
heyweb is a static host built for the coding agent way. Put the index.html in a folder, open Claude Code, Codex or Cursor there and paste the one setup sentence. The agent installs the heyweb program, you confirm once in your browser, and the page is online at an address like your-site.heyweb.page with HTTPS. Every version is kept and can be undone. The details for Claude are in publish a website built with Claude.
Previewing at the heyweb.page address is free; a live site costs $12 per month plus tax. The client chat for changing texts and pictures and your client’s own domain are in early access. If you only need a link for a quick look and nothing more, a free drag-and-drop host is the simpler choice.
Common questions
How do I host an HTML file online for free?
Drop the folder with your index.html onto a free static host, or put it in a public GitHub repository and turn on GitHub Pages. You get an address on the host’s own domain. Read the service’s limits and conditions before you share it widely.
How do I turn an HTML file into a website?
Save it as index.html in a folder with its pictures and styles, and upload the folder to a static host. The host gives the folder a public address, and that address is your website.
Can I host an HTML file from ChatGPT or Claude?
Yes. What they write is an ordinary HTML file. Save it as index.html, put any pictures in the same folder, and upload that folder to a static host.
Do I need a server to host an HTML file?
Not one of your own. A static host is a server that someone else runs for you. Your file only needs a server of its own if it has to save data, like a form that stores entries.
Can I use my own domain for a single HTML page?
Yes, with most static hosts. You rent the domain from a registrar and set the DNS records the host names. A single page and a fifty-page site are handled the same way.
How do I update the page after I have shared the link?
Upload the changed file to the same site on the same host, and the link stays the same. Uploading it as a new site gives you a new address instead.