How to Share an HTML File from Claude So Anyone Can Open It
The most reliable way to share an HTML file from Claude is to put it online and send the link. An attachment often arrives as a wall of code or as a file the phone can't open. A link opens the page in any browser, and the other person doesn't need Claude or any account.
Why the .html attachment often fails
An HTML file is a whole web page in one file. On your computer a double click opens it in the browser, so sending it by email looks like it should just work. On the other end it tends to go wrong in a few familiar ways:
- On a phone, the mail or chat app treats it as a download and then offers a text viewer, so the person sees code instead of a page.
- Some mail programs warn about .html attachments or hold them back, because HTML files can carry scripts.
- If the page uses images or other files from your computer, they don't travel with the attachment and the page shows up with gaps.
- Every change means a new file, and after the third one nobody knows which version is current.
A teacher who opens homework on a laptop will probably manage. A client checking your proposal on a phone between meetings usually won't.
Three ways compared
| Send the .html file | Claude's share or publish link | Hostilo link | |
|---|---|---|---|
| What the person opens | A file to download | Your artifact on Claude's website | Your page at name.hostilo.page |
| On a phone | Often shows code or won't open | Opens in the browser | Opens in the browser, with HTTPS |
| What's around the page | Depends on the device | Claude's interface and branding | Only your page |
| Your own address or domain | No | No | name.hostilo.page, your own domain on PRO |
| Changes later | Send a new file | Depends on Claude's sharing options | Same link, new version, earlier versions kept |
| Cost | Free | Part of your Claude plan | Free to start, PRO 29 USD a year net |
Claude's own sharing is a quick way to show a colleague what you made. What exactly the link shows and who can open it depends on your Claude plan and settings, so check it in Claude before you send it to a client. We compared Claude's Publish button with real hosting in How to publish a Claude artifact as a real website. This guide covers the step after that: you have the file or the code, and someone else has to open it.
Step by step: share it as a Hostilo link
Get the code out of Claude
It depends on what Claude gave you:
- A code block in the chat: click the copy button in the corner of the block.
- An artifact: use the copy button in the artifact panel, or ask: “Give me the complete HTML of this page as one file.”
- A downloaded .html file: on Windows, right-click it, choose Open with and pick Notepad, then select all and copy. On a Mac it's quicker to ask Claude to show the code in the chat again.
Start the wizard
On the Projects tab click “Start the wizard”. It opens on pasting code from AI.
Paste and pick an address
Paste the code. Claude's whole answer works too, explanations included: the wizard cuts out the page from <!DOCTYPE html> to </html>. Then type an address, for example anna-portfolio, which gives you anna-portfolio.hostilo.page. Use lowercase letters, digits and hyphens.
Publish and send the link
Click “Publish the site”. The link works right away, with HTTPS. Copy it and send it by email, WhatsApp, Slack or text message.
Ask Claude: “Put everything into one HTML file with the CSS and JavaScript inside.” If it has to stay as several files (images, extra pages), pack the folder into a ZIP and upload it in Hostilo.
Or let Claude publish it for you
If you share pages from Claude often, connect Hostilo once. Hostilo is in Claude's connector directory: open Hostilo in the directory, click Connect and sign in. From then on you write in the chat “Publish this page on Hostilo as anna-portfolio”, and Claude replies with the live link. Setup, example prompts and limits are in Publish a website straight from Claude with the MCP connector.
After you send the link
The link stays the same when the page changes. Fix a typo in the Hostilo editor, or ask Claude for a new version and paste it over the old one. The other person refreshes and sees the update. Hostilo keeps earlier versions, so you can go back if a change breaks something.
Two PRO features help with client work. A password per page means only people who know it can see the draft. Your own domain lets the page run at offer.yourcompany.com instead of name.hostilo.page. PRO costs 29 USD a year net.
Frequently asked questions
Does the other person need a Claude or Hostilo account?
No. They click the link and the page opens in their browser, on a phone or a computer.
Is it free?
Yes, you can start free with no card. PRO (29 USD a year net) adds your own domains and a password for each page.
Who can see my page?
Anyone who has the link. Without a password, treat the link like a document anyone can forward. For a client draft, set a password on the page (PRO).
Can I share a page with several files or images?
Yes. Ask Claude for one self-contained HTML file, or upload the whole folder as a ZIP. Images from your computer must be in the ZIP; images from https addresses work as they are.
Turn Claude's HTML into a link
Paste the code, pick an address and send the link. Free to start, no credit card.
Share your page free

