SEO & AI search · Guide
How to Embed Google Form Into WordPress (Step by Step)

Short answer
In Google Forms, publish the form, open the Send options, pick the embed tab and copy the iframe code. In WordPress, add a Custom HTML block, paste the code, set the width to 100 percent so it fits phones, then update the page.
Key takeaways
- Google Forms gives you iframe embed code, so no plugin is needed.
- Paste the code into a Custom HTML block, not a paragraph or Embed block.
- Set width to 100% and test the height on desktop and mobile.
- Only users with the unfiltered_html capability can save iframes.
- Responses stay in Google Forms or Sheets, not in WordPress.
How do you embed a Google Form in WordPress?
In Google Forms, publish the form, open the Send options, choose the embed tab marked <>, copy the iframe code, then paste it into a Custom HTML block in WordPress and update the page.
No plugin is needed. The embed code is a standard iframe, which WordPress can display in any post, page or widget area that accepts HTML.
The rest of this guide covers each step, how to make the form fit on phones, what to do in Elementor or the classic editor, and when a WordPress form plugin is the better choice.
What do you need before you start?
You need a finished Google Form, a Google account that owns or can edit it, and a WordPress user role that is allowed to add HTML, such as Administrator or Editor on a single site.
That last point trips people up. WordPress only lets users with the unfiltered_html capability save iframe code. The Roles and Capabilities guide on WordPress.org explains which roles have it.
On multisite networks, only Super Admins have that capability by default. Regular site admins may see the iframe stripped when they save.
Also check the form's settings. If it collects email addresses, limits people to one response, or has file upload questions, respondents may need to sign in to Google.
Step 1: How do you get the embed code from Google Forms?
Open the form, publish it if it is not live yet, open the Send options, click the embed icon that looks like <>, and copy the HTML code shown.
Google's help page on publishing and sharing your form explains the current sharing options. Google has changed this screen over time, so the button names may differ slightly.
Before copying, you can change the width and height fields in the embed panel. The code updates as you type.
The copied code looks like this:
<iframe src="https://docs.google.com/forms/d/e/FORM_ID/viewform?embedded=true" width="640" height="900" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
Step 2: How do you add the form in the block editor?
Open the page in WordPress, add a Custom HTML block, paste the iframe code into it, check the Preview tab, then click Update or Publish.
The Custom HTML block documentation covers how the block works and how to preview code.
Do not paste the code into a normal paragraph block. The editor will treat it as text or strip parts of it.
The general Embed block also is not the right tool here. It relies on oEmbed providers, and Google Forms links do not reliably turn into an embedded form that way.
If you are new to the editor, our guide on what the WordPress block editor is explains how blocks work.
Step 3: How do you make the embedded form responsive?
Change the iframe's width from a fixed number like 640 to 100%, and set a height tall enough to show the whole form without an inner scroll bar.
A fixed width can overflow on phones. Setting width to 100% lets the form shrink to fit its container.
<iframe src="https://docs.google.com/forms/d/e/FORM_ID/viewform?embedded=true" width="100%" height="1200" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
Height is the tricky part. Iframes do not grow on their own, so you must guess a height that fits. Long forms look shorter on desktop and longer on mobile, so test both.
MDN's reference on the iframe element lists every attribute you can use, including loading=“lazy” to delay loading until the form scrolls into view.
How do you embed a Google Form with the classic editor?
In the classic editor, switch from the Visual tab to the Text tab, paste the iframe code where you want the form, and update the post.
Switching back to the Visual tab usually keeps the iframe for users who can add unfiltered HTML. If the form disappears, paste it again in the Text tab and save without switching.
Classic widget areas also work. Use a Custom HTML widget in Appearance > Widgets on classic themes.
How do you embed a Google Form in Elementor?
Drag Elementor's HTML widget onto the page, paste the Google Form iframe code into its code box, then update the page.
The HTML widget help page explains how the widget handles custom code, and the widget is part of the free version of Elementor. The preview inside the editor may look different, so check the live page.
Set the iframe width to 100% so it follows the column width. If you need different heights on mobile and desktop, use two HTML widgets and Elementor's responsive visibility settings to show one per device.
If you are learning the builder, our guide on how to use Elementor in WordPress covers widgets and columns.
What if the Google Form does not show up?
If the form is missing, the iframe was usually stripped by your user role, a security plugin, or a page builder, or the form is not published or shared publicly.
Work through these checks:
- Role check. Make sure you are an Administrator or Editor with permission to add HTML.
- Block check. Confirm you used a Custom HTML block, not a paragraph block.
- Form access. Open the form link in a private window. If it asks for a login or says the form is closed, fix that in Google Forms.
- Security plugins. Some security or content security policy settings block iframes from other domains.
- Caching. Clear your cache after editing. Our guide on clearing cache in WordPress lists every layer.
If your site sends a content security policy header, it may need to allow docs.google.com as a frame source. Our guide on adding security headers explains how these headers work.
What are the limits of embedding Google Forms?
Google Forms are easy and free, but you get little control over styling, responses stay in Google rather than WordPress, and the iframe height does not adjust on its own.
| Point | Google Form embed | WordPress form plugin |
|---|---|---|
| Cost | Free | Free or paid, depending on plugin |
| Design | Google's look, limited theming | Matches your site's theme |
| Where entries live | Google Forms and Google Sheets | Your WordPress database or email |
| Height on mobile | Fixed, needs manual tuning | Adjusts automatically |
| Email notifications | Basic, to the form owner | Flexible, to any address |
| Integrations | Google Sheets and Workspace | Email marketing, CRMs, payments |
Google Forms works well for surveys, quizzes, sign-up sheets and event RSVPs. It is less suited to contact forms, lead capture and anything that should feel part of your brand.
Do Google Forms raise privacy concerns on WordPress?
Embedding a Google Form loads content from Google's servers, which can involve cookies and data transfers, so mention it in your privacy policy and consider consent rules in your region.
This is general information, not legal advice. Check with a qualified advisor if you collect personal data from people in places with strict privacy laws.
Tell people what the form collects and why. If you only need anonymous feedback, turn off email collection in the form settings.
When should you use a WordPress form plugin instead?
Use a WordPress form plugin when you want forms that match your design, store entries on your site, send custom email notifications, or connect to tools like email marketing services.
Popular options include WPForms, Fluent Forms, Contact Form 7, Gravity Forms and Forminator. Our guide on how to use WPForms in WordPress shows the basic setup.
Comparing two common choices? See our breakdown of Contact Form 7 vs WPForms.
Form plugins also add spam protection that fits WordPress. Our guide on stopping contact form spam covers CAPTCHA and honeypot options.
How do you see responses from an embedded Google Form?
Responses go to Google Forms, not WordPress, so open the form in Google and click the Responses tab, or link the form to a Google Sheet to see every answer in a spreadsheet.
You can turn on email notifications for new responses from the Responses tab menu. That way you do not need to check the form every day.
Your WordPress dashboard will not show these entries. If your team expects to see submissions inside WordPress, a form plugin is the better fit.
Frequently asked questions
Do I need a plugin to embed a Google Form in WordPress?
No. Google gives you iframe embed code, and WordPress can display it in a Custom HTML block, a classic editor Text tab, a Custom HTML widget or an Elementor HTML widget. Plugins only add convenience features, such as auto height or styling options.
Why does WordPress remove my Google Form iframe?
WordPress strips iframe code for users without the unfiltered HTML capability. On a single site, Administrators and Editors have it by default, but Authors and Contributors do not. On multisite networks, only Super Admins have it by default, so regular site admins see iframes removed.
How do I stop the embedded form from scrolling inside the page?
Increase the height value in the iframe code until the whole form fits. Iframes do not resize to their content on their own, so long forms need a tall height. Test on a phone too, because forms usually take more vertical space on narrow screens.
Can I style an embedded Google Form to match my site?
Only a little. Google Forms lets you change the header image, theme color, background color and font style inside the form editor. You cannot apply your WordPress theme's CSS to the embedded form, because it loads from Google's domain.
Where do Google Form submissions go?
They go to the Responses tab in Google Forms, and you can link them to a Google Sheet. Nothing is stored in your WordPress database. If you need entries inside WordPress or sent to several email addresses, a WordPress form plugin is a better fit.
Sources
- Publish & share your form with responders Google Docs Editors Help
- Custom HTML block WordPress.org
- Roles and Capabilities WordPress.org
- The Inline Frame element MDN Web Docs
- HTML widget Elementor
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


