In short
- An address starting
file:///lives on your disk. Only an address startinghttps://works for other people. - Ask for one
index.htmlwith the CSS and JavaScript inside. It is the easiest thing to publish. - No setup at all: drop the file, or paste the code, on pagelemon.com/drop.
- Pick a way to publish, and check you can change the site later without losing the address.
Why the file only works on your computer
When you double-click an HTML file, your browser opens it straight from your disk. That is fine for you. A link only works for other people if the file sits on a computer that is always online and answers requests for it. That computer is a host. Putting your file there is publishing, sometimes called deploying.
The good news: a page your AI made is usually a static site. It is just files: HTML, CSS, JavaScript and images. Static sites are the easiest thing to host. You do not need a server or a database.
Open it on your computer first
Before you publish, check that the file works. It takes a minute.
- Copy the code into a plain text file. If the AI showed you code in the chat, paste all of it into a text editor (Notepad on Windows, TextEdit in plain text mode on a Mac). If it gave you a download, skip this.
- Save it as
index.html. Make sure the name does not end in.txt. Put it in a new, empty folder. - Double-click the file. It opens in your browser. Scroll the whole page, click every link and button, and make the window narrow to see how it looks on a phone.
- Note what is wrong. Tell the AI in the chat, then ask for the file again.
Get the files out of the chat
Depending on the AI, your site may be one of these:
- A preview in the chat (Claude artifacts, ChatGPT canvas). Ask for a single file you can download.
- Several files (a page, a stylesheet, images). Ask for a .zip of the whole site with
index.htmlat the top level, not inside another folder. - A project folder made by a coding tool such as Claude Code, Codex or Cursor. If it has a build step, the folder to publish is the one the build makes, usually
distorbuild, not the whole project.
The simplest case is one file. Most hosts treat index.html as the home page, and a single .html file of any name also works on Page Lemon. Paste this to get there:
- Give me this as one index.html with the CSS and JavaScript inside.
Fix broken images and links
A page that looked fine on your computer can show empty boxes online. These are the usual causes:
- The image is not in the folder. Keep every image next to
index.html, or in a subfolder such asimagesthat goes with it. - The path points at your own disk.
C:\Users\you\photo.jpgonly exists on your computer. Use a relative path likeimages/photo.jpg. - The capitals differ.
Photo.JPGandphoto.jpgare the same file on some computers and different files on many hosts. Use lowercase names everywhere. - The name has spaces. Use
team-photo.jpg, notTeam Photo.jpg.
- Use lowercase file names and relative paths for every image.
Your options for a real link
All of these work. They differ in how quickly you get a link and how easy the site is to change afterwards.
1. Let your AI publish it
Some AIs can use tools to publish for you. Coding tools like Claude Code and Codex can upload files directly. Chat apps often cannot reach the internet from their sandbox, so they hand you a file instead.
With Page Lemon you paste one line into the same chat. If your AI cannot publish yet, connect it once and ask again.
- Launch my site on PageLemon.com
2. Use the share button in your AI chat
Claude has a Publish button for artifacts. According to Anthropic's help article, it makes a public link on Claude's own domain. On Free, Pro and Max plans anyone with the link can open it. On Team and Enterprise plans the link is shared inside your organisation. This is handy for a quick demo, but the address is not your own. Check Anthropic's help page for the current rules.
3. Drop the file, or paste the code, with no setup
If your AI cannot publish and cannot connect, for example on ChatGPT's free plan, open pagelemon.com/drop. Drop the file there or, on a phone with no file, paste the code the AI gave you. You get a link in seconds, with no account and nothing to install. To change that same site later you need an AI that can connect: dropping a new file makes a new address.
How they compare
| Share link in an AI chat | A generic drop-in host | Page Lemon | |
|---|---|---|---|
| Time to a link | Seconds | A few minutes | Seconds from a coding tool or /drop; about 2 minutes to connect a chat app first |
| Account needed | Yes, with that AI | Varies | No to publish; a free account to keep it |
| Address | On the AI's domain | Varies | A pagelemon.dev address, or your own domain on a paid plan |
| Edit later from a chat | In the same chat | Usually re-upload | From any connected AI, same address |
| Version history | Varies | Varies | 7 days on Free, longer on paid plans |
The first two columns are general patterns, and details differ between services. Check the current terms of whichever you choose.
Your own domain
An address like www.yourcafe.co.uk looks better on a menu or a card. On Page Lemon, your own domain comes with the paid plans (Prompter is $6 a month and includes 3 domains). You buy the domain from a domain company and pay them each year. Page Lemon does not sell domains. Here is how it works.
- Find me a domain for my café
Think about next week, not just today
Getting a link once is easy. The harder part is next week, when you want to change the opening hours or add a page. Ask yourself:
- Will the address stay the same after a change? If every edit gives you a new link, you must share it again each time.
- Can an AI make the change for you? The chat where you made the site may be gone. A new chat, or a different AI, needs a way to read the current site and update it.
- Can you undo a bad change? Version history means a mistake costs a minute, not an afternoon.
- How long does a free site last? Some expire unless you sign up. That is fine, as long as you know up front.
On Page Lemon, a site published without an account stays online for 72 hours. A free account keeps up to 3 sites, with a small Page Lemon badge. The address stays the same after edits, and every change is saved as a version you can go back to.
Common mistakes
- Publishing secrets. If your AI put an API key in the page, everyone can read it once it is online. Static sites cannot keep secrets. See what goes public.
- Publishing the whole project. Upload the finished site only, not your source folders, notes or
.envfiles. - Expecting a form to email you. A plain web page cannot send email by itself. Ask your AI how form messages will be delivered before you rely on one.
- Sharing the
file:///address. It never works for anyone else.
Questions
Why does the page work for me but not for my friend?
You are opening it from your own disk. Your friend does not have that file. Publish it, then send the https:// link.
Can I just email the file?
You can, but many mail programs warn about .html attachments, and the person has to save and open it themselves. A link is easier for them and for you.
Do I need to know how to code?
No. You need the file or files, and a way to put them online. Your AI can do the rest, including changes later.
What if I have many files and folders?
Ask for a .zip with index.html at the top, and keep images in the same folder or a subfolder. Or ask the AI to put everything into one index.html, if the site is small.
What does it cost to try?
Publishing on Page Lemon is free and needs no account. Without one, the site stays online for 72 hours.