How do I preview the HTML ChatGPT wrote?
Quick answer
Select Preview on the code block. OpenAI's help, read on November 25, 2026, says “For supported code blocks, select Preview to view the result inside ChatGPT,” and HTML pages come first in its list of supported previews. That preview stays inside ChatGPT, canvas left GPT-5.5 on May 28, 2026, and OpenAI names no preview for a downloaded .html file. To see the page in a full browser tab, on a phone, or from a file, open it in Convika's free HTML viewer: paste the code or choose the file, and the page runs with its CSS and JavaScript, with nothing uploaded. To let someone else open it, publish it for a link.
Free plan: no credit card, 5 published pages, scripts run on every page.
On this page
Select Preview on the code block. OpenAI's code block help, read on November 25, 2026, says “For supported code blocks, select Preview to view the result inside ChatGPT,” and “HTML pages” come first in its list of supported previews. To see the page in a full browser tab, on a phone, or from a downloaded .html file, open it in Convika's free HTML viewer: paste the code or choose the file, and the page runs with its CSS and JavaScript. Nothing is uploaded.
ChatGPT's preview lives in the chat. The viewer shows the same page the way a visitor's browser will, and from there it becomes a link you can send.
Does ChatGPT show a preview of HTML?
Yes, in a code block, when Preview appears. Every row below comes from OpenAI's help center, read on November 25, 2026.
| Case | Preview in ChatGPT? | OpenAI's words |
|---|---|---|
| HTML in a code block, on chatgpt.com | Yes | “For supported code blocks, select Preview to view the result inside ChatGPT.” The list starts with “HTML pages.” |
| A code block with no Preview button | No | “If Preview does not appear, the code block does not support a preview.” |
| In the iPhone and Android apps | OpenAI doesn't say | “Available actions vary by plan, device, workspace settings, model, and rollout.” No app is named |
| On Free, Go, or Plus | OpenAI doesn't say | The same line: actions vary by plan. No plan is named for Preview |
| A page that loads outside files, such as a font or a library | Yes, after a question | “If a preview requires outside resources, ChatGPT may ask for permission before connecting.” |
A downloaded .html file | OpenAI doesn't say | The help describes Preview on code blocks only |
| Canvas, the side panel that ran pages | No, not in GPT-5.5 | “With this update, canvas will no longer be available in GPT-5.5 Instant or GPT-5.5 Thinking” (model release notes, May 28, 2026) |
| Someone else opening the preview | No | “Code previews and code execution use a sandboxed environment.” The preview has no address of its own |
OpenAI's help also lists Copy the code and “Switch between Code and Preview for supported previews” among a code block's actions. Copy is the step that takes the page out of ChatGPT.
Canvas went on May 28, 2026, when OpenAI moved “writing and coding functionality” into “writing blocks and code blocks.” Where did ChatGPT canvas go? covers what changed and where each part of canvas went.
Preview ChatGPT's HTML in your browser in 3 steps
The HTML viewer is free, needs no account, and runs on a phone or a computer. Your browser reads the code: it reaches Convika only if you ask for a link.
1. Copy the code, or download the file
In ChatGPT, select Copy the code on the code block. If the page is split into several blocks, ask in the same chat:
Put the whole page into one HTML file, from <!DOCTYPE html> to </html>, with the CSS and JavaScript inside it.
If ChatGPT gave you a .html file, download it. OpenAI's troubleshooting page says “files generated by ChatGPT expire quickly,” so download it at once, or copy the code instead.
2. Open the HTML viewer
Go to convika.com/tools/html-viewer. Choose Paste code and paste, or choose Open file, then Choose an .html file. The viewer opens .html, .htm, and .md files up to 4 MB.
3. Click "Show the page"
Click Show the page. The page runs with its CSS and JavaScript: click its buttons, play the game, fill in the form. Switch Width to Phone to see it at a phone's width, or Full width for a desktop. Edit the code lets you change a line and show the page again.
On a phone: the same steps work in Safari or Chrome. How to open files from ChatGPT on iPhone and How to open an HTML file on Android cover saving the file and finding it.
A React component (code with import React or export default) runs in the free React viewer instead.
When the preview is blank or shows code
A blank page, raw code, or buttons that do nothing each have one cause and one fix: file://error_page_loaded.html, code, or a blank page walks through them by symptom.
Send it to someone as a link
A page that runs in the viewer runs for everyone at a link. They open it in their browser, with no ChatGPT account and no Convika account.
- Drop the
.htmlfile into the box above, or switch to Paste code and paste the code. If ChatGPT gave you several files, such asindex.html,style.css, andscript.js, drop them together, or their folder or a.zip. Click Get my preview link. The preview link works for 3 minutes, with scripts and forms on. - Click Keep this page — free, no card and sign up. The page moves into your account.
- Click Publish page. Under Who can open this page?, choose Public and click Next. The first time you publish, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, cancel any time before it ends. To publish on Free, click Publish free.
Copy the address, such as yourpage.convika.page, and send it. The Free plan includes 5 published pages and 10,000 page views a month. From the viewer itself, Get a link by uploading this page gives the same private preview link with no signup.
ChatGPT's own ways to share stop short of the page. OpenAI's Sites help says “Sites is not available on Free or Go,” and its release notes of November 20, 2026 say of Space pages: “People on Free can't open shared pages or presentations. Public links aren't available.” How to publish HTML from ChatGPT compares the hosts, your own domain, and a form that keeps entries.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trialFrequently asked questions
Can ChatGPT preview HTML?
Yes. Select Preview on a code block that holds the HTML: OpenAI's help says “For supported code blocks, select Preview to view the result inside ChatGPT,” and lists HTML pages first. If no Preview button shows, OpenAI says that block doesn't support one. Paste the code into the free HTML viewer to run it in a browser tab.
How do I turn off the HTML preview in ChatGPT?
Select Code on the code block. OpenAI's help lists “Switch between Code and Preview for supported previews” among a block's actions, and it names no setting that turns previews off. In a work account, OpenAI says “Workspace admins can also control whether code execution and network access are available.”
Why did canvas disappear from ChatGPT?
OpenAI took canvas out of GPT-5.5 on May 28, 2026. Its model release notes say “canvas will no longer be available in GPT-5.5 Instant or GPT-5.5 Thinking” and that writing and coding moved into “writing blocks and code blocks.” An HTML page now shows with Preview on its code block. Where did ChatGPT canvas go? has the details.
How do I see the HTML file ChatGPT made on my phone?
Save the file, then open convika.com/tools/html-viewer in Safari or Chrome and tap Choose an .html file. The page runs with its scripts, which a tap in the Files app doesn't give you on iPhone. With no file, copy the code from the chat, tap Paste code, and tap Show the page.
Is the HTML viewer free?
Yes. The viewer is free, needs no account, and keeps the file in your browser: nothing reaches Convika unless you click Get a link by uploading this page. Publishing the page at a link is free too, on Convika's Free plan with no credit card.
Sources
- Working with writing blocks and code blocks in ChatGPT (OpenAI) (read November 25, 2026)
- Model release notes (OpenAI) (read November 25, 2026)
- ChatGPT release notes (OpenAI) (read November 25, 2026)
- Creating and using ChatGPT Sites (OpenAI) (read November 25, 2026)
- Troubleshooting ChatGPT error messages (OpenAI) (read November 25, 2026)
Next step
How to password protect an HTML page or website
A JavaScript password sits in the page source. Free: StatiCrypt or .htaccess. Paid: Netlify Pro $20, Vercel $20 a project, Tiiny Host $18, or Convika Pro.
Related articles
- ChatGPT canvas is gone: where your HTML shows now, and how to share itOpenAI took canvas out of GPT-5.5 on May 28, 2026. HTML now shows in a code block Preview in ChatGPT. To let others open the page, publish it.
- ChatGPT, Claude, or Gemini gave me HTML code: how do I run it and see the page?To run HTML code from ChatGPT, Claude, or Gemini, paste the whole code block into a free HTML viewer and it runs in your browser. Or save it as an .html file.
- How to open files from ChatGPT on iPhoneTo open a file from ChatGPT on iPhone, save it to Files and open it by type: an HTML file runs in a free HTML viewer in Safari; a PDF opens with a tap.
- file://error_page_loaded.html, code, or a blank page: how to open your HTML filefile://error_page_loaded.html is what Chrome on an iPhone or iPad shows when a page didn't load. Open your HTML file in a free viewer in a few taps.
- How to publish or share an HTML page from ChatGPT as a live website, freeHosting for HTML from ChatGPT: compare Convika, Netlify Drop, GitHub Pages, Cloudflare Pages, Tiiny Host, and ChatGPT Sites on free limits, domains, and forms.
- Can ChatGPT make a website for free?Yes, ChatGPT writes a whole website as HTML on every plan, but Free and Go can't host it: no ChatGPT Sites. Get one HTML file and publish it free.