How to Put Claude's HTML on a Real Web Address
Claude wrote you a page: an artifact, a file from Claude Code, a report it saved as .html. Here's how to give that exact file a normal web address anyone can open.
Claude made the page. Now it needs an address.
More and more of what Claude hands back is a finished HTML page: an interactive report from a chat, a dashboard Claude Code wrote into your project folder, a one-page proposal it saved as report.html. It looks right on your machine. The moment you want someone else to open it, you hit the same question: where does this file live on the web?
Emailing the file as an attachment half-works: phones won't open it nicely, and every revision is a new attachment. What you want is a plain link, https://…/your-page, that opens in any browser.
Three places Claude's HTML comes from (and how to grab each one)
| Where it came from | How to get the HTML |
|---|---|
| An artifact in claude.ai | Open the artifact's code view and use the copy button, or download it as a file |
| Claude Code | It's already a file in your project: report.html, index.html, whatever Claude named it |
| A chat answer with a code block | Copy the whole block from <!DOCTYPE html> to </html> and save it as something.html |
If the page pulls in a separate CSS or JS file, ask Claude to "inline everything into one self-contained HTML file". One file is what makes the next step instant.
Put it on the web in under a minute
1. Go to host-html and drop the .html file on the upload zone (or paste the code into the editor).
2. Check the live preview. It renders exactly what the visitor will see.
3. Create a free account if you don't have one, and publish.
You get a real web address at host-html-user.com/p/your-page. It opens on phones, unfurls with a preview card in Slack and iMessage, and nobody needs a Claude account to see it. Charts, tabs, forms and scripts keep working, because the page is served as the same self-contained file.
When you change the page, keep the same link
Claude rarely gets a report right on the first pass. When you have a new version, use Update this link on the page you already published and upload the new file: the address you already sent stays the same, and people see the new version next time they open it. No "v2" links in the thread.
Claude's own sharing vs a web address you own
Claude can share artifacts from inside claude.ai, and for a quick look that's fine. A hosted page is different in a few ways that matter once the page is going to a client, a boss or a printout:
- It's a plain web address: , not a view inside an AI app, so it reads like your work.
- It works for files Claude Code wrote locally: , which never lived in claude.ai in the first place.
- On a paid plan you get more control:: the page stays up for good, you can add a password, see per-page views, and put a QR code on a slide or a handout.
How long does the page stay up?
Free pages stay live for a few days, which is enough to share a draft. When a page needs to last (a proposal, a portfolio piece, something printed with a QR code), a paid plan keeps it online permanently.
FAQ
How do I turn a Claude artifact into a website?
Copy or download the artifact's HTML, drop it into host-html, and publish. You get a web address anyone can open, without a Claude account.
Claude Code saved an HTML file in my project. How do I share it?
Drag that file onto host-html and publish. There's no build step: the file you have is the page they'll see.
Can I publish from Claude Code without leaving the terminal?
Yes. host-html has a publish API (with a free API key from your account), so Claude Code can publish a page and give you the link directly.
Is it free?
Publishing is free with an account; free pages last a few days. Paid plans keep pages online for good.
Related reading
If your page is an artifact you built in the chat, see Share a Claude artifact as a live web page. If it's a deliverable for a client, read Send an AI-made HTML report to a client as one link. For ChatGPT output, see How to host ChatGPT's HTML output.