ChatGPT made me a website: how do I publish it?
Save what ChatGPT gave you as index.html, drop the folder on dropthehassle.com, and it's online on a free HTTPS link in minutes; add your own .com for €19 / $19 a year when you want it. You don't need Plus, FTP or a hosting plan for any of it.
If you pay for Plus or higher, there's a second option: ChatGPT Sites can host it on a chatgpt.site address and connect a domain you already own. You buy that domain somewhere else and add the DNS records yourself. With Plus and a domain already in hand, that works fine; when Sites makes sense is further down.
Your AI can publish. It can never spend your money.
Built it with ChatGPT, Claude, Gemini, Cursor, Replit, v0, Windsurf or by hand? Same steps.
Last updated: 20 October 2026. ChatGPT Sites facts are from OpenAI Help (help.openai.com/en/articles/20001339, checked 20 October 2026) and the Sites guide (learn.chatgpt.com/docs/sites).
Built it with Codex instead? Deploy a Codex-built site to your own domain.
ChatGPT gave me code blocks, a zip or a Canvas: what to do with each
ChatGPT hands you code, not a website that's already live somewhere. Here's what to do with each thing it might give you:
- One HTML code block. Hit Copy or Download on the block and save it as
index.htmlin a new, empty folder. Done. - Separate blocks for HTML, CSS and JavaScript. Save each one under the name the code uses, such as
style.cssandscript.js, all in the same folder. Or save yourself the bother and ask:Rewrite this as one self-contained index.html with all CSS and JavaScript inline.
- A zip. Unzip it and look for the folder with
index.html. Apackage.jsonin there means it needs a build first: runnpm run build, then use thedistfolder. - A Canvas. The preview only shows inside ChatGPT. Copy the code out of the Canvas and save it as
index.html, same as a code block.
A preview or share link for that code stays inside ChatGPT, so it isn't something you can hand people as a website.
Watch out when saving. Notepad likes to quietly add .txt: set the type to All files and name it index.html. TextEdit saves rich text unless you choose Format, then Make Plain Text first.
Go live in 4 steps
- One folder, everything in it:
index.htmlplus any CSS, scripts and images it uses. - Go to dropthehassle.com and press Upload (free). You don't make an account first.
- Press Drop your folder and drag the folder in, or a .zip of it. The page asks for your email right after. Until you claim, uploads can be 25 MB and 1,000 files.
- Keep it. It's already live on
https://yourname.dropthehassle.app, with HTTPS and no card. Press Claim this site on the same screen, or it's removed after at least 7 days. Claimed sites can be 100 MB and 5,000 files.
Until you claim it, a small Made with DropTheHassle bar sits at the bottom (visitors can close it), and search engines are asked to leave the site out for now.
Several pages that link to each other work as they are: keep index.html as the front page and link the rest by file name, like about.html. If ChatGPT built an app with its own routes, refreshing still works, because an address that isn't a file gets your index.html.
Or let your AI publish it
Coding with Codex, Claude Code or Cursor as well? Then you can skip the dragging. Connect DropTheHassle once and say publish this site with DropTheHassle
. The hosted server is https://dropthehassle.com/mcp, with no token for a first deploy; tools that run a local server use npx -y dropthehassle-mcp@latest. You get the live link and a claim link back. Setup for each tool is in Publish from your AI.
Using the Claude app? Add https://dropthehassle.com/mcp as a custom connector (on claude.ai or Claude Desktop; it shows up in the phone app).
Images or styling missing after upload
The page loads but looks bare, or the pictures are gone? The HTML is pointing at files that aren't in the folder you uploaded. The usual suspects:
- Files you never saved. If the code mentions
style.cssorimages/photo.jpg, those files have to sit in the folder, in exactly that spot. ChatGPT often writes the reference while you only saved the HTML. - Paths to your computer. Something like
C:\Users\you\Pictures\photo.jpgonly works on your laptop. Useimages/photo.jpg. - Capital letters. Online,
Photo.JPGandphoto.jpgare different files. Make the code match the file. - Placeholder images. Some code borrows example pictures from other sites. Swap in your own.
Still stuck? Go through the five usual causes one by one.
Netlify Drop, Tiiny Host or DropTheHassle?
All three let you publish a folder or an HTML file without touching a terminal. Side by side:
| Netlify Drop | Tiiny Host | DropTheHassle | |
|---|---|---|---|
| How | Drag a folder onto netlify.com/drop | Upload an HTML file or zip | Drop your folder or .zip on dropthehassle.com |
| Account first | No. Claim the site or it expires | Sign-up with an email for the free plan, which asks you to log in again every 3 months. | No. Claim the site or it is removed after at least 7 days |
| Free plan | A live link on a Netlify address | 1 site, 3 MB, 5,000 visits a month, with a banner | A link on dropthehassle.app, up to 25 MB and 1,000 files before claim, 100 MB and 5,000 files after |
| Your own domain | Can be connected | On the paid Solo plan and up | A .com bought here is €19 / $19 a year with no DNS setup, or one A record for a domain you own |
| Email on your domain | Not part of Drop | Not on the free plan | €5 / $5 a month for the first inbox |
Sources: Netlify's post on Netlify Drop (netlify.com/blog/thirteen-years-of-netlify-drop) and Tiiny Host's HTML hosting page (tiiny.host/host-html-file), both checked 3 October 2026. Plans change, so look at their pages before you pick. More hosts are lined up in Compare hosts.
ChatGPT Sites, on a paid plan
ChatGPT Sites is available on Plus and Pro and in supported Business and Enterprise workspaces. It's not on Free or Go. On Plus and Pro there's no fixed limit on the number of Sites; usage and storage limits apply. It hosts the site, including a light app with a database, sign-in and analytics, on an address on chatgpt.site. You can rename that address, and the old one redirects.
Sites doesn't register a domain for you: OpenAI's help says you must already own the domain and be able to change its DNS records. So you buy the name at a registrar, then connect it:
- Add domain.
- Add the DNS records Sites shows, wherever you bought the domain. Use the values on that screen. This page does not print them.
- Refresh the domain status.
In Enterprise workspaces, public publishing is off until an admin turns it on. OpenAI's help doesn't mention email, an export button or an API. Anything in the page that calls ChatGPT stops working once the file is hosted elsewhere, and saved records and uploaded files stay on Sites.
So which one? Already paying for Plus, already own a domain, fine with DNS records: Sites will do. On the free plan, want the domain bought without DNS work, want email on your name, or want the site to outlive your ChatGPT plan: go with the steps above.
Want the site to stay on Sites and only need the domain and a mailbox? You can buy the name on DropTheHassle and link the site where it runs: give its HTTPS address in the Backend card (or have your AI call set_backend). DropTheHassle serves your domain and passes every request to that address, so you don't set DNS records, and email on the domain works. There's no raw DNS editor; if you want to manage DNS yourself, ask for the transfer code and move the name to another registrar.
Your own domain
Buy it here and there's no DNS to edit: a .com is €19 / $19 a year, including VAT in the EU, the same every year, and a .nl or .eu is €12 / $12 a year. You pick the name in your dashboard and pay through Stripe yourself, and it's hooked up to your site for you.
Already have a domain somewhere? Add one A record there, pointing at the address on your screen, and press Check now. That's a single line in the domain's settings telling it which server your site lives on. HTTPS follows without you uploading a certificate. If the name already gets mail, leave the MX records alone: MX decides where mail goes, the A record is only the website.
Buy a .com for your site, buy a domain with your AI, or connect a domain without DNS.
The first inbox here is €5 / $5 a month, including VAT in the EU, and €3 / $3 a month per extra inbox. This page does not suggest forwarding mail to a free personal inbox. DNS, HTTPS and other hosts are also in the general guide.
Common mistakes
- The browser shows your code as text. The file is really
index.html.txt, or it was saved as rich text. Save it again as plain text calledindex.html. - Uploading just the HTML file. When ChatGPT made several files, the whole folder goes up, not only
index.html. - A project that still needs a build. A project zip before build is refused. Run
npm run buildand usedist. - Sending people the ChatGPT preview. It only opens inside ChatGPT. Share your own link instead.
- Forgetting to claim. An unclaimed site is gone after at least 7 days, so claim it while the screen is still open.
Copy this prompt to ChatGPT
Paste this into the same chat. It turns whatever ChatGPT made into one file that works anywhere, plus a list of the images to put next to it.
Rewrite this website as one self-contained index.html file, with all CSS and JavaScript inline.
Keep every image as a relative path like images/photo.jpg, and give me a list of the image files I need to put in an images folder next to index.html.
Do not use anything that only works inside ChatGPT.
Questions
How to host a website made by ChatGPT?
Save the code as index.html in a folder and drop the folder on dropthehassle.com. It's on a free yourname.dropthehassle.app link with HTTPS within minutes, no card needed. On Plus or higher, ChatGPT Sites can host it too.
How do I publish my website?
Get all the files into one folder with index.html at the top. Press Upload (free) on dropthehassle.com, drop the folder, and claim the site so it stays. Your own domain can come later.
Can ChatGPT actually create a website?
Yes. It writes the HTML, CSS and JavaScript for a whole site. Getting it online is a separate step: ChatGPT Sites on paid plans, or on any plan by saving the code as index.html and putting the folder on a host.
Can ChatGPT connect my own domain?
Yes, with ChatGPT Sites on paid plans, for a domain you already own.
What if my site uses a database or ChatGPT sign-in?
The pages can still go here. Got a server part too? Keep it on AWS, Google Cloud, DigitalOcean or your own server, and your AI links it to your site in one step. ChatGPT sign-in itself only works on Sites.
Does that include email?
Email on ChatGPT Sites is not documented. A mailbox you can send from is €5 / $5 a month, including VAT in the EU, for the first address on DropTheHassle, then €3 / $3 a month per extra inbox.
Can my AI buy the domain?
No. It can publish the folder and send you a payment link, but buying the domain is your click.
Keep going
- Made it with Claude instead? Publishing a Claude site
- My site works on my computer but not online
- Any AI-made HTML page, online for free
- Deze gids in het Nederlands
Got your index.html saved? You're one drag away from a link you can text to someone.