Round-up · Checked November 22, 2026

The best form backend for Hugo in 2026

Hugo builds plain HTML files, so nothing is running that could receive a contact form. A form backend fills that gap: the form stays in your Hugo templates and posts to an address the service gives you.

Full disclosure: we make FormTango, so it is on this list. All prices come from each service's own pricing page, as of November 22, 2026, and are linked.

What matters for Hugo

  • It must work with no server code, because a Hugo site has none to run.
  • A plain HTML form should work, with a JSON response available for submitting without leaving the page.
  • Spam filtering that does not need a CAPTCHA wired up by hand.
  • No lock-in: one address in the form, so you can switch service by changing a line.

A Hugo partial for the form

The tidy place for a form in Hugo is a partial. Save the form's HTML as layouts/partials/contact.html, then include it in any layout:

{{ partial "contact.html" . }}

The form is now written once and can appear on a contact page, in a footer, or both.

Why a form pasted into Markdown can disappear

Hugo's default Markdown renderer leaves out raw HTML unless you allow it. If you paste a form into a .md file and it is missing from the built page, that is why. You can switch raw HTML on in the site configuration, under the Goldmark renderer's unsafe setting, but that applies to all of your content.

A shortcode is the cleaner fix. Save the form as layouts/shortcodes/contact.html and call it from any Markdown file:

{{< contact >}}

Keeping the form address in site configuration

If the form appears in more than one template, keep the address in one place. Add it under params in your site configuration:

formEndpoint = "https://formtango.com/f/YOUR_FORM_ID"

Then use it in the form tag:

form action="{{ site.Params.formEndpoint }}" method="POST"

Switching service later is a one-line change. The address is not a secret, so it is fine in a public repository.

The thank-you page and absolute URLs

After a plain post, the visitor sees the service's thank-you page. With FormTango, a hidden _redirect field on a paid plan sends them to a page of yours. It needs a full address, and Hugo can build one from your baseURL:

input type="hidden" name="_redirect" value="{{ "thanks/" | absURL }}"

Check that baseURL is set to the live site. If it still points at localhost, the redirect will too.

Prices at a glance

Prices and limits change often. Check each pricing page on the day you decide.

ServiceFree planFirst paid plan
FormTango1,000 submissions a month, unlimited forms$9 a month for 10,000 submissions
Formspree50 submissions a month$15 a month for 200 submissions; $30 for 2,000
Web3Forms250 submissions a month, according to its own comparison pageSee its pricing page
Forminit (formerly Getform)100 submissions a month, 1 form, 100 MB of uploads$16 a month for 5,000 submissions and 10 forms
Splitforms500 submissions in total, once (it does not refill)$5 a month for 5,000 submissions
Formspark250 submissions, once$25 once for 50,000 submissions

Our pick

FormTango: 1,000 free submissions a month (the most of any service here), unlimited forms, and messages past the limit are kept instead of rejected. If you want the longest-established name, pick Formspree; for the lowest paid price, Splitforms.

Connecting a form in Hugo

The Hugo guide has the steps and the full code. If you already have a form, the form checker finds the mistakes that stop it sending.

FormTango

A form backend with an inbox, spam filtering and email alerts. An AI coding tool can create a working form with one request and no account.

Good for: The largest monthly free plan in this comparison, sites built with AI coding tools, and anyone who wants over-limit submissions kept instead of dropped.

Watch for: New service (launched November 2026). File uploads, webhooks and CSV export are on paid plans.

Free: 1,000 submissions a month, unlimited forms. Paid: $9 a month for 10,000 submissions. Source

Formspree

The best-known form backend, with a large plugin library.

Good for: Teams that want the most established name and its integrations.

Watch for: The free plan has no file uploads, autoresponses or custom redirect. Webhooks and Zapier start on the $30 plan.

Free: 50 submissions a month. Paid: $15 a month for 200 submissions; $30 for 2,000. Source

Forminit (formerly Getform)

A form backend with workflows, validation rules and file uploads.

Good for: Forms that need file uploads on a free plan, or routing rules.

Watch for: One form on the free plan, and its pricing page says forms pause and reject submissions past the limit.

Free: 100 submissions a month, 1 form, 100 MB of uploads. Paid: $16 a month for 5,000 submissions and 10 forms. Source

How hard is it to switch?

Easy, as long as your form is plain HTML. A form backend is one address in the form's action attribute. Moving means creating a form at the new service, replacing that address, and sending one test submission.

Before you leave, export your old submissions if the service allows it. If the form uses a service-specific script or access key field, remove those at the same time.

Common questions

Does a Hugo site need a backend for a contact form?
Yes. Hugo has nothing running that could receive the form, so the form needs an address to send to. A form backend provides one.
What is the best free form backend for Hugo?
For the largest monthly free allowance, FormTango (1,000 submissions a month, unlimited forms). Web3Forms and Formgong list 250. Checked November 2026.

Written by the FormTango team. Facts about other services were read from their own pages on November 22, 2026. Spotted something out of date? Tell us and we will fix it.

Keep reading