Static Forms - Secure form backend and form endpoint for contact formsStatic Forms - Secure form backend and form endpoint for contact forms
  • Home
  • Features
  • Docs
  • Blog
  • Pricing
  • Home
  • Features
  • Docs
  • Blog
  • Pricing
Code Examples

Contact Form Examples

Ready-to-use contact form code for HTML, React, and Next.js. Copy, paste, and start receiving form submissions in minutes.

Basic HTML Contact Form

HTML

A simple HTML contact form with name, email, and message fields. Works with any static site.

HTMLBeginnerNo JavaScript
HTML

HTML Form with Thank You Redirect

HTML

Redirects the user to a custom thank-you page after successful submission.

HTMLRedirectNo JavaScript
HTML

HTML Form with reCAPTCHA v2

HTML

Includes Google reCAPTCHA v2 checkbox to protect against spam submissions.

HTMLreCAPTCHASpam Protection
HTML

HTML Form with File Upload

HTML

Allows users to attach a file with their form submission. Requires a Pro plan.

HTMLFile UploadPro
HTML

Bootstrap 5 Contact Form

HTML

A styled contact form using Bootstrap 5 classes. Drop it into any Bootstrap project.

HTMLBootstrap 5Styled
HTML

Tailwind CSS Contact Form

HTML

A clean contact form styled with Tailwind CSS utility classes.

HTMLTailwind CSSStyled
HTML

React Contact Form

JSX

A React component with controlled inputs and fetch-based submission.

ReactJavaScriptSPA
Preview not available for JSX
JSX

Next.js Contact Form

TSX

A Next.js App Router client component with loading and success states.

Next.jsTypeScriptApp Router
Preview not available for TSX
TSX

Ready to use these forms?

Sign up free at staticforms.dev to get your API key and start receiving form submissions.

Get Your Free API KeyView Templates
Static Forms - Secure form backend and form endpoint for contact formsStatic Forms - Secure form backend and form endpoint for contact forms

The fastest way to add working contact forms to any website. No backend required.

Product

  • Features
  • Pricing
  • Documentation
  • Changelog

Resources

  • Blog
  • Examples
  • Templates
  • Tools
  • Integrations
  • reCAPTCHA Guide
  • FAQ

Alternatives

  • All Alternatives
  • Formspree
  • Netlify Forms
  • Typeform
  • Formspark

Company

  • Contact
  • About

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA

© 2026 Static Forms. All rights reserved.

Committed to sustainability