Deze pagina is nog niet vertaald en wordt daarom in het Engels getoond.

How to put an HTML file on a Google Sites page

Quick answer

Google Sites can't upload an .html file: from your computer it takes only .jpg, .png, and .gif images. Open the file in a text editor, copy the code, and paste it under Insert > Embed > Embed code, or use Pages > Full page embed for a whole page. For a page with its own scripts and forms, publish it at a link and add a Google Sites button that opens it.

Get a link for my HTML file

Free plan: no credit card, 1 published page.

On this page

You have an .html file, perhaps a quiz, a game, or a calculator that ChatGPT, Claude, or Gemini made, and a site on Google Sites. Google Sites builds pages in its own editor, so the file doesn't become a page by itself. You paste its code into an embed box, show a page from its own address, or link to it. This guide gives each, from Google's Sites Help, read on November 20, 2026.

To check the page first, drop it into the upload box at the top of this page: it gives a preview link without an account. That preview runs no scripts. Click Keep this page — free, no card and sign up, and the page moves into your account, where its scripts run and you can publish it at a link your Google Sites page opens.

What Google Sites allows

What you wantGoogle Sites' toolWhat Google says
Upload the .html fileNone"You can upload a .jpg, .png, or .gif image file from your computer." For other files: "use Google Drive"
Paste the page's codeInsert > Embed > Embed code"JavaScript code must be within