Publish HTML from ChatGPT, DeepSeek or Gemini
ChatGPT, DeepSeek, Gemini and other chats write complete pages: calculators, quizzes, lessons, forms, small games. Copy the code, paste it into BrewPage and get a link you can share, right from your phone.
Free · no sign-up. Not affiliated with OpenAI, Anthropic, Google or DeepSeek. ChatGPT, Claude, Gemini and DeepSeek are trademarks of their owners.
Copy the prompt for ChatGPT
Give me the whole result as one self-contained HTML file in a single code block. Keep it as a draft so I can publish it myself.Works in any chat: send it after the answer you want to share.
Turn the answer above into one self-contained HTML page in a single code block: same content, tidy inline CSS, readable on a phone. Leave it as a draft so I can publish it myself.For an AI that can call tools or run commands.
Publish what you just built on BrewPage and reply with the link: use the BrewPage publish tool if you have it, otherwise POST the HTML to https://brewpage.app/api/html (Content-Type: text/html). Send me the private manageUrl separately.For the agent that published the first version.
Publish the new version to the same BrewPage link, not a new one: update_publication with the saved owner token, or PUT the HTML to https://brewpage.app/api/html/{namespace}/{id} with X-Owner-Token.Connect BrewPage to your AI in one commandClaude Codeclaude mcp add --transport http brewpage --scope user https://brewpage.app/mcpCursor, ChatGPT and other clients →
From a chat answer to a link
Copy what the chat wrote, paste it into the box, choose Public or Private and press Publish. The link opens on any phone, and the reader needs no account.
Publish HTML from ChatGPT, DeepSeek, Gemini or any chat
- 1Ask the chat for one file: add the line below to the end of your request.
- 2Tap Copy code under the answer, or Download the file.
- 3Open the editor, tap Paste for the code or Browse for the file, and tap Publish.
Line for the chat
Give me the whole result as one self-contained HTML file in a single code block. Keep it as a draft so I can publish it myself.
Copied the whole answer, text and all? If it holds one HTML code block, BrewPage publishes just that block and tells you so. Save the management link from the result if you want to publish a new version later.
Worked example: the whole answer in, the page out
You paste the whole answer
Here is your quiz page:
```html
<!doctype html>
<html lang="en">
<head><title>Planet quiz</title></head>
<body><h1>Planet quiz</h1><button>Start</button></body>
</html>
```
Want me to add a timer?BrewPage publishes the page
<!doctype html>
<html lang="en">
<head><title>Planet quiz</title></head>
<body><h1>Planet quiz</h1><button>Start</button></body>
</html>If your chat can run code
Some chats can run code with network access, for example a chat with the BrewPage connector. Paste this prompt and the chat publishes the page by itself and replies with the link:
Prompt for the chat
When you make an HTML page or report for me, publish it on brewpage.app. Use exposed BrewPage MCP: publish({content}) if listed, else publish_html if available. If no tool fits, POST raw HTML body to https://brewpage.app/api/html (Content-Type: text/html). Private unless asked. Give me link and private manageUrl. Save or privately hand off ownerToken. Update in place. Never switch routes after a write attempt. See https://brewpage.app/llms.txt.
From a coding agent: Claude Code, Codex, Cursor and others
Put the prompt above into your agent's project notes, such as AGENTS.md or CLAUDE.md. Ask it to publish a finished report or update the same page. Add BrewPage as a remote MCP server for one-call publishing:
MCP server URL
https://brewpage.app/mcp
It works without signing in. See Integrations for setup and llms.txt for the tools and REST recipes. Claude Code users can also run /brewdoc:publish from the Claude Code plugin.
The request behind it
For direct REST publishing, use JSON when the HTML is already in a variable:
Publish HTML from JSON
curl -X POST "https://brewpage.app/api/html" \
-H "Content-Type: application/json" \
-H "User-Agent: MyAgent/1.0" \
-d '{"content": "<h1>Build report</h1><p>All checks passed.</p>"}'
The response carries the link, the ownerToken and the expiry date. In GitHub Actions the same step is one action:
GitHub Actions step
- name: Publish report
id: brewpage
uses: kochetkov-ma/brewpage-action@v1.2.5
with:
path: ./report.html
- run: echo "Report: ${{ steps.brewpage.outputs.url }}"
Check AI output before you publish
- One file. Generated pages sometimes point at
style.cssorapp.jsthat were never written. After publishing, BrewPage warns when a page references local files that were not uploaded; inline them, or publish the folder as a site. - No secrets. Generated code can contain API keys, tokens or internal URLs copied from the conversation. Remove them before publishing.
- The right audience. Public pages are listed in the gallery and the sitemap, unlisted links can be forwarded, and only a password restricts reading.
- Browser features. If the page stores data in the browser or changes the address bar, it works best on its own subdomain; BrewPage may choose that address automatically and tells you why.
Limits
- Size
- One HTML or Markdown page up to 5 MB. A multi-file site up to 20 MB in total, 200 files, 5 MB per file.
- Lifetime
- You pick how long the page stays online; with a free profile you can extend it any time. When the time is up the content is deleted for good, with no recovery. Updating a page keeps its original expiry date; it does not extend it.
- Visibility
- Public pages without a password are listed in the gallery and the sitemap, and search engines can index them. An unlisted address is not private: anyone who has the link can open it. Set a password (at least 4 characters) when readers should have to enter one.
Ownership, rate limits and the badge: Help. Publishing follows the terms, and anyone can report a page.
Compared with typical hosting for generated pages
| Question | BrewPage | Typical static-site host | Code playground |
|---|---|---|---|
| Account needed | No | Usually yes | Depends on the service |
| Can an agent publish without a human | Yes: API, MCP server, plugin or GitHub Action | Through a deploy tool and credentials | Depends on the service |
| What the reader sees | The page itself, with a small badge | The page itself | The page next to the code editor |
| How long it stays online | As long as you set, then deleted | Until you take it down | Varies |
| Can the page save what visitors enter | Yes: Page data is built in, with no key in the page | Usually through an added form or database service | Depends on the service |
| Good fit | Reports, prototypes and one-off pages from AI tools | Sites you maintain | Experimenting with code |
How each AI shares a page
| Question | ChatGPT | Gemini | Claude | DeepSeek | Other chats |
|---|---|---|---|---|---|
| Own publishing | ChatGPT Sites on Plus, Pro, Business and Enterprise; not on Free or Go | A shared Canvas link | Publish on Free, Pro, Max and Ultra; Share & copy link on Team and Enterprise | — | — |
| Where the shared link opens | — | Only in gemini.google.com, not in the Gemini mobile app | On Team and Enterprise, inside your organization by default | — | — |
| Reader needs an account | — | — | Most artifacts no; docs and sheets need a Claude sign-in | — | — |
| With BrewPage | Copy, paste, get a link on any plan | Copy the Canvas code, get a link that opens anywhere | Copy the artifact code, get a link with no sign-in | Copy, paste, get a link | Copy, paste, get a link |
— means the vendor's help pages say nothing we can cite. Sources, read 2 Dec 2026: OpenAI Help: ChatGPT Sites, Gemini Help: Canvas, Claude Help: Share artifacts.
Publishing AI-generated HTML — FAQ
Can ChatGPT publish a page by itself?
On Plus, Pro, Business and Enterprise, ChatGPT Sites can publish a site. On Free and Go, copy the code and publish it here; with the BrewPage connector ChatGPT can publish for you, where your plan allows custom servers.
Can I publish from my phone?
Yes. Copy the code in the chat app, open the editor in your phone browser, tap Paste, then Publish. You can upload a downloaded .html file instead.
What if I paste the whole answer, not just the code?
If the answer holds one HTML code block, BrewPage publishes only that block and tells you so. If it holds several code blocks, ask the chat for one self-contained HTML file and copy the code again.
Which AI tools work with BrewPage?
Any tool whose output you can copy, and any agent that can make an HTTP request or use an MCP server: Claude Code, Codex, Cursor, Gemini CLI and others.
What if the generated page loads external files?
Files referenced by a full URL load as usual. Files referenced by a relative path must be published together as a site: drop the folder or a .zip.
Is AI-generated content allowed?
Yes, within the terms that apply to every publication. Anyone can report a page that breaks them.