#ai #webdev #nocode #beginners
How to Make a Website With AI: A Free Step-by-Step Guide
Raymond Busuttil · Apr 14 · 10 min read

If you have ever wanted to know how to make a website with AI, the honest answer is that it now takes three things: a clear description of the site you want, a tool that turns that description into real pages, and a place to put the result online. You do not need to write code, learn a drag-and-drop editor or pay for a template. This guide walks through the whole path, from a blank prompt box to a live web address, using AI Code Zero, a free AI website builder that runs on your computer or in your browser.
Every step below is something you can do in an afternoon, and most of it in under an hour. By the end you will have a multi-page website that you can change by chatting or by clicking, and that is live on the internet with a secure address.
In short
- Describe your site in plain English in the Website studio. The AI builds the pages and shows a live preview.
- Change anything by chatting, or click elements in the preview to edit text, pictures and links directly with no AI request.
- Add contact forms, analytics and more by connecting an extension once.
- Click Publish to put the site online at a free surge.sh address with HTTPS, or export the files and host them anywhere.
- AI Code Zero is free and open source. You only pay your own AI provider for the tokens you use.
What do you need before you start?
There are only three requirements.
- AI Code Zero. Use the desktop app on Windows or Linux, install it on a Mac in one click through Pinokio (see the Mac guide), or open the web app in your browser with nothing to install. No AI Code Zero account is needed in any case.
- An API key from an AI provider. AI Code Zero works with Anthropic, OpenAI, Gemini, xAI, DeepSeek and OpenRouter. A key is a password-like code that lets AI Code Zero use the AI on your provider account. During setup, the Get a key button opens the right page for you. The provider guide explains each option, and our post on bringing your own API key covers what that means for cost.
- An idea. It can be rough. A bakery, a portfolio, a wedding page, a local club, a landing page for a side project. You will refine it as you go.
Many providers need a payment method or prepaid credit before a new key works, so set that up in the provider's own website first. AI Code Zero itself is free and adds no markup to what your provider charges.
Step 1: Pick the Website studio
AI Code Zero has three studios. The Website studio is for sites with a menu and several pages, such as a business, portfolio or event site. The App studio builds single-page tools and dashboards, and the Game studio builds 2D and 3D games.
By default AI Code Zero opens on the home page in Smart studio (auto-pick), which chooses a studio from your prompt. For a website you can simply click Website studio at the bottom of the prompt box to be sure. The Website studio is also the one that has the click-to-edit tools you will use in step 4.
Step 2: Write your first prompt
A prompt is the message that tells the AI what to build. The best first prompts name the site's purpose, its pages, and the feel you want. Here is an example you can adapt:
A website for a small neighborhood bakery called Rise & Shine.
Pages: Home, Menu, About and Contact.
Home has a big hero image, our three best sellers and opening hours.
Menu lists breads, pastries and cakes with short descriptions and prices.
Contact has an address, a map placeholder and a contact form.
Warm and friendly, cream background, dark brown text, a terracotta accent.
Press Enter to send. If your prompt leaves room for doubt, the AI may first ask two or three short multiple-choice questions about design, features and theme. Answering them is quicker than rewriting your prompt, and it is on by default. When the first build starts, AI Code Zero also names the project for you. You can rename it from the side panel whenever you like.
If you want more help with wording, read our guide to writing prompts for AI app builders. The short version: list the features you want, describe the look, and start small.
Step 3: Review the live preview
A minute or so after you send the prompt, the website appears in the preview pane. Do not judge it as a finished product yet. Use the preview to check three things.
- Structure. Are all the pages there? Does the menu link to them?
- Content. Is the wording close to what you would say? Placeholder text is easy to replace, so look at the shape of the content rather than every word.
- Small screens. The preview has desktop and mobile toggles, so switch to mobile and scroll through. A large share of visitors will see your site on a phone, and it is much easier to spot a cramped layout now than after you publish.
Step 4: Refine the site by chatting or clicking
This is where an AI website builder earns its keep. You have two ways to change what was built, and you can switch between them freely.
Ask for changes in the chat
Describe the change in plain words and AI Code Zero updates the site you have instead of starting over. For example:
Make the Contact page form simpler: just name, email and message.
Add a testimonials section to Home with three short quotes.
Use a darker brown for the headings.
Several small requests usually beat one enormous one. If you only want to understand something, switch from Build to Ask mode, where the AI answers questions without touching your site.
Click to edit, with no AI request
In the Website studio, click Edit Mode in the preview toolbar. Now you can click any element to change it directly:
- Text: click a heading, paragraph or button label and type. A formatting bar offers font, size, bold, italic, alignment and color.
- Pictures: replace an image from your computer, from your project's images or by pasting a web address, and set its size and alt text.
- Links: change where a link goes, or turn highlighted text into a link.
- Layout: drag an element to move it. It stays part of the normal page layout, so the page still fits every screen.
Direct edits are instant and do not use any AI tokens, so use them for small fixes such as a typo, a phone number or a swapped photo, and keep the chat for bigger structural changes. There is more detail in the editing guide.
Undo anything
Every build and edit is saved as a version. If a change misses, click Previous version in the preview toolbar or press Ctrl+Z (Command+Z on a Mac). You can jump to any earlier version from History in the side panel, so experimenting costs you nothing.
Step 5: Add what a real website needs
A good website does more than show pages. Most small sites need a way to be contacted, a way to be found, and a way to see whether anyone visits.
- A contact form. Connect Web3Forms in Settings, then Extensions, paste your access key, and ask for "a contact form". Entries arrive in your email inbox. It has a free plan. See our walkthrough on adding a free contact form with no backend.
- Visitor counts. Umami and Plausible both count visitors without cookies. Connect one and the AI adds its tracking code to every page.
- Search visibility. The built-in SEO tool in Settings, then Tools asks a few questions about your site, who it is for and how people should find you. The AI then adds titles, descriptions, share previews, clear headings, image descriptions and structured data. It cannot promise a ranking, but it covers the basics that many sites forget.
- Your own photos. Turn on My images to upload photos and logos, then mention one by name, for example "put team-photo in the hero section".
Browse all the options on the extensions page. Existing projects do not change on their own, so after connecting a service, paste one of the suggested requests into the chat to add it.
Step 6: How do you publish the website?
Publishing is a few clicks. AI Code Zero uses Surge, a free static hosting service.
- In the preview toolbar, click Publish.
- Sign in to Surge, or choose Create an account and make a free one inside AI Code Zero.
- Choose the web address. AI Code Zero suggests a name, and you can type your own, ending in .surge.sh.
- Pick options if you want them: an icon, whether search engines may find the site, an install prompt so visitors can add it to their device, and an optional password.
- Click Publish. After a few seconds you will see Your site is live, with buttons to copy the link or open the site.
The address always uses HTTPS. Unless you add a password, anyone with the link can see the site, so do not publish anything private. Let search engines find this site is on for new sites; turn it off while you are still drafting. To change the site later, edit the project and click Update. It replaces the live version at the same address. The publishing guide covers every option, and our post on publishing a website for free compares the main hosting choices.
Using your own domain
If you own a domain such as mybakery.com, choose Use a domain I own in the Publish window, enter it and publish. AI Code Zero shows the one DNS record to add at the company where you bought the domain, then checks it for you. Custom domains are in beta, and DNS changes can take up to a day to spread.
Step 7: Keep a copy of your files
Your website is yours. Click the download button next to Publish to export a multi-page site as a .zip with one HTML file per page. Unzip it, open index.html, and it works in any browser. You can upload those files to any host that serves plain files if you ever want to leave Surge. If you use the desktop app, projects are also saved as folders on your own computer, and Settings, then Data can export every project at once as a backup.
What does a good AI-built website still need from you?
AI is excellent at producing a competent first draft quickly. A few things remain your job, and they are the difference between a site that exists and a site that works.
- Real content. Replace placeholder text, prices and opening hours with the truth.
- Real photos. Your own pictures make a site feel like it belongs to you.
- A final read. Click every link and submit your contact form once to confirm the email arrives.
- A phone check. Look at it on the mobile preview, and on a real phone after you publish.
Our list of vibe coding mistakes to avoid goes deeper on habits that save time here.
Frequently asked questions
Can I really make a website with AI without knowing how to code?
Yes. You describe the site, preview it and ask for changes in everyday language, and you can fix small details by clicking. If you do know how to code, you can open the generated HTML, CSS and JavaScript, edit it and export it.
Is it actually free?
AI Code Zero is free and open source under the MIT license, and Surge hosting for a .surge.sh address is free. The AI is the one part that can cost money: you use your own API key and your AI provider bills you for what you use. AI Code Zero shows an estimate of the tokens each chat has used, but your provider's usage page is the source of truth.
Can I use my own domain name?
Yes, in beta. Publish to a domain you own, add the DNS record AI Code Zero shows you, and Surge issues a free HTTPS certificate once it works. Cloudflare users need to set the record to DNS only.
Can I change the website after it is live?
Yes. Open the project, make your edits by chatting or clicking, and click Update. The new version replaces the old one at the same address, and it can take a minute to appear everywhere.
Build your website with AI Code Zero
You now have the whole workflow: pick the Website studio, describe the site, refine it in the preview, connect what you need and publish. AI Code Zero is free and open source, and it does not need an AI Code Zero account. Download the desktop app for Windows (Microsoft Store) or Linux (.AppImage or .deb), install it on a Mac in one click through Pinokio, or try it in your browser right now. For a broader overview of what the builder can do, see the free AI app builder guide.