In Gemini Canvas you can share the canvas with Gemini's share button. For a standalone page — custom address, password, edits at the same URL — open the Code view, copy the HTML, and publish it with an HTML code to URL converter.
Exporting the HTML from Canvas
- Open the canvas and switch from Preview to Code.
- Select all and copy (or use the copy/export control if shown).
- If the code is split into several files or is React, ask Gemini: "Combine this into one standalone HTML file with inline CSS and JS, no build step."
Publishing it
Paste the file into the converter, choose an address and press Get my URL. The page now runs on its own origin — so features like localStorage and full-screen work normally — and it opens without a Google sign-in for the viewer.
Paste code or drop a file, ZIP or folder. Free plan, custom address, password & editing included. Get a URL
Gemini-specific gotchas
- Gemini API calls inside the app. Canvas apps can call Gemini when they run inside Gemini. Outside it, those calls need your own API key and a backend to hide it — never paste a secret key into published front-end code.
- Images generated in the chat are not part of the HTML. Download them and either upload with the page as a ZIP, or embed small ones with the data URL tool.
- Tailwind CDN warnings in the console are harmless for prototypes.