Vibe Coding Playbook

Home › Guides

How to build a website with ChatGPT or Codex, with no coding

By Dene Gordon · Updated 19 October 2026

You can build a real, fast website with ChatGPT or OpenAI Codex without writing code yourself. This guide walks through the whole process: writing the brief, getting a first version, improving it, and putting it live on your own domain. It also covers the mistakes that trip most beginners up.

Before you start: chat or Codex?

There are two ways to do this with OpenAI's tools, and you can use either.

The same approach works with Claude, Grok or Cursor. Only the buttons differ.

Step 1: write a proper brief

Most bad AI websites come from a one-line request. Spend ten minutes writing a short brief instead. Include:

Paste that into ChatGPT and finish with: "Before you write any code, ask me up to five questions about anything unclear." That one line removes most of the guesswork. For more on this, see how to write prompts for building apps.

Step 2: get the first version

Answer its questions, then ask for the full file. In chat, copy the code into a plain text editor (Notepad, TextEdit in plain-text mode, or the free VS Code) and save it as index.html. Double-click it and it opens in your browser. That's your website, running on your own computer.

With Codex, create an empty folder (or an empty GitHub repository), open it in Codex and give it the same brief. It will create the files directly. Ask it to "explain what you created and how to preview it."

Step 3: improve it in small, specific steps

Now test like a fussy customer. Look at it on your phone (your browser's developer tools have a phone preview, or simply email the file to yourself). Then ask for one or two changes at a time:

In chat, always ask for the complete updated file rather than fragments, so you don't paste bits into the wrong place. In Codex, check what changed after each request. Small steps mean you always know which change broke something.

Step 4: make the contact form actually work

A form on a plain HTML page can't send email on its own. The easiest beginner options are form services such as Formspree or FormSubmit, which forward submissions to your inbox; you point the form at their address and they handle delivery. Ask the AI: "Wire this form up to Formspree. Show me exactly where I paste my form ID." Then test it with a real submission. Check the privacy side too: tell visitors what you do with their details, and link a short privacy policy. Under UK GDPR that's expected even for a small site.

Step 5: put it live on your own domain

For a static site (HTML, CSS, images), hosting can be free:

  1. Buy a domain. A .co.uk usually costs a few pounds a year at cost-price registrars such as Cloudflare, and more at the big-brand registrars, especially on renewal.
  2. Create a free Cloudflare account, go to Workers & Pages, create a Pages project and choose direct upload. Drag in your site folder. Cloudflare gives you a free .pages.dev address straight away.
  3. Add your custom domain in the project settings and follow the DNS steps. If your domain is registered with Cloudflare, it's a couple of clicks.

Netlify and GitHub Pages work in much the same way. Once your site is on GitHub, you can set it up so every change you save goes live automatically. Ask Codex to set that up for you and explain each step.

Step 6: the checks most beginners skip

Common problems and quick fixes

How long does it take?

A simple one-page site usually takes a beginner an evening or two, including going live. A multi-page site with a working form and your own domain takes a weekend. Your second site will take half the time, because the slow part is learning to describe and test, not the AI's typing.

New to all this? Start with what vibe coding is, and check the budget in how much it costs to build an app with AI in the UK.