Put a website ChatGPT made online
ChatGPT can write a whole website, but it can't host it. Sharing the chat only shows people the conversation, not a website at its own address. To get a real site that anyone can open, the code needs a home on the web. It takes a few minutes, and it can be free.
1. Ask for the right kind of website
Websites made of plain HTML, CSS and JavaScript go online as they are. Some answers come as a React component or a project that needs building, which is more work to publish. If you haven't started yet, or ChatGPT gave you something you can't open, ask for this:
Make it a plain HTML website: one
index.htmlfile with the CSS and JavaScript inside, no React, no build tools and no server code. Give me the complete file.
For a site with several pages, ask for each page as its own complete file, with the menu linking them by name
(about.html, contact.html).
2. Get the files out of the chat
- One file: click the copy button on the code block, paste into a plain text editor and save
it as
index.html. On Windows use Notepad; on a Mac use TextEdit after Format → Make Plain Text. Don't use Word. - Several files: save each one with exactly the name ChatGPT used, all in one folder, with the
home page called
index.html. - A download: ChatGPT can also make the file for you. Ask "give me the website as a downloadable .zip with index.html at the top level". Download links in ChatGPT don't last; if one stops working, ask it to make the file again.
- Only a preview, no code: ask "show me the complete HTML source".
Open index.html in your browser. If it looks like it did in ChatGPT, it's ready.
3. Put it online
- Create a free Pagehaus site. The name you choose becomes its address, like
https://yoursite.pagehaus.site/. - On the site's Files tab, drag in your
index.html, the folder, or the .zip. It replaces the starter page. - Open your address. The website is live, with HTTPS, and you can send the link to anyone.
No files on your computer? Open index.html on the Files tab, select everything in
it and paste ChatGPT's code over it, then save.
4. Change it later
- Small edits: change the text right on the Files tab, with a live preview. Every save is kept in version history, so you can always go back.
- Bigger changes: paste the current file into ChatGPT, say what to change, and ask for the complete updated file. Then replace the file on your site.
- Let ChatGPT publish it: in ChatGPT's developer mode you can add Pagehaus as a connector. Then you can say "update the opening hours on my site" and it changes the files itself. See connect an AI assistant.
5. Before you share it
A few things ChatGPT often adds that won't work on a website as they are:
- A contact form that posts to a PHP file, or to a form service with
YOUR_FORM_IDstill in it. On Pagehaus, ask ChatGPT: "make the form post to /_form/contact with method post", and messages are emailed to you. - Pictures from placeholder sites, or ones that only existed in the chat. Upload your own
photos next to
index.htmland ask ChatGPT to use their file names. - An API key in the code, for example to call ChatGPT from the page. Don't publish that: anyone can read a web page's code, key included.
Something broken once it's online? See why an AI-made website works on your computer but not online, with the fix for each symptom.
Your own domain
On a Personal or Pro plan, connect an address like yourbakery.com under the
Domains tab; HTTPS is set up for you. See custom domains.
Made your site with Claude instead? The steps are in publish a
website ChatGPT or Claude made.