← All Tools

Free HTML Form Generator

Build a contact form without writing the markup by hand. Pick your fields, choose plain HTML, React or Next.js, add Tailwind or Bootstrap styling, a honeypot or reCAPTCHA, and preview it live. Then copy the code into your page. No sign-up needed to generate it.

The generated form posts to Static Forms, so it works as soon as you add a free API key. Need a different kind of form? Start from one of the free HTML form templates.

Fields

Framework

Styling

Features

HTML
<form action="https://api.staticforms.dev/submit" method="post">
  <input type="hidden" name="apiKey" value="YOUR_API_KEY" />

  <div>
    <label for="name">Name *</label>
    <input type="text" id="name" name="name" required />
  </div>

  <div>
    <label for="email">Email *</label>
    <input type="email" id="email" name="email" required />
  </div>

  <div>
    <label for="message">Message *</label>
    <textarea id="message" name="message" rows="5" required></textarea>
  </div>

  <button type="submit">Send Message</button>
</form>

How to Use This Generated Form

  1. 1

    Sign up for a free Static Forms account

    Create an account at staticforms.dev/register to get started.

  2. 2

    Get your API key from the dashboard

    After signing in, copy your unique API key from the dashboard settings page.

  3. 3

    Replace YOUR_API_KEY in the generated code

    Find the placeholder YOUR_API_KEY in the code and replace it with your real key.

  4. 4

    Add the form to your website

    Paste the code into your HTML page or React component and deploy. Submissions will be sent to your email.

Ready to receive form submissions?

Sign up for Static Forms and start receiving submissions in minutes.