How to publish HTML files online
You have an HTML file, or a folder with HTML, CSS, JavaScript and images. Double-clicking it opens it in your browser, but the address starts with file:// and nobody else can see it. Here is how to publish it so anyone can.
What "publishing" an HTML file means
Your files need to be copied to a host: a computer that is always online and sends them to visitors. The host gives your site an address, and should give it https so browsers trust it. That is all publishing is. The hard part is usually the setup around it.
If an AI made the files in a chat
This is the easiest case. Add Publish with chat to the AI you used (steps for ChatGPT, Claude and Gemini), go back to that chat and say:
Publish this website with Publish with chat and give me the preview link.
The AI sends the files to us and you get a preview link back in the chat.
If the files are already on your computer
You can still publish them through your AI, even if they were made somewhere else:
- One file or a few files. Attach them in a chat with Publish with chat switched on, and ask the AI to publish them as they are.
- A whole folder. Put the folder in a .zip, attach it, and ask the AI to publish it. Or ask the AI for an upload link and drop the files on that page in your browser.
- A coding assistant project. If the files are in a folder Claude Code is working in, ask it to publish them directly.
Make sure the main page is called index.html. That is the page visitors see first. If you are not sure, ask the AI to check and rename it.
Check the preview, then go live
The preview is the real published site, free for 48 hours with no card. Open it on a phone and a computer and click every link: a link that worked on your computer can break online if a file is missing or named differently. The preview comes with a readiness check that flags broken links and missing basics.
When it is right, open the go-live link, sign in and subscribe for £14.99 a month. Your files are online at their own address with https. You can connect a domain you already own, or buy one from your dashboard.
What kinds of files work
HTML, CSS, JavaScript, images and PDFs. Anything that runs in the browser works, including simple tools and calculators. Files that need a server to run, such as PHP, or a database, will not work. Cookies and browser storage only work once the site is on your own domain.
Updating your files later
Ask your AI to change the site and publish again, or attach the new files and ask it to publish them. Every version is kept, and you can go back to an earlier one in one click.