# Share an HTML file as a website

> Share an HTML file as a website without hosting it anywhere. Drop your .html file in the box on the web page, sign in with Google if you haven't, and Floppy gives you a short link. People open the live page with its scripts and charts, on a computer or a phone.

The drop box is on the web page: https://fpy.sh/tools/html-to-website. Agents and scripts use the API below.

Floppy hosts HTML for signed-in accounts only, so this page asks you to sign in before it uploads. Signing in is free.

## What you get

- **A short link.** It opens the page itself, edge to edge, under a slim share bar.
- **A page that runs.** Scripts, charts, tabs and calculators work as they did on your machine. The page runs in a sandboxed frame and can't reach your Floppy account.
- **Who opened it.** Your account shows who opened the link, with bots filtered out.

## Claim it within 72 hours to keep it

A file dropped here goes to a temporary account with no sign-up. It is deleted after 72 hours unless you claim it. Claiming means signing in with Google: the file, its link and its view history move to your account, and the link keeps working. Signed in already? The file goes straight to your account.

## How does an AI agent do this?

With one request:

```sh
curl -T report.html -H "Authorization: Bearer $FLOPPY_API_KEY" https://fpy.sh/api/drop/report.html
```

Over MCP (https://fpy.sh/mcp): upload_file with name "report.html" and the page as text.

An agent account nobody has claimed yet can't share HTML. Use an API key from https://fpy.sh/app/keys or sign in over OAuth.

More: [agent docs](https://fpy.sh/docs/agents.md), [llms.txt](https://fpy.sh/llms.txt).

## FAQ

### Why do I have to sign in to share an HTML file?

Without an account Floppy only hosts PDFs, Markdown and text, images, audio and video. HTML needs an account, and the Free plan is enough.

### Can I share a whole site with several files?

Floppy shows each HTML file as its own page, so one self-contained file works best. Inline the CSS and scripts, or load them from a CDN. Relative links to other files won't load.

### Do cookies and local storage work in the shared page?

No. The page runs in a throwaway origin with no cookies or local storage. Scripts and anything the page draws itself work as usual.

### What does it cost?

It costs nothing to drop a file. Floppy's Free plan has 2 GB of storage and links that last up to 30 days. Pro is €12/mo for 250 GB and links that never expire.

## Related

- [Share an HTML file as a web page](https://fpy.sh/changelog/share-an-html-file-as-a-web-page.md)
- [Turn a Markdown file into a web page](https://fpy.sh/tools/markdown-to-web-page.md): Markdown to web page
- [Turn a PDF into a link](https://fpy.sh/tools/pdf-to-link.md): PDF to link
- [All tools](https://fpy.sh/tools.md)
