How to share HTML made in ChatGPT
Turn HTML that ChatGPT wrote into a working link for specific people. Exact steps, a prompt that avoids broken exports, and a pre-send checklist.
Last updated
Steps
- 1
Ask for a single self-contained file
Use the prompt below so ChatGPT returns one HTML file with styles, scripts and data inside it.
- 2
Save the code as an .html file
Copy the full code block into a text editor and save it as report.html, or download the file if ChatGPT offers one.
- 3
Test it locally
Open the file in your browser. Click every tab, chart and button once.
- 4
Publish and choose access
Upload the file to Linkwoven and choose password, verified email or invited only.
- 5
Send the link
Paste the link into an email or chat. You are notified when someone opens it.
ChatGPT can write a complete HTML page: a report, a calculator, a small dashboard. The preview looks finished. The gap is getting that page to someone else in a form that still works and is not open to the whole internet.
Why not paste the code or attach the file
- Pasting code gives the recipient markup, not a document.
- Attaching the .html file works only if the recipient is willing to open an unknown HTML file, and many mail filters block or strip them.
- Cloud drives generally show HTML as source or offer it as a download. They do not render it as a page.
- A public static host renders it, but anyone with the URL can read it.
A private link renders the page and decides who can open it.
The prompt
Paste this after ChatGPT has produced a version you like:
Give me this as one complete HTML file in a single code block.
- All CSS and JavaScript inline in the file.
- All data embedded in the file. No fetch calls to outside URLs.
- Libraries only from cdnjs.cloudflare.com, cdn.jsdelivr.net or unpkg.com.
- Images as inline SVG or data URIs, not remote image links.
- No frameworks that need a build step.
- It must work when opened from my desktop with no server.
If the answer is cut off, ask ChatGPT to continue from where it stopped, then join the parts in one file. A truncated file is the most common cause of a blank page.
Save it correctly
- Copy the whole code block, from the doctype line to the closing html tag.
- Paste into a plain text editor. On a Mac, switch TextEdit to plain text first.
- Save as
report.html. Check that the name does not end in.html.txt. - Double-click the file.
Pre-send checklist
- The page opens with no network errors in the browser console.
- Every interactive element responds.
- It is readable at phone width.
- No real API keys or tokens appear in the source. AI tools sometimes leave placeholders that people fill in and forget.
- The title tag says what the document is. Recipients see it in their browser tab.
The HTML checker page lists what the sandbox blocks and how to fix each case.
Choose who can view
| You want | Choose |
|---|---|
| A quick share with a team | Password |
| Anyone may read, and you want to know who | Verified email |
| Only listed people or company domains | Invited only |
Details are in access modes.
Updating the document
If you ask ChatGPT for a revision, replace the file on the same document. The link you already sent keeps working and shows the new version. Earlier versions stay in the history.
Limits to know
A viewer who is allowed in can screenshot or copy what they see. Linkwoven is not end-to-end encrypted, because it has to render your document. Reading time is an estimate and is shown with a "~".
Linkwoven is in private beta. Join the waitlist to get access. The same steps apply to any file; see how to share an HTML file privately.
Frequently asked questions
- Can I share a ChatGPT canvas directly?
- ChatGPT has its own sharing options, and they change over time. In general a shared link is open to anyone who holds it. For sharing with named people only, export the HTML and publish it with access control.
- Why does my exported file look unstyled?
- The HTML probably depends on a stylesheet or script that was only available in the preview. Ask ChatGPT to inline all CSS and JavaScript, then save the file again.
- Why is the chart empty after I publish?
- The page is probably fetching data from an outside URL. Shared documents cannot call outside APIs from the Linkwoven sandbox. Ask ChatGPT to embed the data in the file.
- Does the recipient need a ChatGPT account?
- No. They open a normal web link. If you chose verified email, they enter a six-digit code sent to their inbox.