Guide

How to publish a website made with ChatGPT.

ChatGPT can write the pages. Getting from a chat to an address you can share works in three ways, and which one fits depends on your plan and on where the files are.

TL;DR

A website made with ChatGPT gets online in one of three ways. On a paid plan, ChatGPT Sites publishes what you build there at an address from OpenAI. Code from a normal chat you save as files and upload to a static host. Or OpenAI’s coding agent Codex, working in a folder on your computer, runs the upload for you.

A website made with ChatGPT: what you have

You described a page for your café, your studio or a friend’s wedding, and ChatGPT answered with code. Now you want to know how to publish a website made with ChatGPT, so that anyone can open it in a browser. The short answer: the code ChatGPT wrote is the website, and it has to end up on a host. Either OpenAI hosts it for you, or you save it as files and put them on a host you choose.

In ChatGPT, code appears in code blocks. According to OpenAI’s help center, you can copy a code block, and for HTML pages you can switch to a Preview to see the result inside ChatGPT. That preview runs in a sandbox, a closed-off area inside ChatGPT. It is not a website with its own public address.

A chat in your browser also cannot reach the folders on your computer or run a program there. So a normal chat cannot send your files to a host of your choice. Either OpenAI hosts the site with ChatGPT Sites, or the files leave the chat: by your hand, or through a coding agent that runs on your computer.

Can ChatGPT build a website?

Yes, for a certain kind of website. Can ChatGPT build a website with a few pages, a menu, a gallery and a contact link? It can write the HTML (the structure and text), the CSS (the look) and small scripts. That is a static website: finished files, with nothing computed on a server when a visitor arrives. Most portfolios, café pages and landing pages are like that. More on the idea in what is a static website.

What a chat does not give you is the rest of the job: the pictures as files, the folder structure, a host, an address, and a way to change the site next month. A shop with a checkout or a page with logins also needs code on a server, which is a different project.

ChatGPT Sites: when OpenAI hosts it

Since 2026 OpenAI has hosting of its own. Its help center describes ChatGPT Sites as a way to create, preview, publish and share interactive websites and lightweight apps, on ChatGPT web and in the ChatGPT desktop app. It is available to Plus and Pro accounts and to Business and Enterprise workspaces, and not on the Free or Go plans.

A new Site is private at first. When you publish it, ChatGPT gives it an address of its own, and where public publishing is enabled you can set it to Public, so that anyone with the link can view it. Where custom domains are available, you can connect a domain you already own. You change the Site later in ChatGPT, and you can give Editor access to a member of your own ChatGPT workspace.

If you have one of these plans and the site should simply be online, this is the shortest way, and you need nothing else. The two ways below are for the other cases: you are on the Free or Go plan, you already have the code as files, you want to choose the host yourself, or someone outside your ChatGPT workspace, such as a client, should change the content later. We read this on OpenAI’s help pages on 3 December 2026. Plans and availability change, so check there before you count on it. How Sites and heyweb differ for a client website is in heyweb or ChatGPT Sites.

How to turn HTML from ChatGPT into a website

This way works with any static host and needs no new tools. It takes a little care with file names.

  1. Step 1: Make one folder

    Create an empty folder on your computer, for example cafe-site. Everything the site needs goes in here.

  2. Step 2: Save each file

    Copy each code block into a plain text editor and save it under the name ChatGPT used: index.html for the home page, style.css for the styles, and so on. Save as plain text, not as a word processor document.

  3. Step 3: Add the pictures

    ChatGPT often writes placeholder picture names. Put your real pictures in the folder (or a subfolder like images) and make sure the names in the HTML match exactly, including capital letters.

  4. Step 4: Open it locally

    Double-click index.html. Your browser shows the site from the folder. Click every link and check every picture before anything goes online.

  5. Step 5: Upload the folder

    Choose a static host (a service that serves finished files) with a drag and drop upload, and drag the folder in. It gives you an address, usually on its own domain.

  6. Step 6: Check the live site

    Open the address on your phone and on a laptop. A broken picture online usually means a file name with different capitals or a path that points outside the folder.

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.

Free until a site goes live. Then $12 a month per site, plus tax.

Or let Codex do the upload

OpenAI also makes Codex, a coding agent. OpenAI lists several places to use it: the ChatGPT desktop app, a command line tool (the Codex CLI), an extension for code editors, and Codex Cloud. On your computer, OpenAI’s documentation says Codex can inspect files, make edits and run the tools already installed on your machine. That is exactly the step a chat in the browser cannot do.

With Codex, there is no copying of code blocks. You open the folder of your site, ask for the changes you want, and Codex writes the files there directly. By default it asks you before it runs commands that need network access, so you see each step before it happens.

To publish, Codex needs a host it can send the folder to. OpenAI’s own is ChatGPT Sites: in the desktop app you can ask Codex to build a Site and deploy it there, on the plans that have Sites. Any other host with a command line tool works too, if you know how to set it up. With heyweb, you paste one sentence into Codex and it does the setup, see publish a website built with Codex.

Three ways to publish, compared

All three end with a live address. They differ in what you need, in what you do by hand and in what happens at the next change.

ChatGPT SitesCopy and upload by handCodex with heyweb
What you needA Plus, Pro, Business or Enterprise planA static hostCodex on your computer
Where the files come fromChatGPT builds the SiteYou copy code blocks into filesCodex writes them into your folder
Who puts it onlineChatGPT, when you publishYou, in the host’s dashboardCodex, after you approve
Next changeChange it in ChatGPT, publish againEdit or regenerate, then upload againAsk Codex, it publishes again
Who else can editEditors from your own ChatGPT workspaceNobody; you make every changeYour client by chat, in early access

For a single page that rarely changes, the hand way is fine. For the general steps with any host, see how to publish a website.

Common problems after publishing

Most problems come from the gap between a chat and a folder. A few checks save time.

  • Pictures do not show: the HTML points to a file name that does not exist in the folder, or the capitals differ. Hosts are stricter about capitals than your laptop.
  • The page looks unstyled: the stylesheet was not saved, or it was saved under another name than the one in the HTML.
  • A second page is missing: ChatGPT linked to about.html but only gave you index.html. Ask for the missing page, or remove the link.
  • The site is a single file: that works too. The steps are the same, only shorter; see host an HTML file.
  • Placeholder text is still there: search the files for words like lorem, example or your-email before you share the address.

Where heyweb fits

heyweb is a host for static websites built with coding agents. It does not take code pasted from a chat. It fits once you work with an agent that can run commands on your computer: Codex, Claude Code or Cursor, and any other agent that can do that. You paste one sentence, the agent installs the small heyweb program, you confirm once in your browser, and the site is online at an address like your-site.heyweb.page.

Every version is kept in a history and can be undone. If the site is for a client, heyweb’s client chat lets them change texts, pictures and prices without touching your design; it is in early access, as is your client’s own domain. Building and previewing is free, a live site costs $12 per month plus tax. If your site is one page that never changes and you are happy uploading by hand, a free static host is the simpler choice. If you build in ChatGPT on a paid plan and nobody outside your workspace has to edit, ChatGPT Sites is.

Common questions

How do I publish a website made with ChatGPT?

On a Plus, Pro, Business or Enterprise plan, build it as a ChatGPT Site and publish it there. Otherwise save the files ChatGPT wrote into one folder with index.html at the top and upload the folder to a static host. Or let Codex do it: on your own computer it can send the folder to heyweb and tell you the address.

Can ChatGPT build a website?

Yes. In a chat it writes the files of a static website: HTML, CSS and small scripts. On paid plans, ChatGPT Sites also builds and publishes a site for you. Files from a normal chat you upload yourself or hand to a coding agent such as Codex.

Can ChatGPT host my website?

On paid plans, yes: ChatGPT Sites publishes a site you build there at an address from OpenAI. It is not available on the Free or Go plans. The preview of a code block in a normal chat is not a public address; those files have to go to a host.

How do I turn HTML into a website?

Save the HTML as index.html in a folder with its styles and pictures, open it once in your browser to check it, and upload the folder to a static host. The host gives you an address you can share.

How do I host HTML from ChatGPT for free?

Many static hosts have a free plan with an address on their own domain. Read the limits of the free plan before you give the address to a client, and remember that your own domain is rented separately.

Is Codex part of ChatGPT?

OpenAI offers Codex in the ChatGPT desktop app, as a command line tool, as an editor extension and in the cloud. To publish with heyweb, use it on your own computer, where it can run the heyweb program.

Keep reading

Publish the next one by saying so.

Add heyweb to your agentSee how it works

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.
  1. Paste it
  2. Connect with your email
  3. Your site is online

Free until a site goes live. Then $12 a month per site, plus tax. How setup works