How to Share a ChatGPT-Generated HTML Page as a Link
ChatGPT can write the page but can't host it. Here is how to share a ChatGPT-generated HTML page as a real link, in a minute, with no hosting to set up.
To share a ChatGPT-generated HTML page, most people screenshot the preview or send the file, and both lose the page. A screenshot can't be clicked, and a file has to be downloaded and opened before anyone sees anything. What you want is a link, and ChatGPT can't give you one: it writes the page, but it can't host it.
I built ShareMyPage to be that missing host, so the tool I recommend below is mine. Here is how I'd do it, and where it falls short.
Get the whole file out of ChatGPT first
ChatGPT gives you the page in one of two places:
- In a code block. Hover the block and use the copy button in its top corner. The document that starts at
<!doctype html>is what you want. - In Canvas. Select all inside it and copy, or ask "give me the full HTML as one file" and it drops a clean, self-contained document into a code block.
Either way you end up with one HTML document. Paste it into a text editor and save it as an .html file. ChatGPT's preview renders it inside the chat, but that preview isn't a link anyone else can open.
Upload it and you have the link
This is for you if:
- ChatGPT made you a landing page, a report or a small tool
- you want to send it to people who aren't in your chat
- you don't want to set up hosting for one page
- Save the full HTML from the code block or Canvas as an
.htmlfile. - Open ShareMyPage and drop the file in.
- Pick who can see it, then copy the link and share it.
The page renders at a clean URL, runs in a sandboxed frame so it is safe to open, and you can edit it later without the link changing.
Two downsides. The copy, save and upload steps are manual. On a paid ChatGPT plan you can skip them by connecting ShareMyPage's MCP server in developer mode, then asking ChatGPT to publish the page itself. And the sandbox gives the page no localStorage, so a tool that saves things in the browser forgets them on reload.
Keep it private if it's a draft
A page from ChatGPT might be a public demo or an internal draft. The same upload covers both:
- anyone with the link, for things you want the world to see
- anyone with the link plus a password, when only certain people should get in. See how to password-protect a page.
- your workspace only, when it should stay inside your team
- just you, until it's ready
A link keeps up, a file doesn't
A link previews properly when shared, works on phones, and always points at the latest version. A file gets copied, renamed and lost. Building with Claude too? See how to share a Claude artifact.
The short version
- Use a screenshot if all they need is a glance.
- Use a link if they need to click, scroll or use the page.
- Use ShareMyPage if you want that link without hosting, and want to choose who sees it.
One tip: ask ChatGPT for the full HTML as one file even when the code block looks complete. It's the easiest way to make sure you're not uploading half a page.
Ready to share your next ChatGPT page? Create a page on ShareMyPage and drop it in.