To add a signup form to a website, build the form in a form builder, copy its embed code, and paste it into your page, which takes under 20 minutes. The form also works as a hosted page you can link to, and an HTML form needs your own backend to store signups.

Key facts

  • 3 ways to add a signup form: embed a widget, link to a hosted form, or build one in raw HTML.
  • Embedding is the fastest route: most builders get a form live in under 20 minutes.
  • A form builder stores every signup for you; a raw HTML form needs a backend or endpoint to receive submissions.
  • WordPress takes a Custom HTML block, Squarespace a Code block, and Wix an Embed HTML block.
  • Email plus first name is enough to start; every extra field adds friction.
  • Always test with a real signup before you share the page.

The 3 ways to add a signup form

MethodWhat you change on the siteWhere visitors complete itBest for
Embed widgetPaste a script or iframe snippetOn your own pageMost sites
Hosted form linkAdd a link or buttonOn the form builder’s pageEmail and social sharing
Raw HTML formWrite the form markup and connect an endpointOn your own pageDevelopers with a backend

Embedding is the common choice. Visitors fill the form in without leaving your page, and responses land in your form builder’s dashboard. A hosted link is simpler to set up but sends visitors away from your site. Raw HTML gives full control over design, but you must build or buy the endpoint that stores submissions.

Embed a form on your site

  1. Build the form in your form builder and choose the fields, starting with email and first name.
  2. Open the share or embed settings and copy the embed code, usually an iframe, a script tag, or both.
  3. Paste the code into your page where the form should appear.
  4. Publish the page and test it with a real signup.

Most builders give you a choice of code types. A script embed matches your site and updates itself when you change the form. An iframe works when your site builder strips scripts, but styling is limited. Plain HTML is a one-time copy, so you must paste it again after every change.

Ask for consent in plain words and say what emails the signup will get. Many builders add double opt-in by default, which sends a confirmation email before the address joins your list.

Add the form in WordPress, Squarespace, Wix and other builders

PlatformWhere the embed code goes
WordPressCustom HTML block in the block editor
SquarespaceCode block, on a Business plan or higher
WixEmbed Code, then Embed HTML
WebflowEmbed element, then publish
ShopifyCustom Liquid section in the theme editor
FramerEmbed element, set to HTML

The pattern is the same everywhere: find the block or element that accepts raw code, paste the snippet, and save. If the block only accepts a link, use the hosted form link instead. Squarespace needs a Business plan or higher for Code blocks.

Test the form and fix common problems

Submit the form yourself with an address you control. Check that the confirmation message or thank-you page appears, the signup lands in your list, and the welcome email arrives.

If the form does not show, check that the code went into a code or HTML block and not a plain text block, and that the form is published rather than a draft.

For form costs, see form builder cost comparison.

FAQ

How do I add a signup form to my website?

Build the form in a form builder, copy the embed code, paste it into your page where the form should appear, then publish and test it with a real signup.

Do I need to know HTML to add a signup form?

No. The embed and hosted-link methods need no coding. Only a raw HTML form needs markup and a backend to store submissions.

Where do I paste the embed code in WordPress?

In a Custom HTML block in the block editor, then save and preview the page.

What fields should a signup form ask for?

Email and first name are enough to start. Every extra field adds friction, so add fields only when you use the answers.

Why is my signup form not showing?

Check the code went into a code or HTML block, not a text block, and that the form is published, not a draft.

Sources