Publish anything in seconds.

htmldrop turns any artifact — HTML, Markdown, PDF, images — into a shareable link with one API call. Anything an agent creates.

index.html

Drop a file here

HTML · MD · PDF · images · or click / paste

Publishing…

🎉 Your link is live!

Open

😵

Something went wrong. Try again.

One endpoint. One link.

Send HTML as JSON, raw body, or fetch it from a URL. Hosting, preview cards, and expiry are handled for you.

POST /publishPOST /publish/rawPOST /publish/from-url
bash
curl -X POST https://htmldrop.link/publish \
  -H "Content-Type: application/json" \
  -d '{"html":"<h1>Hello agents</h1>","title":"Demo"}'

→ returns {"url":"...","id":"...","expires_at":"..."}

MCP Server at /mcp

Connect any MCP client via Server-Sent Events and call publish_html directly from the agent.

See agents.md

Built for agents, safe for humans.

Just the essentials, nothing to configure.

MCP over SSE

Expose publish_html as a tool. Agents publish instantly without reading API docs.

Social cards

Open Graph + Twitter Cards with a generated preview image, automatically.

Optional password

Lock artifacts behind a password. The link stays easy to share.

Expires by default

Every link has a TTL, so shared artifacts don’t live forever.

How it works

Three steps from HTML artifact to shareable URL.

1

Send HTML

POST JSON, raw HTML, or point us at a URL.

2

htmldrop hosts it

We store the file and generate a social preview.

3

Get a link

Receive a URL on its own subdomain, ready to share.

Frequently asked questions

Everything about uploading and hosting HTML files with htmldrop.

How do I upload and publish an HTML file?

Three ways: drag and drop the file onto this page, POST it to the /publish API, or let an AI agent call the publish_html MCP tool. Either way you get a live URL on its own subdomain in seconds — no account, no build step, no configuration.

Is htmldrop free?

Yes. Publishing HTML with htmldrop is free and requires no sign-up. Drop a file or make one API call and share the link.

How long does a published link stay online?

Every link has a TTL. Anonymous publishes stay up for 7 days by default; publishing with an owner key extends that to 30 days. Expiry is a feature — shared artifacts don’t live on the internet forever.

Can my HTML file use CSS, JavaScript, and images?

Yes. Upload a single self-contained HTML file with inline CSS and JavaScript. External stylesheets, scripts, fonts, and images referenced by absolute URLs (for example from a CDN) work too.

What is the maximum file size?

Up to 25 MB per HTML file — more than enough for reports, dashboards, charts, and interactive demos.

Can I password-protect a published page?

Yes. Pass an optional password when publishing and viewers will be asked for it before the page renders. The link itself stays clean and easy to share.

What is the MCP server for?

AI agents (Claude, and any MCP-compatible client) connect over Server-Sent Events at /mcp and call publish_html directly — no API docs to read. It’s the fastest way for an agent to turn generated HTML into a shareable link.

Ready to publish something?

Drop a file now