Free tool

Bootstrap form generator

Formgong team ·

The Bootstrap 5 tab is already open. The sample asks for a name, email, phone, department and message, plus a copy checkbox.

Short answer: A Bootstrap form generator writes Bootstrap 5 markup for a site that already loads Bootstrap. This page opens on the Bootstrap 5 tab. Labels use form-label. Inputs use form-control. The department list uses form-select. The button is btn btn-primary. The honeypot is botcheck. This page does not load Bootstrap CSS.

Bootstrap form generator online

Use the sample, or describe another form. The Bootstrap 5 tab is the one that matches this search. The same fields are also available as plain HTML, Tailwind, React and Vue.

Bootstrap 4 class names are not what this tab emits. There is no form-group, no custom-select and no form-control-label. Those names changed in Bootstrap 5.

New: open this form in the form builder to give it your site's colours and font and get the code for WordPress, Shopify, Wix or Webflow.

1. Start from a form

Or describe the form and let AI fill in the fields

Only your description goes to the AI model. The answer replaces the fields above it, and you can edit them like any other.

2. Edit the fields

3. Check the live preview

This is the HTML tab, rendered. Paste your access key in step 4 and the button sends a real test submission.

Write to the team

Form by Formgong

4. Add your access key

Every copy below uses it as you type. Until then the code has fk_your_access_key, which Formgong refuses.

We email you a sign-in code. Your first form and its key are ready once you enter it. Enter the code in this tab and the form's Connect page starts with these fields.

5. Copy the code

The same form with Bootstrap 5 classes. Your site has to load Bootstrap; this page does not.

Bootstrap 5
<form class="position-relative mx-auto" id="bs-form" action="https://formgong.com/submit" method="POST">
  <h2 class="h4 mb-3">Write to the team</h2>
  <input type="hidden" name="access_key" value="fk_your_access_key">
  <input type="hidden" name="_lang" value="en">
  <div class="mb-3">
    <label class="form-label" for="bs-name">Name <span aria-hidden="true">*</span></label>
    <input class="form-control" type="text" id="bs-name" name="name" autocomplete="name" required aria-describedby="bs-name-error">
    <p class="form-text text-danger" id="bs-name-error"></p>
  </div>
  <div class="mb-3">
    <label class="form-label" for="bs-email">Email <span aria-hidden="true">*</span></label>
    <input class="form-control" type="email" id="bs-email" name="email" autocomplete="email" required aria-describedby="bs-email-error">
    <p class="form-text text-danger" id="bs-email-error"></p>
  </div>
  <div class="mb-3">
    <label class="form-label" for="bs-phone">Phone</label>
    <input class="form-control" type="tel" id="bs-phone" name="phone" autocomplete="tel" aria-describedby="bs-phone-error">
    <p class="form-text text-danger" id="bs-phone-error"></p>
  </div>
  <div class="mb-3">
    <label class="form-label" for="bs-department">Department <span aria-hidden="true">*</span></label>
    <select class="form-select" id="bs-department" name="department" required aria-describedby="bs-department-error"><option value="">Choose…</option><option value="Sales">Sales</option><option value="Support">Support</option></select>
    <p class="form-text text-danger" id="bs-department-error"></p>
  </div>
  <div class="mb-3">
    <label class="form-label" for="bs-message">Message <span aria-hidden="true">*</span></label>
    <textarea class="form-control" id="bs-message" name="message" required aria-describedby="bs-message-error" rows="4"></textarea>
    <p class="form-text text-danger" id="bs-message-error"></p>
  </div>
  <div class="mb-3">
    <div class="form-check"><input class="form-check-input" id="bs-copy" type="checkbox" name="copy" value="yes" aria-describedby="bs-copy-error"><label class="form-check-label" for="bs-copy">Email me a copy</label></div>
    <p class="form-text text-danger" id="bs-copy-error"></p>
  </div>
  <div class="visually-hidden" aria-hidden="true"><label>Leave this empty <input type="text" name="botcheck" tabindex="-1" autocomplete="off"></label></div>
  <button class="btn btn-primary" type="submit">Send</button>
  <p class="mt-3 mb-0" data-fg-status role="status"></p>
  <p class="text-center small text-secondary mt-2 mb-0"><a href="https://formgong.com/en/?ref=badge&amp;utm_source=badge&amp;utm_medium=form&amp;utm_campaign=generator" target="_blank" rel="noopener">Form by Formgong</a></p>
</form>
<script>
// Optional. Without it the browser posts the form and Formgong shows its own thank-you or error page.
(function () {
  var form = document.getElementById("bs-form");
  var status = form.querySelector("[data-fg-status]");
  form.noValidate = true;
  form.addEventListener("submit", function (event) {
    event.preventDefault();
    var first = null, seen = {};
    Array.prototype.forEach.call(form.elements, function (field) {
      var id = field.getAttribute("aria-describedby");
      if (!id || seen[id]) return;
      seen[id] = true;
      var ok = field.checkValidity();
      field.setAttribute("aria-invalid", ok ? "false" : "true");
      document.getElementById(id).textContent = ok ? "" : field.validationMessage;
      if (!ok && !first) first = field;
    });
    if (first) { first.focus(); return; }
    var button = form.querySelector("[type=submit]");
    button.disabled = true;
    status.textContent = "Sending…";
    fetch(form.action, { method: "POST", headers: { Accept: "application/json" }, body: new FormData(form) })
      .then(function (response) { return response.json().catch(function () { return {}; }); })
      .then(function (data) {
        if (data.success === true) { form.reset(); status.textContent = "Thank you. Your message was sent."; }
        else status.textContent = data.message || "Could not send. Please try again.";
      })
      .catch(function () { status.textContent = "Could not reach the server. Check your connection and try again."; })
      .then(function () { button.disabled = false; });
  });
})();
</script>
<!-- Optional: fg.js counts views, starts and the field people stop at for your Formgong Analytics page. No cookies. Delete this line to turn it off. -->
<script src="https://formgong.com/fg.js" defer></script>
Bootstrap form tools, checked 11 October 2026
This pageStart Bootstrap form builder
Bootstrap version5 class names onlyBootstrap 5 builder
How you buildA description, or fields typed by handDrag and drop
DeliveryPosts to Formgong after you add a keyMarkup you host yourself
AccountNone to copy the codeCheck their page for the current rule

Bootstrap 5 form classes in the copy

  • Spacing. Each field sits in mb-3, the Bootstrap 5 margin utility. Bootstrap 4 often used form-group for that gap.
  • Text, email, phone, number, date, url, textarea. form-label plus form-control. The label’s for matches the input id (bs- plus the field name).
  • Select. form-select, not the old custom-select. The first option is an empty “Choose”.
  • One checkbox. form-check, form-check-input and form-check-label. The sample’s “Email me a copy” box is optional.
  • Radio or checkbox group. A fieldset and legend, then one form-check per option. Radios share a name.
  • Button. btn btn-primary. Change btn-primary if your theme uses another button color.
  • Honeypot. botcheck is clipped to one pixel with an inline style, so it stays hidden even before Bootstrap’s CSS loads.

The form posts with method="POST" to /submit. You do not need Bootstrap’s validation JavaScript. The required attribute is enough for an empty-field check.

Load Bootstrap on your site, not here

This page does not include Bootstrap’s stylesheet. The live preview uses Formgong’s preview CSS, so it will not look like a Bootstrap form until you paste the code.

On your site, load Bootstrap 5 before the form. A typical 5.3 stylesheet link is the one in the Bootstrap introduction. If you already compile Bootstrap from Sass, do not add a second copy.

Drag-and-drop builders such as Start Bootstrap’s form builder and Bootsnipp’s form tool are a better fit when you want to arrange a grid by hand. This page is the copy-paste path: describe the fields, or edit them without AI, then take the markup.

Forms this sample is meant for

  • A support or sales inbox. The department list tells you who should see the lead. Change the option text to your own team names.
  • A Bootstrap theme or admin skin. The classes match the theme’s inputs, so the form does not need a second CSS system.
  • A static page. Paste the HTML into a Bootstrap template. The HTML contact form guide covers the hidden fields Formgong understands.

This generator does not build a Bootstrap grid of several columns, a floating label, or an input group with an icon. Add those classes yourself if the theme needs them. The field names and the honeypot should stay as they are.

Free limits, email and storage

Generating Bootstrap markup is free. The form delivers mail only after the placeholder key is real.

Copying the code needs no account. AI generations are limited to 5 an hour and 10 a day for each network, plus 100 a day for the whole site. When a limit is hit, start from a form and edit the fields. Editing runs in your browser and does not call the model.

On the free plan, Telegram is instant and email is sent for every submission. The free plan is 250 submissions a month. Auto-reply is not on the free plan. Submission data is stored in the EU. Support is Formgong at support@formgong.com.

Your description is sent to the model so it can choose fields. It is not stored. Do not paste passwords, card numbers or other secrets.

Questions

What is a Bootstrap form generator?

It writes a form that uses Bootstrap’s class names. This one targets Bootstrap 5: form-control, form-select, form-check and btn btn-primary. It does not emit Bootstrap 4 class names.

Is there a Bootstrap 5 form generator online?

Yes. This page is the online tool. The Bootstrap 5 tab is selected when you open it. Copy the code with no account. Load Bootstrap 5 on your own site.

Does the preview look like Bootstrap?

No. This page does not load Bootstrap’s CSS. Paste the snippet into a Bootstrap 5 page to see form-control and btn-primary.

How is this different from Bootstrap 4 form HTML?

Bootstrap 5 replaced form-group with margin utilities, custom-select with form-select, and form-control-label with form-label. The copy on this page uses the Bootstrap 5 names.

Will submissions arrive by email?

After you replace fk_your_access_key, yes. On the free plan, Telegram is instant and email is sent for every submission. The free plan is 250 a month.

Sources

Checked on 11.10.2026 against these public pages: Bootstrap 5.3 forms, Bootstrap introduction, Start Bootstrap form builder, Bootstrap Form Builder, Bootsnipp forms.

← Formgong