HTML form generator

Get a working form on your website without writing the code or running a server. Free, no sign-up.

Start from

Fields
Preview

index.html

Get submissions from your website by email

You've built a website and want a contact form on the page. Writing the HTML takes ten minutes. Getting the submissions to your email means running a server and filtering out spam.

Pick your fields above and copy the code. Point the form at a free WeLoveForms address, and every submission comes to your email with spam filtered out.

How to add an HTML form to your website

  1. Pick a starting point

    Contact form, quote request or newsletter sign-up. Tick the fields you want.

  2. Paste your form address

    Sign up for free, copy the address from your dashboard and paste the address into Your form address.

  3. Copy the code

    Press Copy code and paste the code into your page where the form should appear.

  4. Send a test

    Fill in the form on your live site and check that the submission lands in your email.

Get every submission by email

Paste your form address into the code. No server, no spam.

  • 1,000 submissions a month, free
  • Works on any website
  • Your own thank-you page
A form's inbox with eight sign-ups, each with a name, an email and an answer
A form's inbox with eight sign-ups, each with a name, an email and an answer

Build an HTML form people can fill in

  • Give every field a label

    The code puts a label above each field and links the two, and screen readers read the label out. Placeholder text alone disappears once people start typing.

  • Use the right input type

    type="email" and type="tel" open the right keyboard on phones and catch typos before sending.

  • Turn on autofill

    The code adds autocomplete to name, email and phone, and browsers fill those fields in one tap.

  • Mark only the fields you need

    Name, email and message are required. Leave phone and company optional, and more people finish the form.

Questions

How do I create a contact form in HTML?

Pick Contact form above, paste your form address and copy the code. You get name, email and message fields, ready to paste into your page.

How do I make an HTML form send an email?

Put your WeLoveForms form address in the form's action. Every submission comes to your email, with no server of your own. Send your HTML form to email

Where do I put the form code?

Paste the code into your page's HTML where the form should appear. You can paste the code into any site, including GitHub Pages, Netlify and Cloudflare Pages.

How do I stop spam on my HTML form?

Keep Spam protection on, and we filter out the rest. No spam in your inbox.

Can I change how the form looks?

Yes. Turn off Simple styles and use your site's own CSS, or edit the styles in the code.

Do I need JavaScript?

No. The form is plain HTML.

Is the HTML form generator free?

Yes. No sign-up to copy the code. Getting submissions by email is free for 1,000 a month.

Get your form address

1,000 submissions a month, free. No credit card.