Share an HTML file as a link

Turn a page you made — one HTML file, or a folder or zip with its images, CSS and scripts — into a link that opens in any browser. Send it to anyone, or make it private to the people you invite.

Facts checked · sources linked inline

Drop an HTML file, folder or zip — get a live link

We check it for what would break online first. Nothing leaves your browser until you publish, which needs a free host0 account — sign in with an email code or Google.

Why a page that works on your computer breaks online

It's almost always one of these. The checker looks for all of them when you drop the file, and names the file and line.

  • No index.html at the top. A folder's link opens its index.html, so a folder without one won't publish — rename your main page to index.html. A lone HTML file is fine — it's served at the root of the link.
  • Paths to your own disk. file:///C:/Users/… or /Users/you/Desktop/… only exist on your machine. Copy the file into the folder and use a relative path like images/logo.png.
  • Missing files and wrong case. Every image, script and stylesheet the page loads must be uploaded with it, spelled exactly — web servers treat Logo.png and logo.png as different files.
  • http:// assets. Fonts and libraries loaded from https:// URLs keep working anywhere; plain http:// ones get blocked on an HTTPS page.
  • Source code instead of a built site. Browsers can't run .tsx, .vue or .svelte files — run the build and drop the output folder (dist/, build/ or out/).
  • API keys. A key in the HTML or JS is readable by anyone who opens the link. If the checker finds one, revoke it with the provider first, then remove it.

Who can open it

A new link is private: only you can open it until you choose who else can. Flip the anyone with the link switch to let anyone with the link open it — search engines are told not to index it, so it isn't listed anywhere. That link isn't secret, though — it can be forwarded. Want it found in search, like a portfolio or a landing page? Make it public on the web from the app's Sharing tab in your dashboard. A new link gets a random address like k3x9q2m7ta.host0.app; rename it to something readable on the app's Settings tab, keeping in mind that a readable name can be guessed. If the page holds anything sensitive — client data, salaries, an internal report — keep it private and invite people by email from the card that appears after you publish (or on the app's page in your dashboard). Everyone else is stopped at a sign-in page, and removing someone ends their access immediately.

Limits

  • 1,000 files, 10 MB per file, 250 MB per publish on Starter. Pro takes 50 MB per file and 1 GB per publish. Anything over is stopped before it uploads.
  • 7-day free trial, then from $9 a month. Pages during the trial show a small “Hosted on host0” badge in a corner of the page, clear of your buttons; Starter ($9/month) and Pro ($19/month) remove it once paid — see pricing.

Made it in a chat with Claude, ChatGPT or Gemini?

Chat apps hand you code, not a file. To get one you can drop here:

  1. 1Save it as a real file. Use the download option if your chat app shows one; otherwise copy the whole code block into a plain-text editor and save it as index.html. On a Mac, TextEdit needs Format → Make Plain Text first, or it saves rich text that won't open as a page.
  2. 2Make it one file if you can. If the code mentions images or files you don't have, ask the assistant: "Put everything into one self-contained HTML file — inline the CSS and JavaScript, load libraries from a CDN, and embed small images as data URLs."
  3. 3Watch for API keys. If the app calls an AI API straight from the browser, the key ships with the page. Don't publish it that way.

Publishing from a coding agent

If you work in Claude Code, Cursor or Codex, the files are already on your disk and the agent can publish them. With the host0 skill installed, ask it:

In your agent

you:    publish this folder to host0
agent:  ./scripts/publish.sh ./my-site
        → https://k3x9q2m7ta.host0.app/
you:    rename it to team-report
agent:  → https://team-report.host0.app/

The first time, the agent shows a sign-in link and a short code; you approve it in your own browser, so you don't paste anything into the chat. The link starts private — saying "share it with ana@example.com" lets the people you name in, and "anyone with the link can open it" opens it up without indexing it. Details in the docs.

Why a Google Drive, Dropbox or OneDrive link shows code instead of the page

Cloud drives share an HTML file as a file — to download, or as source code — not as a page. Dropbox says its shared links don't render HTML, and adding raw=1 doesn't change that (Dropbox Help). Google Drive stopped hosting web pages in 2016 (Google Workspace Updates). A shared index.html on OneDrive shows the raw code (Microsoft Q&A). A drive link is still fine if the other person just needs the file to open on their own computer.

Frequently asked questions

Can I just send the HTML file on WhatsApp or by email?

You can attach it, but the other person gets a file, not a page. On a phone it often opens as plain text or asks which app to use, and any images, CSS or scripts that sat next to it on your computer don't come along. A link opens in any browser, on any device.

How do I share a local HTML file without uploading it?

If the other person is on the same Wi-Fi, run a tiny web server in the folder (python3 -m http.server 8000) and send them http://your-computer's-ip:8000. It only works on that network and only while your computer is on and the command is running — for anything else, upload it.

Can I drop a zip of my site?

Yes. Your browser unpacks it on your device, takes off a single wrapping folder and leaves out junk like __MACOSX and .DS_Store. It then goes through the same checks as a folder, so it needs an index.html at the top.

Can I update the page later and keep the link?

A new drop on this page always makes a new link. To update a page in place, open it in your dashboard and drop the new files on its Versions tab, or have a coding agent with the host0 skill publish the new version into the same app — the link stays the same. On Pro, versions from the last 30 days are kept (7 on Starter), so you can put an older page back in one click.

Related free tools

See all free tools →

Built something? Put it online in seconds

host0 hosts whatever your agent created: bring any coding agent, build the tool only you need — like this one — and say "deploy to host0". Live at a shareable URL, no servers to run.