splitforms.com

Contact form · Vercel

Contact form for Vercel-hosted sites

Vercel has no built-in form handler — every form needs a backend API route or third-party service. splitforms is the shortest path: direct POST from any Vercel deploy (Next.js, SvelteKit, Astro, Nuxt, static) with no /api route required.

  • 500 free / month
  • One endpoint
  • No backend code
Vercel contact form — copy-paste code for splitforms

Key benefits

No backend code

No server, API route, or SDK. Your Vercel form posts straight to one endpoint.

Straight to your inbox

Every Vercel submission is emailed to you and saved in a searchable dashboard, with spam filtered out first.

Design without limits

It's your own Vercel markup and styles. Splitforms is only the backend, so nothing constrains how the form looks.

Copy-paste ready

Your Vercel contact form, ready to paste.

Replace YOUR_ACCESS_KEY with the key from your dashboard — that's the whole integration. No SDK to install, no build step, just the html you already write.

contact.html
<!-- Works in any Vercel deploy: Next.js, SvelteKit, Astro, Nuxt, static -->
<form action="https://splitforms.com/api/submit" method="POST">
  <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY" />

  <input name="name"  required />
  <input name="email" type="email" required />
  <textarea name="message" required></textarea>
  <input type="checkbox" name="botcheck" style="display:none" tabindex="-1" />

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

<!--
  No /api/contact.ts route needed. The form POSTs directly to splitforms.
  Saves you a Vercel Function invocation (matters on the Hobby plan).
  If you prefer to hide the key, see the Next.js page for a Server Action
  pattern that keeps the key server-side.
-->

How to add it

How to add a contact form to a Vercel website.

To add a contact form to a Vercel website you need three things: a free splitforms access key, the html snippet above, and your key pasted into it. No backend, server, or SDK — the form posts to one URL and every submission lands in your inbox and dashboard.

  1. Get your free splitforms access key

    Sign up, verify your email and copy the access key you will paste into your Vercel form. No credit card required.

  2. Drop the Vercel snippet into your project

    Copy the Vercel code example into your project and replace YOUR_ACCESS_KEY with the key from step 1.

  3. Receive submissions in your dashboard

    Submissions arrive in the splitforms dashboard within seconds. Free includes owner email notification attempts; Pro adds Slack, Discord, Sheets, or any signed webhook URL.

Where submissions go

Where do your Vercel form submissions go?

Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it ever reaches you. Search, export to CSV, or forward it to a webhook or Slack on Pro.

  • 500 submissions a month, free to start
  • Honeypot + automatic spam scoring on every plan
  • Signed webhooks to Slack, Discord, your server
Vercel contact form submissions in the splitforms dashboard

No backend needed

Do you need a backend for a Vercel form? No.

Your Vercel form posts standard FormData to one URL. Splitforms validates the access key, runs its spam checks, and forwards it to your email — so there's no server, API route, or database for you to build or maintain.

  • No /api route required — saves Vercel Function invocations on Hobby
  • Works with every Vercel framework preset (Next.js, SvelteKit, Astro, Nuxt)
  • Optional Server Action pattern if you want the key off the client
How splitforms processes a Vercel form submission

Best practices

What a production-ready Vercel form needs.

What separates a Vercel form that works in a demo from one that holds up on launch day, most important first.

  • Lock the access key to your domains and turn on strict origin protection. The dashboard accepts a list, and with strict mode on, a copied key can't be used from another origin.
  • Add the hidden honeypot input. Bots fill every field; humans don't see it. splitforms moves any submission that has it filled to the Spam tab instead of your inbox.
  • Show submit state visually. Disable the button and label it 'Sending…' while the request is in flight — users hammer submit on slow networks otherwise.
Production-ready Vercel contact form best practices

Questions

Vercel contact form questions.

Anything missing? Email us, we read every message.

A person reading answers to common questions
Is splitforms really free?

Yes. You get 500 free submissions every month with no credit card, plus unlimited forms, spam filtering, the dashboard, and owner email delivery. The 500 resets every month. Pro is $5/mo for 5,000 submissions a month and adds signed webhooks, exports, integrations, and retained uploads when Storage is connected.

Do I need to install anything?

No. Splitforms is API-only. There's no SDK, no plugin, no PHP. Your form posts standard FormData to one URL.

How do you handle spam?

A hidden honeypot field catches the obvious bots. A rule-based filter scores everything else (links, spam phrases, disposable emails, gibberish) and quarantines what looks like spam to a separate Spam tab, so your inbox stays clean and nothing is lost.

Can I keep my access key out of the bundle?

Yes — use a server-side environment variable and post from a server route or server action. Or expose it client-side and rely on per-domain locking. Either path is supported.

How does Vercel handle forms without splitforms?

Hand-rolling a contact form on Vercel means building the whole pipeline yourself: an app/api/contact/route.ts handler, an email provider like Resend, Postmark, or AWS SES, environment variables for the SMTP or API keys, your own spam protection, somewhere to store submissions (Upstash Redis, Supabase or another database from the Vercel Marketplace), and a dashboard to actually read them. That's a weekend of glue code for a single form. A direct POST to splitforms replaces every piece — and because it happens client-side, your deploy can stay a static export with zero Function invocations.

View all FAQs

Ship your Vercel contact form in 60 seconds.

Free for 500 submissions a month on your Vercel site. Pro at $5/mo adds Slack alerts, signed webhooks and file uploads when you need them.

  • No credit card required
  • 500 free submissions
  • Setup in minutes
Two people celebrating a working contact form