HTML to URL converter: paste HTML, get a link

Paste or type HTML, check the preview, press Publish: you get a link.Watch 0:29

Your HTML

Only via your unique private link.

More settings

Free · no sign-up · no API key

Copy the prompt for your AI

Ask for one file that runs as is, then paste it above

Give me the page as one self-contained HTML file in one code block: <!doctype html>, inline <style> and <script>, images as https URLs or data URIs, no imports of local files, no build step. I will paste it into brewpage.app/html-to-url to get a link.

For a page that loads its own CSS, scripts or images from your computer.

This page loads separate CSS, JavaScript or images from my computer. Fold everything into one HTML file: styles in <style>, scripts in <script>, images as https URLs or data URIs. Return the whole file in one code block so I can paste it into brewpage.app/html-to-url.

For an AI that can send requests: it converts and replies with the URL.

Convert this HTML to a URL: POST it as the raw body to https://brewpage.app/api/html (Content-Type: text/html, no key) and answer with the link. Keep manageUrl and ownerToken private; send manageUrl only to me.

For the agent that made the URL.

Put the edited HTML on the same URL: PUT it to https://brewpage.app/api/html/{namespace}/{id} with the X-Owner-Token from the first answer. The link must not change.

Skip the paste: connect BrewPage to your AI in one commandOther clients →

HTML to URL in three steps

  1. 1Paste or type your HTML in the editor, or press Try a sample.

  2. 2Check the preview: your scripts run in a sandbox and nothing is sent yet.

  3. 3Choose Private or Public and press Publish: home opens with your link.

HTML to URL in the editor · 0:29

Snippets and whole pages

A fragment is enough: a <div> with a <style> block becomes a page. A whole document, from <!doctype html> to </html>, stays exactly as written, inline <style> and <script> included. Load fonts, images and libraries by a full https:// URL. One page can be up to 5 MB.

Got files or a folder?

A page with its own CSS, JavaScript and image files needs those files next to it: drop the whole folder or a .zip on free HTML hosting and the relative links keep working.

When the link differs from the preview

Publish from your AI or a script

MCP server URL: add it once in your AI app

https://brewpage.app/mcp

Raw HTTP: the response holds the link and the ownerToken

curl -X POST "https://brewpage.app/api/html?ns=public" -H "Content-Type: text/html" --data-binary @page.html

HTML to URL converter — FAQ

Is the converter free?

Yes. Converting and reading cost nothing, with no sign-up and no API key. You set how long each page stays.

Does JavaScript run in the preview and on the link?

Yes. The preview runs your inline scripts in a sandboxed frame on this page. A Private page gets its own address, where scripts run natively. On a public page's default address the page runs in a sandbox; choose Subdomain under More settings if it needs features such as browser storage.

Can I change the HTML after I get the URL?

Yes. Keep the management link shown with your link: it lets you replace the page at the same URL or delete it. An update keeps the original expiry.

Who can see my link?

Private, the default here, gives the page an unlisted address that anyone with the link can open. Public lists it in the gallery and lets search engines index it. Add a password under More settings.