Home / Form backend for Eleventy

Form backend for Eleventy (11ty)

Add forms to Eleventy static sites. Simple HTML, no serverless functions.

Eleventy is the minimalist's static site generator. It outputs clean HTML — and clean HTML forms work perfectly with LazyForms. No JavaScript, no build plugins, no serverless functions. Just an HTML form and a URL.

How it works

  1. 1

    Sign up for LazyForms and create a form.

  2. 2

    Add a form to your Eleventy template (Nunjucks, Liquid, etc.).

  3. 3

    Set the action to your LazyForms endpoint.

  4. 4

    Build and deploy. Submissions arrive in your email.

Code example

<!-- src/contact.njk -->
---
layout: base.njk
title: Contact
---

<h1>Get in touch</h1>

<form action="https://api.lazyforms.com/f/YOUR_ACCESS_KEY" method="POST">
  <label for="name">Name</label>
  <input type="text" id="name" name="name" required />

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

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

  <input type="text" name="_honey" style="display:none" />
  <button type="submit">Send</button>
</form>

Tips

  • Works with any Eleventy template language — Nunjucks, Liquid, Markdown, or plain HTML.
  • No build plugins or npm packages needed.
  • Perfect for personal sites, blogs, and documentation sites on 11ty.

What you get

Email notifications on every submission
Web dashboard to browse and export data
Google Sheets integration
Webhook support for automation
Spam protection (honeypot + Turnstile)
Unlimited forms and submissions

Start collecting Eleventy form submissions

Enter your email to get your form endpoint. Free forever.

Enter your email to receive your form action URL · No password needed