Home / Guides / Get a URL for an HTML file

Guide

How to get a shareable URL for an HTML file

A file on your computer isn't a link anyone can open. Here's how to turn an .html file into a real, shareable URL in seconds — in the browser, or straight from your code or an AI assistant.

Get a URL now — no signup

In the browser (fastest)

  1. Drop the file on htmldrop.app. No account needed.
  2. Copy the slug.htmldrop.app URL it returns.
  3. Share it. Anyone can open the page directly — no account on their end. The anonymous link lives 7 days.

From the command line or CI

Use the REST API to publish and get a URL back in your scripts:

curl -F [email protected] https://htmldrop.app/api/v1/drops

See the API reference for auth and options.

From an AI assistant

With the htmldrop MCP server connected, ask Claude, Cursor, or Cline to publish your HTML and it returns the live URL directly — handy for sharing something the assistant just generated.

File in, URL out.

Anonymous, free, no signup. In seconds you'll have a real link to send anywhere.

Try it free

FAQ

What is the fastest way to get a URL for an HTML file?

Drag the file onto htmldrop.app and copy the URL it returns — a few seconds, no signup, no build. For automation, the REST API and MCP server return a URL programmatically.

Can I make the link private or password-protected?

Yes. URLs are unguessable by default, and you can add password protection on paid plans from $3/mo so only people with the password can open the page.

Does the person I share with need an account?

No. Viewers just open the URL. Only you (the publisher) might want an account, and only to keep drops past the 7-day anonymous window.