Form Embed Code Generator

Paste a form link and get embed code you can drop into any website. Pick the size, border, and loading behavior, then check the live preview before you copy.

Your form

Works with Google Forms, Typeform, Jotform, Tally, Fillout, Microsoft Forms, Fomr, or any page that allows embedding.

Screen readers announce this title so visitors know what the frame contains.

Width
Height
px

Everything runs in your browser. Your link is never uploaded or stored.

Paste a form link to get your embed code.

Embed a form that fits itself to the page

Fomr forms embed on any site with one snippet. The frame grows and shrinks with each page of the form, so there's no inner scrollbar and no guessing at heights. Free, with unlimited responses.

Create your form free

Free forever. Unlimited forms and responses. No credit card required.

4.9

How to embed a Google Form on your website

  1. Open the form in Google Forms and click Send.
  2. Choose the link icon, leaveShorten URL unticked, and clickCopy.
  3. Paste the link into the generator above. It rewrites the link to Google's embedded view by adding embedded=true.
  4. Set a height that fits your longest page, then copy the code.
  5. 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.

AttributeWhat it does
srcThe form's address. Some builders need a special embed version of the link.
titleA short name that screen readers announce when someone reaches the frame.
width and height100% 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.
styleRemoves 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 fulldocs.google.com/forms/d/e/…/viewform link. The generator adds embedded=true and 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 to tally.so/embed/…, the address Tally uses for embeds.
  • Fillout: use the form link that contains/t/.
  • Microsoft Forms: fullResponsePage.aspx links get embed=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.

Form embed code: common questions

How does the form embed code generator work?

Paste the share link of your form. The generator recognizes Google Forms, Typeform, Jotform, Tally, Fillout, Microsoft Forms, and Fomr links, switches the link to the provider's embed version when one exists, and builds an iframe with the width, height, border, lazy loading, and title you choose. A live preview shows the code running before you copy it. Everything happens in your browser, so your link isn't uploaded or stored.

How do I embed a Google Form on my website?

In Google Forms, click Send, choose the link icon, untick Shorten URL, and copy the link. Paste it into the generator above, which adds embedded=true to the link and wraps it in an iframe. Choose a responsive width so the form fits on phones, set a height that fits your longest page, then paste the code into an HTML or custom code block on your site.

Why doesn't my forms.gle link work?

A forms.gle link is a short link that redirects to the real form address. The generator runs in your browser and can't follow that redirect, so it can't tell which form the short link points to. Open the short link, copy the full docs.google.com/forms address from your address bar, and paste that instead. You can also untick Shorten URL under Send > link in Google Forms.

Why can't my embedded form resize to fit automatically?

Browsers don't let your page read the height of a frame loaded from another domain. Auto height only works when the form builder provides a script that reports the height to your page. Fomr's embed script does this for every form, and Tally does it through its widget script, which the generator adds when you choose auto height. For Google Forms, Jotform, Typeform, Fillout, and Microsoft Forms in a plain iframe, set a fixed height tall enough for the longest page.

Why is my embedded form blank?

The usual causes are an editor link instead of a share link, a form that isn't published or accepting responses, or a site that blocks being shown in frames. Some forms also need visitors to sign in, such as Microsoft Forms limited to your organization. Check that the share link opens in a private browser window. If it does and the preview is still blank, the provider doesn't allow that link to be embedded, so use the embed code from its own share menu.

Why should an iframe have a title?

Screen readers announce the title when someone reaches the frame, so a title like "Contact form" tells them what's inside before they enter it. WCAG success criterion 4.1.2 expects frames to have an accessible name, and the title attribute is the standard way to give one. The generator adds the title you type, or "Form" if you leave it blank.

Is Fomr free to use?

Yes, Fomr has a free plan that includes unlimited forms, unlimited responses, unlimited team members, 25+ form components, conditional logic, calculated values, design customization, email notifications, and more. The Pro plan adds features like custom domains, removal of Fomr branding, SEO controls, multiple endings, and redirects on completion.