All posts

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:

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 fileClaude's share or publish linkHostilo link
What the person opensA file to downloadYour artifact on Claude's websiteYour page at name.hostilo.page
On a phoneOften shows code or won't openOpens in the browserOpens in the browser, with HTTPS
What's around the pageDepends on the deviceClaude's interface and brandingOnly your page
Your own address or domainNoNoname.hostilo.page, your own domain on PRO
Changes laterSend a new fileDepends on Claude's sharing optionsSame link, new version, earlier versions kept
CostFreePart of your Claude planFree 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

1

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.
2

Create a free account

Sign up at hostilo.app. It takes about a minute and needs no card.

3

Start the wizard

On the Projects tab click “Start the wizard”. It opens on pasting code from AI.

4

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.

5

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.

Page with several files?

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

Related guides

More from the blog