HTML Online for Android — the same editor with live preview, visual mode and HTML tools, offline Get the app
  1. Home
  2. Tools
  3. HTML form builder

Free · no sign-up · runs in your browser

HTML Form Builder

Start from a template or a blank form, add and arrange fields, see the form working on the right, and copy clean HTML with labels, validation and optional CSS.

Start from
Live preview
HTML code

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

  1. Pick a starting point. Choose the Contact, Sign-up or Feedback template, or start blank.
  2. Add and edit fields. Add fields, set each label, name and placeholder, mark required fields and reorder them with the arrows.
  3. Test it in the preview. Fill in the form on the right and press the button: the browser checks required fields and email formats.
  4. Set where answers go. Paste your form service or server address into Send answers to.
  5. 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:

OptionHowGood for
A form backend serviceSign up with a form service (for example Formspree, Getform or Netlify Forms), paste the address it gives you into Send answers toStatic sites, landing pages, no server of your own. Answers arrive by email or in a dashboard.
Your own serverPoint action at your script, such as /contact.php or an API routeSites 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

FieldHTMLWhy it matters
Emailtype="email"Phones show the @ keyboard and the browser checks the format
Phonetype="tel"Shows the number pad on phones
Numbertype="number"Only accepts numbers; add min and max to limit them
Datetype="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 with for and id, 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 required attribute, and the visible star is hidden from screen readers so it isn't read out as "star".
  • autocomplete hints 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.

Related tools & guides

Updated · Built and maintained by