All articles

How to embed a Google Form in 2026

Most people embed a Google Form for one reason. They want responses on their own site, inside their own brand, without sending visitors to a docs.google.com URL that breaks the flow. There are five ways to do it in 2026.

The iframe HTML snippet (works anywhere you can paste HTML), a WordPress plugin or shortcode, the native Wix HTML element, the Squarespace code block, and Canva's embed element. We walk through each below with the exact code.

The catch worth knowing before you start: Google's iframe is fixed-width by default, sits awkwardly on mobile, ignores your brand colors, and will not load if your site blocks third-party iframes via CSP. We cover the fixes for all of that, plus what to do when you outgrow it.

Quick answer

To embed a Google Form, open the form, click Send, then the < > embed icon, set width and height, and copy the iframe snippet. Paste it into any site that accepts HTML: WordPress (Custom HTML block), Wix (Embed HTML), Squarespace (Code block), Webflow (Embed), or Canva (Add > Embed using the viewform URL). For responsive sizing, wrap the iframe in a div with max-width:720px and set the iframe to width:100% with a tuned min-height.

Google Forms embed vs Formester embed

Same job, two very different defaults. Here is the side-by-side on what each one ships out of the box.

Capability Google Forms embed Formester embed
Embed modes 1 (iframe only) 6: Standard inline, Popup, Sidebar, Side Tab, Popover, Fullscreen
Mobile responsive Manual (fixed height) Auto-fits container
Custom branding No Google chrome stays Full white-label, brand colors, custom fonts
Native CMS integrations None (raw iframe everywhere) WordPress, Wix, Webflow, Canva, Shopify, Squarespace
Load behavior iframe loads docs.google.com Lightweight JS embed, no iframe required for Popup or Side Tab
Conditional logic Basic section branching only Field-level + page-level conditional logic
Submissions analytics Inside Google Forms only Per-field drop-off, time on page, completion rate
Payment fields No Yes Stripe + PayPal native
E-signature No Yes legally binding signatures
File upload Requires Google login Public, no login required

If you are sending the form to people inside your Workspace and you do not care how it looks, Google Forms is free and works. If the visitor's first impression matters, embed your form on any site with Formester, or read the deeper Google Forms vs Jotform comparison.

3 methods to embed a Google Form on any site

The universal iframe snippet, the WordPress route, and the four-CMS path for Wix, Squarespace, Canva, and Webflow. Pick the one that matches where your form is going to live.

Method 1

Embed a Google Form with the iframe HTML snippet

This is the universal method. Any site builder, blog platform, or static page that accepts an HTML block will accept this.

  1. Open your form and click Send

    Open the form in Google Forms and click Send in the top right.

  2. Click the embed icon

    In the share modal, click the < > embed icon to switch to the embed view.

  3. Set the width and height

    Default is 640 by 480. Most layouts need at least 700 by 1200 for a single-page form. Underestimate the height and the form scrolls inside its own box, which kills completion rates. Common embeds include simple contact forms and quizzes built in Google Forms.

  4. Copy the iframe snippet

    Click Copy. You will get a snippet that looks like this:

    <iframe src="https://docs.google.com/forms/d/e/FORM_ID/viewform?embedded=true"
            width="640" height="1200" frameborder="0" marginheight="0" marginwidth="0">
      Loading...
    </iframe>
  5. Paste it into your HTML editor

    Drop the snippet wherever you want the form to render on the page.

  6. Make it responsive

    Wrap the iframe and set width to 100% with a fixed minimum height:

    <div style="max-width:720px;margin:0 auto;">
      <iframe src="https://docs.google.com/forms/d/e/FORM_ID/viewform?embedded=true"
              style="width:100%;min-height:1400px;border:0;">
        Loading...
      </iframe>
    </div>
    Pitfall: Google does not auto-resize iframes. Your height is a guess. Add a question, and the form scrolls. Edit it down, and you have whitespace. Most teams set the min-height 200px above the expected form height and accept the small empty band. Once the form is live, you can also connect Google Forms to Sheets to capture responses.
Method 2

Embed a Google Form in WordPress

Three routes, ranked by effort. Pick based on whether you want the form to inherit your theme styling.

  1. Custom HTML block (no plugin)

    Open the post or page in the block editor, add a Custom HTML block, paste the iframe snippet from Method 1. Works on every WordPress install, free or hosted.

  2. Google Forms shortcode plugin

    Plugins like Google Forms by Best WordPress Plugin Marketplace and WPGForm let you embed via a shortcode like [google-form id="FORM_ID"]. Useful when you want the form to inherit your theme's typography, since the plugin renders questions in your site's HTML instead of inside an iframe.

  3. Page builder elements

    Elementor, Divi, and Bricks all ship an HTML widget. Drop the iframe in there. The advantage: you can wrap the widget in a styled container and use the builder's responsive controls to swap iframe heights between desktop and mobile breakpoints, which the raw HTML method does not let you do without custom CSS.

    Card layout tip: if your form ends up inside a card with restricted width, increase the iframe height by 30 to 40% to compensate for the narrower text wrap.
Method 3

Embed a Google Form on Wix, Squarespace, Canva, or Webflow

Every modern CMS handles this slightly differently. Here is the exact path for the four most common ones.

  • Wix. Add element > Embed Code > Embed HTML. Paste the iframe snippet. Drag the element to size. Wix sets the container size independently of the iframe size, so check both desktop and mobile preview before publishing. Common gotcha: Wix's free plan adds a banner that pushes the form down on mobile.
  • Squarespace. Add a section > Code block > set type to HTML. Paste the snippet. Squarespace iframes are capped at the section width, so on full-width sections you may need to constrain the iframe to 720px with the wrapper trick from Method 1, or the form looks lost on widescreens.
  • Canva (websites). On a Canva-designed website page, click Add > Embed > paste the Google Form viewform URL (not the iframe code itself). Canva's embed element resolves the URL into a live form. The limit: Canva embeds run in a fixed aspect ratio, so longer forms scroll inside the embed window. Single-page forms work better here than multi-page ones.
  • Webflow. Add an Embed element (under Components). Paste the iframe snippet. Webflow's Embed renders inline at build time, so the form shows up in the Designer preview, not just on publish. If your form sits inside a CMS Collection page, the iframe still works because the snippet is static HTML, not Webflow code.

Troubleshooting an embedded Google Form

Most embed problems come down to five things. Diagnose by symptom.

  • 1. Form does not load (white box, "refused to connect"). Your site has a Content Security Policy that blocks third-party iframes. Add frame-src https://docs.google.com; to your CSP header. On WordPress, the Headers Security plugin handles this without code.
  • 2. Form is too narrow on desktop, too wide on mobile. The default 640px width is fine for sidebars and bad for full-width sections. Wrap the iframe in a div with max-width:720px and set the iframe width to 100%. This caps the form on desktop and lets it shrink on phones.
  • 3. Form scrolls inside its own box. Your height attribute is too short. Open the live form in a new tab, scroll to the bottom, measure the pixel height with your browser's inspector, then set the iframe min-height to that value plus 80px. Google does not expose a way to auto-fit because the iframe is cross-origin.
  • 4. Form looks broken on mobile (cut off, buttons missing). Two fixes. First, make sure the iframe has style="width:100%;" not a hardcoded pixel width. Second, set the iframe's min-height based on your longest mobile form view. Mobile renders ask for more vertical space than desktop.
  • 5. Dark-mode color clash. Google Forms ignores your site's dark mode and renders on white. There is no fix inside Google Forms. Either accept the visual break or check the top Google Forms alternatives in 2026 for a tool that respects your site's color scheme.
Beyond Google Forms

Embed a real form on your site, without Google Forms baggage

Six embed modes, your own branding, conditional logic. No iframe headaches, no Google brand bar.

Start free on Formester

Free forever planNo credit cardSetup in 2 minutes

Share this article
FAQ

Frequently asked questions

The questions people ask after they paste the iframe and something does not look right.

Ready to build your perfect form?

Formester is the easiest way to create forms, collect data and automate your workflow