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
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
-
1Paste or type your HTML in the editor, or press Try a sample.
-
2Check the preview: your scripts run in a sandbox and nothing is sent yet.
-
3Choose Private or Public and press Publish: home opens with your link.
What the link looks like
A public page gets an address like brewpage.app/public/aB3xK9mP2q, or its own subdomain when the page needs one. It opens in any browser, phones included, and shows a small BrewPage badge.
Keep the management link shown next to your link: with it you replace the HTML later and the URL stays the same, so everyone you sent it to sees the new version.
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
- Saving data in the browser, forms that navigate: a public page's default address runs it in a sandbox. Open More settings and choose Subdomain: the page gets its own address where these run natively.
- Missing styles or images: the page points to files by a relative path (
style.css,img/logo.png). Use full URLs, or publish the folder as a site.
Publish from your AI or a script
MCP server URL: add it once in your AI app
https://brewpage.app/mcpRaw 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.htmlHTML 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.