How to embed a Google Form on your website
- Open the form in Google Forms and click Send.
- Choose the link icon, leaveShorten URL unticked, and clickCopy.
- Paste the link into the generator above. It rewrites the link to Google's embedded view by adding
embedded=true. - Set a height that fits your longest page, then copy the code.
- Paste the code into an HTML or custom code block in your site builder, wherever the form should appear.
Google also offers embed code under Send > the <>icon. It's the same embedded URL with a fixed 640 pixel width, which is why Google Forms often overflows on phones. ChoosingResponsive above sets the width to 100% so the form fits its container on any screen.
What goes into iframe embed code
Almost every form builder embeds the same way: an<iframe> element that loads the form's page inside yours. The attributes are what change how it behaves.
| Attribute | What it does |
|---|---|
src | The form's address. Some builders need a special embed version of the link. |
title | A short name that screen readers announce when someone reaches the frame. |
width and height | 100% width follows the container. Height is in pixels unless a script adjusts it. |
loading="lazy" | Waits to load the form until a visitor scrolls near it, which speeds up the rest of the page. |
style | Removes the browser's default frame border, or adds your own. |
Why embedded forms get cut off
A browser won't let your page look inside a frame from another domain, so it can't tell how tall the form is. A plain iframe keeps the height you set. If the form is longer, visitors get a scrollbar inside the page. If it's shorter, you get empty space below the last question. Conditional questions and multi-page forms make it worse, because the height changes as people answer.
The fix is a script on both sides: the form reports its height and the embed script resizes the frame. Google Forms, Typeform's plain iframe, Jotform's plain iframe, Fillout, and Microsoft Forms don't do this, so the generator asks for a fixed height. Tally does it through its widget script, which the generator adds when you choose auto height. Fomr's embed script always does it.
Embed codes for each form builder
- Google Forms: use the full
docs.google.com/forms/d/e/…/viewformlink. The generator addsembedded=trueand keeps any prefilledentry.answers. - Typeform: the share link with
/to/works as an iframe. Typeform's own embed script adds popup and slider layouts if you need them. - Jotform: the form link from Publish > Quick share works. Editor links that contain the form ID are converted too.
- Tally: share links like
tally.so/r/…are switched totally.so/embed/…, the address Tally uses for embeds. - Fillout: use the form link that contains
/t/. - Microsoft Forms: full
ResponsePage.aspxlinks getembed=true. Short/r/links may not load in a frame, so copy the link from Collect responses > Embed if the preview stays blank. - Fomr: the generator outputs Fomr's own snippet, the same one you get under Configure > Add to website.
Where to paste the code
Every site builder has a block for raw HTML. In WordPress it's the Custom HTML block, in Squarespace it's a Code block, in Wix it's Embed HTML, and in Webflow it's the Embed element. Our guide toembedding a form on any websitewalks through each one, and thepopup forms guide covers forms that open on a button click instead of sitting in the page.