In shortTo create an HTML form online, pick a template or start blank, add fields (text, email, phone, dropdown, checkboxes and more), set labels, names and which fields are required, then copy the generated HTML. Set the form's action to the address that should receive the answers, such as a form service or your own server.
How to use the HTML form builder
- Pick a starting point. Choose the Contact, Sign-up or Feedback template, or start blank.
- Add and edit fields. Add fields, set each label, name and placeholder, mark required fields and reorder them with the arrows.
- Test it in the preview. Fill in the form on the right and press the button: the browser checks required fields and email formats.
- Set where answers go. Paste your form service or server address into Send answers to.
- Copy the HTML. Copy or download the code and paste it into your page.
How to make your HTML form send answers
An HTML form only collects answers. When someone presses the button, the browser sends them to the address in the form's action attribute, and something at that address has to receive them. You have three choices:
| Option | How | Good for |
|---|---|---|
| A form backend service | Sign up with a form service (for example Formspree, Getform or Netlify Forms), paste the address it gives you into Send answers to | Static sites, landing pages, no server of your own. Answers arrive by email or in a dashboard. |
| Your own server | Point action at your script, such as /contact.php or an API route | Sites that already have a backend, storing answers in a database |
mailto: | action="mailto:you@example.com" | Quick tests only: it opens the visitor's email app, many people don't have one set up, and it often fails on phones |
Every field needs a name: it's the label your server or form service sees next to each answer. The builder fills names in from the labels, and you can change them.
Choosing the right field type
| Field | HTML | Why it matters |
|---|---|---|
type="email" | Phones show the @ keyboard and the browser checks the format | |
| Phone | type="tel" | Shows the number pad on phones |
| Number | type="number" | Only accepts numbers; add min and max to limit them |
| Date | type="date" | The browser shows a date picker |
| Choice (pick one) | type="radio" in a <fieldset> | Up to about 5 visible options |
| Dropdown | <select> | Longer lists of options |
| Long text | <textarea> | Messages and comments |
Accessible forms
The generated HTML follows the basics that make a form usable by everyone, including screen reader and keyboard users:
- Every input has a
<label>connected withforandid, so clicking the label focuses the field and screen readers announce it. - Groups of radio buttons and checkboxes sit in a
<fieldset>with a<legend>that names the question. - Required fields use the
requiredattribute, and the visible star is hidden from screen readers so it isn't read out as "star". autocompletehints let browsers fill in name, email and phone automatically.- Placeholders are only examples. The label always stays visible, because placeholder text disappears as soon as someone types.
Validation and spam
Browsers check required, type="email", min, max and pattern before sending, which catches most typing mistakes: try it in the preview. These checks run in the visitor's browser and can be skipped, so whatever receives the answers must check them again. To cut spam, use the protection your form service offers (most include a hidden "honeypot" field or a CAPTCHA option).
Want to style the form further? Open it in the online HTML editor. For a page to put it on, see how to make a website with HTML and CSS.
Private by design: this tool runs entirely in your browser. Nothing you paste or open is uploaded to a server.
Frequently asked questions
How do I create an HTML form online?
Pick a template or start blank, add fields and set their labels and names, then copy the generated HTML from the box under the preview.
Is this HTML form builder free?
Yes. No sign-up, no limits and no branding in the code. Everything runs in your browser.
Where do the form answers go?
To the address in Send answers to (the form's action). Use a form backend service or your own server script there. This builder doesn't collect any answers itself.
How do I make an HTML form send an email?
HTML alone can't send email. Point the form's action at a form service that emails you the answers, or at a server script that sends the email.
Can I use the form in WordPress or another site builder?
Yes. Untick Full HTML page, copy the code, and paste it into a Custom HTML block or embed element.
Do I need JavaScript for an HTML form?
No. The generated form works with HTML alone, including the browser's built-in checks for required fields and email formats.