Tech AI LabsAI Growth Infrastructure for Business

How to Use Claude to Create a Website From Scratch

By the Tech AI Labs teamChecked 22 November 20266 min read
How to Use Claude to Create a Website From Scratch: a practical workflow overview

Short answer: Tell Claude what the site is for, which pages you need and how it should look. Ask for one page at a time as plain HTML and CSS, preview it in your browser, and refine in small steps. Then upload the files to a hosting service. Claude is good for brochure sites, landing pages and portfolios. Shops, logins and payments need proper platforms or a developer.

What you can realistically build

Claude can write the code for a website, because a basic site is just text files: HTML for the content, CSS for the look and sometimes a little JavaScript for behaviour. That makes these projects a good fit:

It is a weaker fit for online shops, member areas, booking systems and anything that stores customer data. Those need security, testing and ongoing maintenance that a prompt alone does not give you.

Step by step

Six steps to build a website with Claude
Guide diagram: Six steps to build a website with Claude

Step 1: Plan before you prompt

Write down four things:

  1. 1Purpose. What should a visitor do? Call you, book, buy, read?
  2. 2Pages. List them. Keep the first version small.
  3. 3Content. The real text, your services, your contact details. Claude cannot invent your facts.
  4. 4Style. Two colours, one or two fonts, and a site you like as a reference.

Step 2: Describe the design

Prompt: I need a website for a small accounting practice in Leeds. Audience: local small business owners. Goal: get them to book a free call. Pages: Home, Services, About, Contact. Style: clean, navy and white, friendly. Before writing code, suggest a layout for the home page and ask me anything you need.

Letting Claude ask questions first saves a lot of rework.

Step 3: Generate one page

Prompt: Write the home page as a single HTML file with the CSS inside it. Make it mobile friendly. Use this text: [paste your text]. Use placeholder boxes for images and tell me where to put real ones.

Asking for one file keeps things simple. You can split the CSS into its own file later.

Step 4: Preview it

Save the code as index.html and open it in your browser. You can also use Claude's artifacts feature to preview some web pages inside the chat. Anthropic's help centre describes how artifacts work and notes that its definition has changed, so check the current article before you rely on a specific behaviour: https://support.claude.com/en/articles/17153992-what-are-artifacts-and-how-do-i-use-them

Step 5: Refine in small steps

Change one thing per message. This makes mistakes easy to find.

Prompt: The header looks cramped on my phone. Make the menu stack vertically on small screens and increase the spacing. Do not change anything else.

Prompt: Add a section with three service boxes below the hero. Keep the same style.

Step 6: Add the other pages

Ask Claude to build the next page so that it matches the first, and to update the menu on every page. Paste the first page's code so it can copy the style.

If you want more help from the tool

If you are comfortable installing software, Claude Code can edit the files on your computer directly, run a local preview and keep the pages consistent. Anthropic's documentation covers installation and a first session: https://code.claude.com/docs/en/quickstart We cover it in our guide How to Use Claude Code to Build Full-Stack Applications. If you are new to code, start with How to Use Claude for Coding Without Being a Developer.

Publishing your site

A static site is just files, so many hosting services can serve it, including free tiers on several providers. The pattern is the same:

  1. 1Choose a host and create an account.
  2. 2Upload your folder of files, or connect a code repository.
  3. 3Connect your own domain name, if you have one.
  4. 4Check that the site loads with https.

Read each provider's own instructions and pricing page, because they change. Claude can walk you through the steps if you tell it which host you picked.

Before you publish

A pre-launch checklist
Guide diagram: A pre-launch checklist

Prompt: Review this page for SEO basics: title, description, headings, image alt text and links. List what is missing and suggest fixes.

Safety and quality rules

Common mistakes

When to hire help

Bring in a developer or agency when you need a shop, bookings, member logins, a custom design system or ongoing support. A good path is to build a prototype with Claude, then hand it over with clear requirements. That saves time and money on both sides.

FAQ

Can Claude build a complete website?

It can write the code for simple sites and landing pages. You still need to supply real content, test the result and publish it.

Do I need to know HTML?

No, but learning the basics helps you spot problems. Ask Claude to explain each part of the code.

How do I make the site rank on Google?

Write useful, accurate content, give each page a clear title and description, make it fast and mobile friendly, and earn links from real sites. Google's guidance says content is judged on how helpful it is, not on how it was produced.

Can Claude make images for the site?

It can create simple graphics as code, such as SVG, but it does not replace a photographer or a design tool. Use real photos of your business where you can.

Is it free?

Anthropic offers free and paid plans with different limits, and hosting has its own pricing. Check current plans on each provider's site.

Sources

Key takeaways

Want a site that is built properly from day one? Book a free 30 minute call with Tech AI Labs.

FAQ

Quick answers

Can Claude build a complete website?

It can write the code for simple sites and landing pages. You still need to supply real content, test the result and publish it.

Do I need to know HTML?

No, but learning the basics helps you spot problems. Ask Claude to explain each part of the code.

How do I make the site rank on Google?

Write useful, accurate content, give each page a clear title and description, make it fast and mobile friendly, and earn links from real sites. Google's guidance says content is judged on how helpful it is, not on how it was produced.

Can Claude make images for the site?

It can create simple graphics as code, such as SVG, but it does not replace a photographer or a design tool. Use real photos of your business where you can.

Is it free?

Anthropic offers free and paid plans with different limits, and hosting has its own pricing. Check current plans on each provider's site.

IN THE DIRECTORY

See how this tool compares, what it costs and what it is best for.

Open the tool page →
How to Use Claude Code to Build Full-Stack Applications: article illustration
TUTORIALS

How to Use Claude Code to Build Full-Stack Applications

Read →
How to Use Claude for Coding Without Being a Developer: article illustration
TUTORIALS

How to Use Claude for Coding Without Being a Developer

Read →
Free vs Paid ChatGPT: What You Get on Each Plan in 2026: article illustration
TUTORIALS

Free vs Paid ChatGPT: What You Get on Each Plan in 2026

Read →

Keep exploring

Move from research to a useful workflow. Check the source, learn the steps, then discuss implementation.

Discuss your workflow