To host an HTML file free and turn it into a URL anybody can open, it has to
live on a server that is always on, at an address anybody can type. The quickest free way is to let an
AI assistant publish it: paste one line into an assistant that can send files,
give it your index.html, and it comes back with a live, secure address. Your
own domain name can point at it on the free plan.
Why opening the file is not the same
Double-click an HTML file and your browser shows it perfectly. The address bar
says something like file:///C:/Users/you/Downloads/index.html, and that
address only works on your computer. Send it to a friend and they get nothing.
A website needs three things the file on your desktop does not have: a computer that is always on, an address that points to it, and a certificate so browsers show the padlock instead of a warning. Hosting is those three things.
Turn an HTML file into a URL: the ways to do it
| Way | Effort | What you get |
|---|---|---|
| Drag it onto a free static host | Make an account, upload, repeat for every change | A free address on that host |
| Put it in a GitHub repository and turn on Pages | Learn Git, or at least its website | A free address on github.io |
| Let your AI publish it | Paste one line once | A free address, your own domain on the free plan, and changes published by asking |
The first two are good, well established and free. What they share is that every change is yours to make and upload. If an AI wrote the file, it can also publish the next version, and the version after that.
Step by step
- Sign up with a Google account and copy the line on your dashboard.
- Open an assistant that can publish. Antigravity is free; Cursor, Claude Code and ChatGPT with Codex work too.
- Paste the line, then give it the file: "Publish this index.html as my website." If there are images or a stylesheet alongside it, include them.
- It publishes and gives you the address, ending in
.dashploy.app.
To change the page later, ask for the change. The assistant edits the file and publishes it again. Every version is kept, so yesterday's can be put back.
One file or several?
A single HTML file with its styles written inside it works as it is. If it loads a separate stylesheet, script or images, those files need to go with it, at the same paths the HTML expects. Your assistant handles that when you give it the whole folder.
The only requirement is that the main page is called index.html, because that
is the file a browser asks for when somebody types the bare address.
Your own domain name
The free plan includes one custom domain (free website hosting with a custom domain covers it in full). If you already own a name, ask your assistant to connect it and it will tell you the record to add where you bought the name. The certificate is issued automatically.
Questions people ask
Is there a limit on how big the file can be?
A single page is nowhere near any limit. On the free plan each website can use up to 50 MB, and each file can be up to 10 MB.
Can I host more than one HTML page?
Yes. A site can have as many pages as you like, linked to each other. The free plan holds two separate websites.
Will it show up on Google?
It can, once somebody links to it or you submit it to Google Search Console. Being online and being found are different steps; the first one is this page.