Falkenstein, Germany · Hetzner Online GmbH
FormHaven

A GDPR compliant contact form, with the data stored in the EU

Messages are stored on EU servers, deleted after the days you set per form, and covered by a data processing agreement on every account. Here is the form, and what GDPR asks of it in plain words.

14 days free, no card. Paste the address where the code says YOUR_FORM_ID.

contact.html
<form action="https://formhaven.net/f/YOUR_FORM_ID" method="POST">
  <label>Your email <input type="email" name="email" required></label>
  <label>Message <textarea name="message" required></textarea></label>
  <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
  <p>We use your email only to answer you.
    <a href="/privacy">How we handle your data</a>.</p>
  <button type="submit">Send</button>
</form>

Set it up

  1. 1

    Ask only for what you need

    An email address and a message are enough to answer someone. Every extra field is more personal data to justify and protect.

  2. 2

    Tell visitors next to the form

    Say what you use the details for and link to your privacy notice, as in the line above the button. GDPR asks you to tell people when you collect their data.

  3. 3

    Set how long messages are kept

    In the form's settings, choose 1 to 365 days, or keep none: then each message is emailed to you and its answers deleted.

  4. 4

    Have a processor agreement

    A service that stores messages for you is your processor, and GDPR asks for a contract with it. Our data processing agreement covers every account, with no form to sign.

Spam filtering without a captcha or cookies

A captcha usually loads a script from a third party and may set cookies, which can mean another consent question. Our bot check runs on our own servers: turn it on in the form's settings and add this line once to the page. Visitors see nothing, and it sets no cookies.

contact.html
<script src="https://formhaven.net/bot-check.js" async></script>

Questions about this setup

Does a contact form need a consent checkbox?
Not always. GDPR lists six lawful bases in Article 6(1), and consent is one of them. Many contact forms rely on another, such as answering a request the visitor made. Which one fits your site is a call for you or your adviser; this page is not legal advice.
Where is the data stored?
On our server at Hetzner in Falkenstein, Germany. The visitor's IP address is kept only as a one-way hash.
Can I store nothing at all?
Yes. Set the form to keep no submissions: each message is emailed to you and its answers are deleted right after.
Which form backend is best for GDPR?
Look for three things: where the messages are stored, whether a data processing agreement is included, and whether you can choose how long they are kept. FormHaven covers all three. Formspree stores submissions in the United States. Our comparison pages list each rival with its sources.
Can my client receive the messages?
Yes. Add up to 5 more addresses to the form. Each one confirms by a link first, and their copy carries no FormHaven branding.

More to read

Astro contact formA Contact.astro component for a static Astro site HTML form to emailOne line in the action, every message in your inbox Static site contact formOne form for Astro, Hugo, Eleventy, Jekyll or plain HTML Hugo contact formA partial and a shortcode for a static Hugo site Lovable contact formOne prompt for a site built with Lovable Kontaktformular nach DSGVOAuf Deutsch: gespeichert in Deutschland, mit AVV JavaScript contact formA fetch script that keeps the visitor on the page Vercel contact formFor plain HTML, Astro or Next.js hosted on Vercel FormSubmit not workingThe usual causes of a silent FormSubmit form Web3Forms not workingThe usual causes of a silent Web3Forms form Eleventy contact formAn include for a static Eleventy (11ty) site Formspree not workingThe usual causes of a silent Formspree form Export from FormspreeEvery Formspree submission, as a file Export from FormsparkEvery Formspark submission, as a file EmailJS not workingThe usual causes of a silent EmailJS form Form backend for AI agentsThe start request, every REST route and MCP tool Claude Code contact formOne prompt, then press Activate Cursor contact formThe prompt and the .cursor/mcp.json entry Contact form privacy policyThe paragraph to copy, in 8 languages GitHub Pages contact formFor user, organisation and project sites on github.io Cloudflare Pages contact formFor sites on pages.dev or your own domain Netlify contact formFor sites on netlify.app or your own domain React contact formOne component for Vite and other React apps Next.js contact formA client component that works with output: export Send form submissions to multiple emailsUp to 5 confirmed addresses per form, plus yours SvelteKit contact formOne Svelte 5 component, any adapter Nuxt contact formOne Vue component for Nuxt 4 and 3 Gatsby contact formOne component for a Gatsby 5 site HTML form webhookSigned JSON to your endpoint for every message Jekyll contact formAn include for Jekyll, on GitHub Pages or any host Angular contact formA standalone component that posts with HttpClient Contact form spamWhy forms get spam, and the layers that stop it Contact form honeypotThe hidden field that catches bots, and how to hide it Contact form without PHPFor hosts with no PHP, or mail() that lands in spam HTML form mailtoWhy action="mailto:" fails on webmail visitors, and the one-line fix Contact form templateThe same form in plain HTML Pricing€1 per form a month, €0.50 from the 11th

Get your form address in a minute

14 days free, no card. Then €1 per form a month, €0.50 from the 11th form.

Start your 14-day trial