Publish HTML from ChatGPT: paste the code, get a link

Any ChatGPT plan, Free and Go included. The chat text around the code is removed for you.

Watch 0:33
From ChatGPT

Only via your unique private link.

More settings

Free · no sign-up. Not affiliated with OpenAI. ChatGPT is a trademark of OpenAI.

Copy the prompt for ChatGPT
Put the whole page in one html code block: a single self-contained file with inline CSS and JavaScript, plain JavaScript instead of React, no separate files, no text after the block. I will press Copy code and publish it on BrewPage.

Use it in the chat that already holds the answer.

Turn your last answer into one self-contained HTML page in a single html code block: keep every section, table and number, add clean inline CSS, make it easy to read on a phone, and write nothing outside the block. I will press Copy code and publish it on BrewPage.

Paste your page's code after it and say what to change.

Here is the HTML of my page. Change only what I describe and return the whole file again in one html code block, nothing shortened or left out: I will paste it over the old version on my BrewPage management link. What to change:

For Codex, or ChatGPT with the BrewPage MCP server added: it needs a tool or a terminal.

Publish the finished page yourself. With the BrewPage tool, call publish with the page as content. Without it, POST the HTML as the raw body to https://brewpage.app/api/html with Content-Type: text/html (no key needed). Reply with the link, and give me the private manageUrl separately.

Connect BrewPage to your AI in one commandClaude Codeclaude mcp add --transport http brewpage --scope user https://brewpage.app/mcpIn ChatGPT: add the server URL.Every client →

From ChatGPT to a link · 0:33

Publish HTML from ChatGPT in three steps

  1. 1Ask ChatGPT for one file: add the prompt above to your request.
  2. 2Press Copy code on the code block. Copied the whole answer instead? That works too.
  3. 3Paste it into the box, choose Public or Private and press Publish. Your link is ready on the next screen.

ChatGPT Sites or a BrewPage link?

OpenAI's own way to publish is ChatGPT Sites. It is not on every plan:

  • ChatGPT Free or GoSites is not available on these plans.

    With BrewPagePaste the code here and get a link on any plan, with no account.

  • ChatGPT SitesOn Plus and Pro accounts, and in Business and Enterprise workspaces.

    A BrewPage linkYou set how long it stays and add a password if you like; the page can even save what visitors enter with Page data.

  • Whole answer copiedChat text and ``` fences come along with the page.

    This boxKeeps only the page, says what it removed and offers Undo.

Source: OpenAI Help: Creating and using ChatGPT Sites, read 2 Dec 2026.

Pasted the whole answer? We keep the page

ChatGPT wraps code in a code block and talks around it. When you paste the whole answer, BrewPage finds the page inside and publishes only that:

  • Chat text before and after the page, such as “Here is your page” and “Want me to add more?”.
  • Code fences: the ```html line and the closing ```, even when the closing one got cut off.
  • Escaped HTML: a page pasted as <html> text is turned back into a page.

The paste stays exactly as it is when it holds two pages or a long explanation around the code. Then ask ChatGPT for one file and copy again. Undo always puts back what you pasted.

When the page doesn't work

  • Blank page, or the box says “React code”. ChatGPT wrote a React component, which needs a build step. Ask it for plain JavaScript in one HTML file: the prompt above says so.
  • No styles, or buttons do nothing. The page points at style.css or app.js that were never pasted. Ask ChatGPT to put them inside the page, or publish the folder as a site.
  • Only part of the page. A long answer can stop before </html>. Ask ChatGPT to continue, then paste the rest at the end.

Let ChatGPT publish for you

Add BrewPage as a custom MCP server and ChatGPT publishes the page itself, then replies with the link. In ChatGPT open Plugins, click +, then Add custom MCP server, name it BrewPage and paste the URL.

Server URL

https://brewpage.app/mcp

Then ask ChatGPT

Publish this to my BrewPage account
  1. 1When you add the server, choose OAuth or no authentication.

  2. 2Ask ChatGPT: “Publish this to my BrewPage account”.

  3. 3Follow ChatGPT’s sign-in prompt; in BrewPage, sign in if asked and click Authorize.

Custom servers follow your ChatGPT plan and workspace settings. Full steps: Integrations: ChatGPT.

Publish HTML from ChatGPT — FAQ

Do I need ChatGPT Plus?

No. Any plan works, Free and Go included: copy the code ChatGPT writes and paste it here. ChatGPT Sites, OpenAI's own publishing, needs Plus, Pro, Business or Enterprise.

Does the reader need a ChatGPT account?

No. The link opens an ordinary web page in any browser, on phones too.

Can I update the page after ChatGPT changes the code?

Yes. Keep the management link from your result: paste the new version there and the same link shows it.

Is BrewPage affiliated with OpenAI?

No. BrewPage is an independent publishing service. ChatGPT is a product of OpenAI.