Guide · 7 min read

How to Host a Website Made with ChatGPT, Claude or Gemini

In short

To host a website made with ChatGPT, Claude or Gemini, ask the AI for a single self-contained HTML file, save it as index.html, and upload the file (or paste the code) on a hosting service to get a working link. To keep it online permanently, connect your own domain and a hosting plan. Contact forms and logins need real hosting, not a preview link.

AI tools can now produce a decent-looking website in a minute. What they do not explain is how to get that code out of the chat window and onto the internet at your own address. This guide covers exactly that, from a single HTML file to a multi-page site with images, along with the mistakes that make a site look perfect on your laptop and broken online.

Key takeaways

  • What ChatGPT, Claude or Gemini gives you is usually plain HTML, CSS and JavaScript, which can be hosted almost anywhere.
  • Save the code as index.html, then upload it or paste it on our upload page for a free preview link that lasts 4 hours, or 24 hours once you confirm your email.
  • For a permanent site, connect a domain and a hosting plan.
  • Contact forms, logins and databases need a real server; a static preview cannot run them.

What exactly did the AI give you?

Most AI-made websites are a single HTML file with the CSS and JavaScript inside it, which is the easiest thing in the world to host. Before going further, check which of these you have.

What you haveHow to recognise itWhat to do
Single HTML fileStarts with <!DOCTYPE html> and has a <style> section insideSave as index.html and upload
HTML plus separate CSS and JS filesThe AI gave you index.html, style.css and script.js separatelySave all files in one folder, then zip it
React or JSX componentContains import React, export default or className=Ask the AI to convert it to plain HTML
Full project with package.jsonSeveral folders and a package.json fileIt needs a build step first

Claude artifacts, Gemini Canvas and ChatGPT Canvas sometimes produce React components rather than plain HTML, and those will not run if you simply save them as index.html. The easiest fix is to ask the AI: "Convert this into a single self-contained HTML file using plain HTML, CSS and JavaScript, with no build step." If you have a full project from Lovable, Bolt or v0, follow our guide to hosting a Lovable, Bolt or v0 project instead.

Step 1: Save the code as index.html

Copy the complete code from the chat, paste it into a plain text editor, and save it with the exact name index.html. Web servers look for a file with this name to show as the homepage.

  • Windows: open Notepad, paste, choose File > Save As, set "Save as type" to "All files", set the encoding to UTF-8, and type index.html. Otherwise Windows quietly saves it as index.html.txt.
  • Mac: TextEdit saves rich text by default. Choose Format > Make Plain Text first, then save as index.html and confirm that you want the .html extension.
  • Better option: a free code editor such as VS Code, which shows the code with colours and avoids both traps.

Make sure you copied everything. Long answers are sometimes cut off, and a file that ends halfway through will look broken. The last line should be </html>. Double-click the file to open it in your browser; if it looks right there, it will usually look right online, as long as the file paths are correct.

Step 2: Upload it and get a preview link

The quickest way to see your AI-made site live is our free upload tool: drag in the file or a ZIP, or paste the code directly, and you get a preview link you can open on any device. No hosting plan is needed for the preview.

  • It accepts a single HTML file, a ZIP of your site, or pasted code, up to 20 MB.
  • The preview link stays live for 4 hours, or 24 hours once you confirm your email address with the 6-digit code we send.
  • Previews are marked noindex, so Google will not list them. That is deliberate: a preview is for checking and sharing, not for ranking.
  • Password and login forms are blocked on free previews, which stops the tool being misused for fake login pages.

Open the link on your phone as well as your computer. AI-generated layouts sometimes look fine on a wide screen and fall apart on a mobile, and it is better to find out now. If something is off, describe the problem to the AI, get the corrected code, and upload again.

Step 3: Make it permanent with a domain and hosting

A preview link expires after 4 hours, or 24 hours with a confirmed email; a real website needs a domain name and a hosting plan. Once you have both, the same files go into the public_html folder of your hosting account and the site opens at your own address.

  1. Choose a domain. A .in domain is ₹897 per year and a .co.in is ₹780 per year, both + 18% GST.
  2. Choose hosting. A one-page HTML site fits our cPanel starter at ₹900 per year, but it has only 10 MB of space. If you have photos or several pages, the 500 MB plan at ₹1,800 per year is the safer choice.
  3. Upload the same file or ZIP into public_html using cPanel File Manager, and extract the ZIP there.
  4. Switch on the free SSL certificate that comes with the hosting, so the site opens on https://.

If you would rather not do these steps yourself, our Starter bundle puts a .in or .co.in domain, hosting with 25 email IDs and free SSL together from ₹1,499 a year plus GST, and we set it up for you. If you only need the site to stay online without a domain of your own, a short address such as yourname.isopen.in costs ₹499 a year plus GST, subject to availability and a quick approval.

Our cPanel hosting plans list renewal prices alongside first-year prices, so you know what next year costs. For the full walkthrough, including DNS and email, see how to host a website in India.

Hosting a multi-page site with images

If your site has more than one file, keep everything in one folder with the structure the code expects, then zip the contents of that folder. The homepage must be called index.html and sit at the top level of the ZIP.

A typical structure looks like this:

  • index.html, about.html, contact.html
  • css/style.css
  • js/script.js
  • images/logo.png, images/shop-front.jpg

When you create the ZIP, open the folder, select the files inside it and zip those, rather than zipping the folder itself. Otherwise everything ends up one level too deep and the homepage is not found.

AI tools often fill image spaces with placeholder links to stock photo websites, or with file names that do not exist on your computer. Search the code for src= and replace each one with your own image saved in the images folder. Resize photos before uploading: a 6 MB phone photo on the homepage makes the site slow on mobile data and eats into a small hosting plan.

Relative and absolute paths: why images break online

Use relative paths such as images/logo.png, which work on your laptop, on a preview link and on your domain. Paths that point to your own computer will never work online.

  • images/logo.png or ./images/logo.png: works everywhere, because it is relative to the page.
  • /images/logo.png: starts from the root of the domain. It usually works on your own domain but can break when the site is not at the root.
  • C:/Users/Ravi/Desktop/site/logo.png or anything starting with file:///: never works online, because it points to your computer, not the server.

One more trap: web servers are case-sensitive and Windows is not. If the code says Logo.PNG and the file is called logo.png, it works on your laptop and breaks online. Keep all file names lowercase, with hyphens instead of spaces.

Why forms, logins and databases need real hosting

A static site can display a form but cannot process it; something on a server has to receive the data and send it to you. Most AI-generated contact forms look complete and quietly do nothing when someone presses Submit.

  • Contact forms: on cPanel hosting, a short PHP script can email you each enquiry. Ask the AI to write one, then ask it to add spam protection and input checks, because unprotected forms attract spam bots quickly.
  • Logins and member areas: these need a database and careful security. Free previews block password fields entirely. On real hosting, use an established system such as WordPress rather than an AI-written login unless you understand the code.
  • Payments: use your payment gateway's hosted checkout or payment links. Never paste secret API keys into front-end JavaScript, because anyone can read them.

If your site needs a shop, bookings or a member area, WordPress is usually a better long-term home than a hand-made HTML file.

Updating the site later

To change the site, edit the HTML yourself or ask the AI to make the change, test the new file on your computer, then upload it over the old one in File Manager. Keep a copy of the last working version before every change; AI tools sometimes rewrite more than you asked for, and an old copy saves you when they do.

If you get stuck, call or WhatsApp us on +91-95851-60363. We answer in English, Tamil and Hindi, and we will tell you honestly whether your site needs anything more than basic hosting.

Frequently asked questions

Can I host a ChatGPT-made website for free?

You can get it online free for testing. Paste the code or upload the file on our upload page and you get a preview link for sites up to 20 MB, live for 4 hours, or 24 hours with a confirmed email. To keep it online, choose a yourname.isopen.in address at ₹499 a year, subject to availability, or your own domain with hosting from ₹1,499 a year, plus GST.

Why does my AI website look fine on my computer but broken online?

It is usually file paths. Images or CSS linked with paths like C:/Users/... or with different capital letters work on your laptop but fail on a server, which is case-sensitive. Use relative paths such as images/logo.png, keep file names lowercase, and upload every file the page refers to.

Will my AI-generated website show up on Google?

Not from a preview link, because previews are marked noindex. Once the site is on your own domain with hosting, Google can find and index it. Give each page a clear title and meta description, write real text about your business, and add the site to Google Search Console to help it get discovered.

Do I need to know coding to host a website made by ChatGPT?

No. You need to save the code as index.html and upload it, which takes a few minutes. Basic HTML knowledge helps when you want to change text or fix a broken image, but you can also paste the code back into the AI and ask it to make the change for you.

Can I host a website made in Claude artifacts or Gemini Canvas?

Yes, if it is plain HTML. Some artifacts are React components that need a build step before a browser can run them. Ask the AI to convert it into a single self-contained HTML file with no build step, then save it as index.html and upload it like any other HTML file.

Why does the contact form on my AI website not work?

An HTML form needs something on a server to receive each submission and send it to you, and AI tools usually create the form without that part. On cPanel hosting, a small PHP script with spam protection can email you every enquiry. A static preview link has no server code to process forms.

WhatsApp