← All guides
WebsitesAI ToolsBeginner

How to Build a Website in 24 Hours Using Free AI Tools

From inspiration to a live website, using mostly free tools.

You do not need to be a professional developer to build a polished website anymore. With a code editor, an AI coding assistant, GitHub, and free hosting, you can go from a few inspiration screenshots to a working website in a day.

Inspiration→VS Code→GitHub Copilot→GitHub→Vercel→Live Website

Heads up: most of the tools in this workflow have free options, but free-plan limits and terms can change over time, and a custom domain may cost money.

What you'll need

A computerMac or Windows is fine.
InspirationA few websites you like.
VS CodeFree code editor.
GitHub Copilot FreeYour AI coding assistant.
A GitHub accountWhere your code lives.
A Vercel accountFree hosting for your site.

Plus your own images, copy, logo, and other brand assets if you have them.

Step 01 · Inspiration

Find Website Inspiration

Before you start coding, decide what you actually want the website to look like. Find 2–3 websites you like and take screenshots of specific sections. When you prompt Copilot later, drag the screenshot into the chat so it can see it.

Do not think of this as copying an entire website. Instead, identify the individual ideas you like:

Navigation styleHero sectionTypographyCardsAnimationsPortfolio layoutTestimonialsFooterColor paletteSpacing

You can combine ideas from multiple references to create something that feels like your own.

Where to find inspiration

Tip: save all your screenshots in one folder so you can easily reference them while building. GoFullPage captures an entire page in one screenshot, and WhatTheFont tells you which font a site is using.

Step 02 · Editor

Install VS Code

Download and install Visual Studio Code. VS Code is the editor where your website files will live and where you will work with your AI coding assistant.

Create a new folder for your website and open that folder inside VS Code.

New to coding? Don't worry about understanding every file immediately. Your AI coding assistant can help you create the initial structure and explain what it is doing.

Step 03 · AI Assistant

Set Up GitHub Copilot Free

Install GitHub Copilot inside VS Code and sign in with your GitHub account. Copilot has a free tier that gives you AI coding assistance directly inside your editor. Free-plan features and usage limits can change, so check the current plan before starting.

The important part: you can describe what you want in normal language and use AI to help create and modify the code, instead of manually coding every component.

Step 04 · Build

Build the Website With AI

Start with the overall structure first. A simple portfolio might include:

1. Navigation2. Hero section3. About4. Featured work5. Brands or clients6. Case studies7. Contact8. Footer

Build one section at a time instead of asking AI to create an enormous website perfectly in one prompt. Once the basic structure exists, use your inspiration screenshots to guide the design.

Example prompt
I want to create a hero section inspired by this reference. Analyze the layout, spacing, typography, and overall visual hierarchy. Recreate the general design direction for my website using my existing branding and content. Do not copy logos, text, or proprietary assets from the reference.

Then iterate with small, specific requests:

“Make the headline larger and reduce the space above it.”
“Make these cards animate slightly when I hover over them.”
“On mobile, stack these cards vertically.”
“Keep the current design but make the spacing feel more premium.”
“Add a subtle entrance animation when this section enters the viewport.”

Treat AI like someone sitting beside you while you build. Do not try to write the perfect prompt once.

Build → look at the result → explain what you want changed → repeat.

Tip: use your voice instead of typing everything by hand. It’s way quicker, and when you vibe code, the AI will understand what you mean even if your sentences don’t fully make sense to you. You don’t have to care about grammar or anything. Just talk it through. On Windows press Win + H, on Mac press the Fn key twice, or use a dictation app like Willow Voice.

Step 05 · Content

Add Your Real Content

Once the design is working, replace placeholders with your actual content:

Your nameBioPortfolio projectsImagesSocial linksContact informationBrand logos you have permission to useTestimonialsCase studies

Check every section after adding the real content. Different text lengths and image sizes can change the layout.

Step 06 · Responsive

Check Desktop and Mobile

Do not assume a website that looks good on your monitor will automatically look good everywhere. Check it on desktop, laptop, tablet, and mobile (in your browser, press F12 and use the device toolbar to preview phone sizes), and ask your AI coding assistant to fix responsive issues.

Example prompt
Review this website for responsive design problems. Fix anything that breaks, overflows, becomes too small, or has awkward spacing on mobile without changing the desktop design unnecessarily.
Step 07 · GitHub

Push the Website to GitHub

Once the site is working locally, create a GitHub repository for the project and push your website code to it. GitHub gives you a central place to store the code and makes deployment much easier.

If you don't know the Git commands, ask your coding assistant:

Example prompt
Walk me through pushing this project to a new GitHub repository. Give me one step at a time.

Once the repository is online, you are ready to deploy.

Step 08 · Deploy

Deploy With Vercel

Create a Vercel account and connect it to GitHub. Choose your website repository and deploy it. Vercel can automatically detect many common web frameworks and handle most of the deployment setup for you.

For an appropriate personal/non-commercial project, Vercel’s Hobby tier may let you host the website without a monthly hosting bill. Always check the current plan terms and usage limits.

That's it: after deployment, Vercel gives you a live URL. Your website is now online.

Step 09 · Optional

Connect a Custom Domain

You can keep the free Vercel URL, or connect your own domain, like yourname.com. A custom domain makes a portfolio feel much more professional.

Domains usually are not free, so this is one part of the process where you may choose to spend money. If you already own a domain, follow your domain provider’s instructions to connect its DNS settings to your hosting provider.

Step 10 · Launch

Final Test

Before sharing the website, go through it like a visitor. Check:

Every navigation linkEvery buttonSocial linksContact linksImagesVideosMobile layoutDesktop layoutSpellingLoading speedBroken pagesFormsFaviconPage titleSocial preview image

Also ask AI to review the project:

Example prompt
Review this website before launch. Look for broken links, responsive design problems, accessibility issues, obvious performance problems, inconsistent styling, and anything that could make the site feel unfinished. Give me a checklist and help me fix each issue.
Prompt Library

Useful AI Prompts

Copy, replace anything in [BRACKETS], and paste into Copilot.

01 · Start the project
Build me a modern responsive portfolio website for [WHO YOU ARE]. I want sections for [SECTIONS]. Use [STYLE] as the overall visual direction. Start by creating the structure, then we will refine each section individually.
02 · Recreate a design direction
Analyze this website screenshot. Focus on its layout, hierarchy, spacing, typography, and visual style. Use those principles to create a similar design direction for my website, but use my own content, branding, and assets.
03 · Fix mobile
Review the current website at common mobile screen sizes. Fix overflow, cramped spacing, unreadable text, broken layouts, and elements that do not scale properly.
04 · Improve the design
Keep the current structure and content, but make the design feel more polished and premium. Improve spacing, typography, hierarchy, alignment, and subtle interactions without making it overly complicated.
05 · Add animation
Add subtle modern animations to this section. Keep them smooth and professional. Avoid excessive movement that distracts from the content.
06 · Debug something
This is what I expected to happen: [EXPECTED RESULT]. This is what actually happened: [ACTUAL RESULT]. Find the cause, explain it simply, and fix it without unnecessarily changing unrelated parts of the website.
07 · Final review
Audit this entire website before launch. Check functionality, responsiveness, accessibility, performance, consistency, links, metadata, and obvious bugs. Prioritize the issues that matter most.
Schedule

A Simple 24-Hour Plan

Hours 1–2Find inspiration, collect screenshots, plan your sections, and gather your content.
Hours 3–5Set up VS Code, your AI coding assistant, and the initial website structure.
Hours 6–10Build the major sections.
Hours 11–14Refine the design, typography, spacing, and animations.
Hours 15–17Add your real images, copy, projects, and links.
Hours 18–20Fix mobile responsiveness and bugs.
Hour 21Push the project to GitHub.
Hour 22Deploy it.
Hours 23–24Test everything, fix final issues, and polish the website.
Avoid These

Common Mistakes

1. Asking AI to do everything at once

Build section by section. Smaller changes are easier to review and fix.

2. Blindly accepting every AI change

Always look at what changed and test the result.

3. Copying another website exactly

Use other websites as inspiration for design principles. Create your own content, branding, assets, and final design.

4. Ignoring mobile until the end

Check mobile throughout the build.

5. Adding too many animations

A few good interactions usually look better than movement everywhere.

6. Forgetting the purpose of the website

A beautiful website still needs to clearly communicate who you are, what you do, and what you want the visitor to do next.

7. Not testing links and buttons

Click everything before publishing.

8. Exposing private information

Never commit passwords, API keys, tokens, or other secrets to a public GitHub repository.

Checklist

Final Checklist

Tick things off as you go.

Final Thought

Keep Iterating

The biggest advantage of AI coding tools is not that you can press one button and instantly get a perfect website. It is that you can describe what you want in normal language, see the result, and keep refining it without needing to manually write every line of code yourself.

Start simple, build one section at a time, and keep iterating until it feels like your website.