Use type="tel" not type="text"
Mobile keyboards open the numeric keypad for tel inputs. Desktop accepts the same characters as text but signals intent.
Form template · Detailed contact form
A contact form with a phone number field that auto-formats as the user types — (555) 123-4567 emerges from raw digits. Pure pattern validation, optional JS mask for the live formatting.
This template is one of our free HTML form templates. See more form templates by industry.
Overview
An auto-formatting phone field lives entirely in the browser: a few lines of JavaScript reshape the digits into (555) 123-4567 as the user types, so the mask never touches your backend. SplitForms is that backend — your masked <input> sits inside a plain HTML form that posts to one endpoint with a hidden access_key, so the same field works on GitHub Pages, Netlify, or any static host with no server to run the mask against. Every number lands in your dashboard and CSV export (paid plans) exactly as the form posted it, which is why the one real decision is whether you submit the pretty masked string or the raw digits underneath it.
Every template is free and fully editable in the drag-drop builder — swap fields, colors, and the button label before you publish.
No server, API route, or SDK — your Phone Number Input Form posts straight to one endpoint.
Every submission is emailed to you and saved to a searchable dashboard — spam filtered before it reaches you.
It's plain HTML you own — paste the Phone Number Input Form snippet, swap in your access key, and ship.
Copy and ship
HTML by default — the same field set also renders as React, Next.js, PHP, and cURL in your dashboard. Every variant posts to the same /api/submit endpoint. Replace YOUR_ACCESS_KEY with the key from your dashboard; that's the only edit.
<form action="https://splitforms.com/api/submit" method="POST">
<input type="hidden" name="access_key" value="YOUR_ACCESS_KEY">
<input type="hidden" name="subject" value="New detailed contact submission">
<label for="name">Full name *</label>
<input id="name" type="text" name="name" placeholder="Jane Builder" required>
<label for="email">Work email *</label>
<input id="email" type="email" name="email" placeholder="jane@company.com" required>
<label for="phone">Phone *</label>
<input id="phone" type="tel" name="phone" placeholder="+1 415 555 0142" required>
<label for="company">Company</label>
<input id="company" type="text" name="company" placeholder="Acme Inc">
<label for="reason">What's this about? *</label>
<select id="reason" name="reason" required>
<option value="">Choose…</option>
<option>Sales / pricing</option>
<option>Partnerships</option>
<option>Press / media</option>
<option>Support</option>
<option>Careers</option>
<option>Other</option>
</select>
<label for="message">Message *</label>
<textarea id="message" name="message" placeholder="Give us context — links, dates, deal size, anything we should know." required></textarea>
<!-- honeypot — bots fill every field -->
<input type="checkbox" name="botcheck" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form><p class="splitforms-attribution" style="margin-top:12px;font-size:11px;color:#888;text-align:right">
Powered by <a href="https://splitforms.com" style="color:#888;text-decoration:none" target="_blank" rel="noopener">splitforms</a>
</p>
<!-- drop-off analytics + partial leads (the form works without it) -->
<script src="https://splitforms.com/embed.js" async></script>How to add it
To add a Phone Number Input Form to your site you need three things: a free splitforms access key, the HTML snippet above, and your key pasted into it. No backend, database, or CAPTCHA library — the form posts to one URL and every submission lands in your inbox and dashboard.
Mobile keyboards open the numeric keypad for tel inputs. Desktop accepts the same characters as text but signals intent.
`pattern="[0-9() +-]+"` allows the common phone characters. Or use a strict US format: `pattern="\(?\d{3}\)?[ -]?\d{3}[ -]?\d{4}"`.
On input, strip non-digits and reformat to `(XXX) XXX-XXXX`. The mask runs on every keystroke, giving live formatting feedback.
What's included
Phone fields suffer from format chaos — users type +1 555 123 4567, (555) 123 4567, 555.123.4567, 5551234567. Three options: accept anything and normalize server-side (best for international), use a pattern attribute for client-side validation (good for US-only), or apply a JavaScript mask that formats as the user types (highest conversion, more code). splitforms accepts any format and your form's UX is whichever approach fits your audience. Mobile-friendly numeric keypad, live mask, format-tolerant.

Where submissions go
Reply-to is wired to the visitor's email, so one tap on Reply answers them directly — while the built-in honeypot and automatic spam scoring filter out bots before they reach you. Every submission is emailed to your inbox and can forward to a webhook or Slack the moment a visitor hits send.

How SplitForms works
splitforms receives the submission, filters spam, saves it to your dashboard and emails you — then, on paid plans, sends it on to your webhooks and integrations. No backend infrastructure to build.

Point your form to your unique SplitForms endpoint. That's it.

We instantly capture and organize every submission in your inbox.

Send data to email, spreadsheets, CRMs, webhooks, and 7,000+ apps.

No credit card required. Set up in under 60 seconds.
Connect & automate
On paid plans, submissions can also go to Slack, Discord, Google Sheets, Notion, Airtable, Zapier or any signed webhook — and splitforms works on the platforms you build on, from WordPress and Shopify to Next.js. With Stripe connected, your forms can take payments too.

Questions
SplitForms stores whatever the field carries at submit time, character for character, so the choice is yours. The clean pattern is to keep the visible masked input pretty for the user while a second hidden <input name="phone"> mirrors it with digits only, updated on each keystroke. That way your dashboard, CSV export (paid plans), and any webhook you've wired up get a consistent 5551234567 you can dedupe and dial, while people still see the formatted version as they type.
No. The mask is browser-only JavaScript — an input event handler or a small library like Inputmask or Cleave — and SplitForms never sees your script. It only receives the final string the field posts to https://splitforms.com/api/submit. There's no server of yours to configure or run the mask against, so the masked field drops straight into a static page (GitHub Pages, Netlify, S3) alongside the hidden access_key input.
Use type="tel" with inputmode="numeric" so phones show the number pad instead of a full keyboard, and autocomplete="tel" so the browser can autofill a saved number — that autofill is usually the single biggest lift on a phone field. Add a pattern attribute if you want the browser itself to reject malformed entries before they ever reach your SplitForms dashboard.
A masked field will happily post "(555) 12" or an empty string, so lean on browser guards: required plus a pattern (or a minlength on the digits) rejects partial and malformed numbers before they submit. For bots, SplitForms' hidden honeypot field and rule-based content filter filter spam with no CAPTCHA to slow real people down. Anything that still lands shows up in your submission dashboard, where you can scan it and export only the real leads to CSV (paid plans).
Two reasons. (1) Mobile keyboards: tel triggers the numeric keypad, dramatically reducing typos. (2) Accessibility: screen readers announce the field type, helping users with assistive tech understand what's expected. The 'no desktop benefit' is a feature, not a bug — the behavior matches user intent.
Depends on your audience. International contact forms should accept any format (use a permissive pattern + server-side normalization). US-only forms can use a strict pattern that matches `(555) 123-4567`. Either way, splitforms accepts whatever format the user submits — the validation is for UX, not data integrity.
Yes — listen for both `input` and `paste` events, and reformat on every change. The pattern only validates on submit, so the mask gives live feedback as the user types or pastes.
Simple pricing
Free gives you 500 submissions for $0 — no card, no time limit. Pro is $5/month for 5,000 submissions a month, and Annual is $49/year for 15,000 a month with every Pro feature.
For side projects and indie devs.
Every paid feature, for agencies and growing products.
Every Pro feature with triple the volume — $0.27 per 1,000 at full use.
No credit card required on Free • Cancel anytime • Full pricing and FAQ