Publish a website you made in Gemini Canvas
Gemini's Canvas can build a web page and preview it next to the chat. Its share link lets people see it on Gemini, but Google doesn't host it as a website of your own. To get a real address, or your own domain, the code needs a home. It takes a few minutes.
1. Get the code
- In the Canvas panel, switch from the preview to the code and copy all of it. Gemini's labels change from time to time; look for a code view or a copy button at the top of the panel.
- Paste it into a plain text editor (Notepad on Windows; TextEdit on a Mac after Format → Make Plain
Text) and save it as
index.html. - Open
index.htmlin your browser to check it looks like the preview.
If the page doesn't open on its own, ask Gemini for a version that does:
Give me this as one complete plain HTML file, with the CSS and JavaScript inside, that works when I open it in a browser: no React, no build step and no server code.
2. Put it online
- Create a free Pagehaus site. Its name becomes the address, like
https://yoursite.pagehaus.site/. - On the site's Files tab, drag in
index.html. It replaces the starter page. - Open your address: it's live, with HTTPS.
3. Keep it up to date
Edit text right on the Files tab, or paste the file back into Gemini, ask for the change, and upload the new file. Earlier versions are kept in version history if you ever want one back.
Before you share it
- Pages that use Gemini or Google sign-in to work only work inside Gemini. Ask Gemini to make a version without them.
- A contact form: ask Gemini to "make the form post to /_form/contact with method post", and messages are emailed to you. See contact forms.
- Images from placeholder sites: upload your own photos and ask Gemini to use their names.
Something broken once it's online? See why an AI-made website works on your computer but not online.
Your own domain
On a Personal or Pro plan, connect an address like yourclub.org under the Domains
tab; HTTPS is set up for you. See custom domains.