free · no signup · pages live for 24 hours
drop an html file.
get a public url.
html · htm · 10mb max · live in < 1s
or just tell your agent.
01 / made it with aitell your agent to publish to htmlshare
it's live at htmlshare.net/p/…
if it's html, you can share it.
02 / what people publishhtml to url in seconds.
share now. keep it if it matters.
publishing from code? one post, one url back.
add the mcp server once. claude, chatgpt, your shell, your code — every agent can publish. an api key makes publishes permanent.
full api reference →mcp · claude
{"mcpServers": {"htmlshare": {"url": "https://api.htmlshare.net/v1/mcp"}}}
then ask claude: “publish this as an htmlshare link” — it just works. chatgpt too. setup for every client →
curl
# publish from the terminalcurl -X POST https://api.htmlshare.net/v1/publish \-H "content-type: application/json" \-d '{"html":"<!doctype html><h1>hello</h1>"}'# → { "url": "https://htmlshare.net/p/k9m2qa42", "expiresAt": "..." }
accepts application/json (html field) or multipart/form-data with a file. 10mb max.
node.js
import { readFile } from 'node:fs/promises';const html = await readFile('./report.html', 'utf-8');const { url } = await fetch('https://api.htmlshare.net/v1/publish', {method: 'POST',headers: { 'content-type': 'application/json' },body: JSON.stringify({ html }),}).then((r) => r.json());console.log(url); // → https://htmlshare.net/p/k9m2qa42
works anywhere with fetch — node ≥ 18, bun, deno, browsers.
common questions.
what is htmlshare?
a fast way to publish an html file online and get a public url. upload a file from your browser, or publish straight from an ai agent, script, or app through the api.
how do i turn an html file into a url?
drop your .html file on this page and it publishes to a public url you can share immediately. no deploy, no hosting setup, no build step.
can i host html for free?
yes. you can publish anonymously, for free, without creating an account. anonymous pages stay online for 24 hours; a free account keeps pages permanently.
how long does an anonymous page stay online?
anonymous pages stay live for 24 hours. to keep one, create a free account and claim it — the success card walks you through it, and can email you a claim link before the page expires.
can i publish html created by claude or chatgpt?
yes — that is what htmlshare is built for. html generated by claude, chatgpt, codex, cursor, or any other ai tool publishes exactly like a hand-written file.
can an ai agent publish directly to htmlshare?
yes. agents publish through the rest api or the htmlshare mcp server without you uploading anything by hand. connect it once and publishing is one sentence in the chat.
what can i publish?
reports, dashboards, prototypes, presentations, portfolios, landing pages, calculators, visualizations, experiments — any self-contained html page.
do i need an account?
no. publish anonymously and share the url right away. create an account when you want to keep a page, pick a custom url, or manage what you have published.
does htmlshare change my html?
your stored html is never modified — what you upload is what the api returns, byte for byte. the only addition is a small "published with htmlshare" badge added at serve time on free pages.