Phone Number Validation in Google Forms (Regex Patterns)
Quick answer: Use a short answer question → ⋮ → Response validation → Regular expression → Matches, then paste a pattern. For US numbers, ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$ accepts every common format. Always add a custom error message showing an example — and be much more permissive than feels right, because a strict pattern rejects real people with real numbers.
There's no phone question type in Google Forms, so a phone number is a short answer question you constrain yourself. The mechanics take two minutes. Choosing the right strictness is the part that decides whether validation helps you or costs you responses.
If you build forms often, a Google Forms AI builder handles the first draft so your time goes into checking and sharing it.
Setting it up
- Add a Short answer question. Not paragraph — phone numbers are one line, and paragraph invites people to add notes.
- Open the ⋮ menu at the bottom right of the question and choose Response validation.
- Set the dropdowns to Regular expression and Matches.
- Paste your pattern.
- Write a custom error text. This field looks optional and isn't: the default message is generic and a respondent who can't tell what's wrong abandons the form.
Put the expected format in the question's description too — "Mobile number, e.g. (555) 123-4567". Telling people the format upfront prevents more bad entries than any pattern catches, because most malformed answers are guesses about what you wanted.
Patterns that work
| Use case | Pattern | Accepts |
|---|---|---|
| US / Canada, forgiving | ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$ | 5551234567, 555-123-4567, (555) 123-4567, 555.123.4567 |
| US / Canada, with optional +1 | ^(\+?1[-. ]?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$ | The above, plus +1 555 123 4567 |
| Digits only, exactly 10 | ^[0-9]{10}$ | 5551234567 only — clean data, most rejections |
| UK | ^(\+?44\s?|0)[0-9\s]{9,12}$ | 07700 900123, +44 7700 900123 |
| International, permissive | ^\+?[0-9\s\-().]{7,20}$ | Almost any real number worldwide |
| Must include country code | ^\+[0-9]{1,3}[0-9\s\-.]{6,14}$ | +90 532 123 4567, +1 555 123 4567 |
Paste patterns as plain text. Copying from a formatted page sometimes brings a typographic character — a curly quote or an en dash where a hyphen should be — and the pattern then rejects everything with no clue why. If validation fails on input you're certain is valid, retype the pattern by hand before debugging anything else.
Choose strictness deliberately
The instinct is to pick the strictest pattern that matches your own number. It's usually the wrong call, because the cost is asymmetric: a rejected valid respondent is lost, while a messy valid number is a five-second cleanup in the spreadsheet.
Go strict — digits only, fixed length — when the numbers feed an automated system that needs one format, when every respondent is definitely in one country, and when you'd rather lose an edge case than clean data by hand.
Go permissive — the international pattern — when the form is public, when respondents might be anywhere, when the number is a nice-to-have rather than the point of the form, or when respondents skew older or less technical. In those cases validation's job is to catch "asdf" and "I don't have one", not to enforce a house style.
A country-specific pattern on an international form is the classic mistake. A US pattern silently blocks every non-US number, and those people don't conclude they're the wrong nationality — they conclude your form is broken and close the tab. If you genuinely need per-country formats, branch by country into sections with their own patterns. Same reasoning as for postal codes.
The leading-zero problem
Worth knowing before you collect anything, because it's not fixable afterwards.
When a digits-only phone number lands in the linked spreadsheet, Sheets reads it as a number. Numbers have no leading zeros, so 07700900123 becomes 7700900123. Large numbers can also render in scientific notation. Nothing warns you; you just find out later that a column of UK or European mobiles is wrong.
Three ways out, in order of reliability:
- Format the column as text first. In the response sheet, select the phone column and choose Format → Number → Plain text. Do it before responses arrive — it does not retroactively restore zeros already lost.
- Require a country code. A number starting with
+is never parsed as a number, so the problem disappears. Use the "must include country code" pattern above. - Allow punctuation. Any pattern accepting spaces or dashes means most answers arrive as text anyway — though not all, since someone will still type bare digits.
If you've already lost zeros and know every number is from one country, ="0"&TEXT(A2,"0") in a helper column reconstructs them. Verify a few by hand before trusting it. More in analysing form data in Sheets.
What validation can't do
A regex checks the shape of a string. It cannot tell you the number exists, that it belongs to the person filling the form, or that it can receive SMS. Google Forms has no phone verification of any kind — no confirmation code, no carrier lookup.
So validation is a typo catcher, not an anti-fraud measure. If you're trying to stop people submitting repeatedly with fake details, phone validation won't do it — see preventing duplicate submissions and stopping spam responses, which address the actual problem. If verified contact details are genuinely required, you need a tool with SMS verification; the alternatives roundup covers those.
Before you ask for a phone number
Phone numbers are among the more sensitive things a form collects — harder to change than an email address and more directly intrusive. Ask only when you'll actually call or text, say why in the question description, and make it optional unless it's essential. A required phone number on a form that only ever emails people is the fastest way to lose responses, and under GDPR collecting data you don't need is a problem in itself.
Building this on a phone
Typing a regex into the validation field in a mobile browser is genuinely unpleasant — the field is narrow and the characters you need are buried in the symbol keyboard. FormMaker handles validation rules natively on iOS while producing ordinary Google Forms. See Google Forms on mobile.
How the US pattern works, piece by piece
Understanding the pattern makes it much easier to adjust safely. Here is the forgiving US / Canada pattern broken down:
| Part | Meaning |
|---|---|
^ | Start of the answer. Without it, extra text before the number would be allowed. |
\(? | An optional opening parenthesis. The backslash makes it a literal character; the question mark makes it optional. |
([0-9]{3}) | Exactly three digits — the area code. |
\)? | An optional closing parenthesis. |
[-. ]? | An optional single dash, dot or space. |
([0-9]{3}) | Three digits — the exchange. |
[-. ]? | Another optional separator. |
([0-9]{4}) | Four digits — the line number. |
$ | End of the answer. Without it, "555-123-4567 call after 5" would pass. |
Two consequences are worth noting. First, the pattern accepts some odd combinations, such as (555 123-4567 with only one parenthesis; that's a harmless trade-off for keeping the pattern simple. Second, it doesn't check North American Numbering Plan rules (for instance, that area codes don't start with 0 or 1). If you want that extra check, replace the first [0-9]{3} with [2-9][0-9]{2} — but each extra rule is another way to reject someone, so add it only if bad area codes are a real problem in your data.
Common tweaks
- Allow an extension: add
(\s*(x|ext\.?)\s*[0-9]{1,5})?just before the final$to accept "555-123-4567 x204". Useful for business contact forms where people give office lines. - Allow leading and trailing spaces: people sometimes paste numbers with a stray space. Add
\s*right after^and right before$. - Accept a two-space separator: change
[-. ]?to[-. ]*to allow any number of separators. More forgiving, slightly messier data. - Make the question optional but still validated: leave Required off. Google Forms only checks validation when something is typed, so an empty answer still passes. If you need "blank or valid," that's the default behavior.
After any change, test in Preview with at least five real-world formats before sharing. A regex that looks right can still reject a format you didn't think of.
A test checklist before you share the form
Open the form with the Preview (eye) icon and try each of these. Note which you expect to pass and which to fail, then confirm the form agrees:
| Input | US forgiving pattern | International permissive pattern |
|---|---|---|
5551234567 | Pass | Pass |
(555) 123-4567 | Pass | Pass |
555.123.4567 | Pass | Pass |
+1 555 123 4567 | Fail (use the +1 variant) | Pass |
+44 7700 900123 | Fail | Pass |
555-1234 (7 digits) | Fail | Pass |
call me | Fail | Fail |
555-123-4567 ext 12 | Fail | Fail |
The examples use 555 numbers, which are commonly used as fictional placeholders. If a result surprises you, the pattern is doing something other than what you intended, and it's much cheaper to find out now than from a respondent's email.
Worked example: a parent contact form for a school
Picture a U.S. elementary school collecting emergency contacts at the start of the year. An illustrative setup:
- Section 1 — Student: Student name (Short answer), Grade (Dropdown), Teacher (Dropdown).
- Section 2 — Primary contact: Name, Relationship (Multiple choice), Mobile phone (Short answer with the forgiving US pattern, Required), "Can we text this number?" (Multiple choice: Yes / No).
- Section 3 — Secondary contact: Same questions, with the phone number optional.
- Description on each phone question: "10-digit U.S. number, e.g. (555) 123-4567. If you don't have a U.S. number, email the front office."
- Error text: "Please enter a 10-digit U.S. phone number, like 555-123-4567."
This works because the audience is known to be local, the error message gives a concrete example, and there's a human fallback for the rare family with an international number. The "Can we text?" question separates permission from the number itself, which keeps the data clean for whatever messaging system the school uses. For a related layout, see parent-teacher conference sign-ups with Google Forms.
Cleaning phone numbers in Google Sheets
With a permissive pattern you'll get a mix of formats. Normalizing them in a helper column is quick:
- Strip everything but digits:
=REGEXREPLACE(TO_TEXT(C2),"[^0-9]","") - Drop a leading US country code:
=IF(AND(LEN(D2)=11,LEFT(D2,1)="1"),RIGHT(D2,10),D2) - Reformat as (555) 123-4567:
=IF(LEN(E2)=10,"("&LEFT(E2,3)&") "&MID(E2,4,3)&"-"&RIGHT(E2,4),"CHECK")
Column letters here are illustrative. Anything flagged "CHECK" needs a human look. Keep the original response column untouched and do the cleanup in new columns, so you can always trace a number back to what the person actually typed. If you send the numbers to another tool, an integration such as Zapier with Google Forms can apply similar formatting on the way out — check that tool's own documentation for its formatter options.
Texting and calling: consent basics
This is general information, not legal advice. In the U.S., sending marketing texts or automated calls is regulated (for example under the Telephone Consumer Protection Act), and the rules on what counts as consent are specific. If you plan to text people:
- Ask for permission in a separate question rather than assuming a phone number implies consent.
- Say what kind of messages you'll send and how often, in plain language.
- Don't pre-check a consent box. In Google Forms, Checkboxes start unchecked, which is what you want.
- Keep a record of the response (the timestamped row in Sheets serves that purpose) and honor opt-outs.
- Check the requirements of your SMS provider and talk to counsel for marketing programs.
Our overview of Google Forms data privacy in the U.S. covers sharing and access settings for sensitive fields like this one.
Accessibility notes
- Show the format in the question description, not only in the error message. Screen reader users hear the description when they reach the field; the error only appears after a failed attempt.
- Write the error as an instruction ("Enter 10 digits, like 555-123-4567") rather than a verdict ("Invalid").
- Don't split one phone number across three Short answer questions for area code, prefix and line number. It's harder to navigate with assistive technology and breaks paste from contacts.
- Offer an alternative contact method for people who don't have or don't want to share a phone number.
More in our Google Forms accessibility guide.
Troubleshooting
- Everything is rejected, even valid numbers. Retype the pattern by hand to remove curly quotes or en dashes, and check that the dropdown says "Matches," not "Doesn't match" or "Contains".
- Invalid answers get through. Your pattern probably lacks
^and$, so it matches a valid-looking fragment inside a longer string. - Validation rule disappeared. Changing the question type (for example, Short answer to Paragraph and back) can reset validation. Re-open Response validation and check.
- Numbers show as 5.55E+09 in Sheets. The column is formatted as a number. Use Format → Number → Plain text, then re-check the values.
Phone number or email: which should you ask for?
| Situation | Better choice | Why |
|---|---|---|
| Sending a confirmation or receipt | Google Forms can send respondents a copy of their response by email; it can't text them. | |
| Same-day logistics (pickups, events, deliveries) | Phone | People see texts and calls faster than email. |
| Sales or lead follow-up | Both, phone optional | Making phone optional keeps completion up while still giving you a call list. |
| Anonymous feedback | Neither | Any contact field undermines anonymity; see anonymous surveys. |
| Emergency contacts | Phone, required | The whole point of the form is reaching someone quickly. |
When you ask for both, put email first and label the phone field with its purpose, such as "Mobile number for day-of event updates (optional)."
FAQ
How do I validate a phone number?
Short answer → ⋮ → Response validation → Regular expression → Matches → paste a pattern, and add a custom error message.
What's a good US pattern?
^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$ — it accepts every common US format.
Why did Sheets drop my leading zero?
It parsed the answer as a number. Format the column as plain text before collecting, or require a country code.
Can Google Forms verify a number is real?
No. There's no SMS verification or carrier lookup — validation only checks the format.
Should I validate on an international form?
Loosely. A country-specific pattern blocks everyone else and they'll assume the form is broken.
Can I accept a phone extension?
Yes. Add an optional extension group such as (\s*(x|ext\.?)\s*[0-9]{1,5})? before the final $ in your pattern so answers like 555-123-4567 x204 pass.
Does validation apply if the phone question is optional?
Validation only runs when the respondent types something. An empty optional answer is accepted; anything typed must match the pattern.
How do I put messy phone numbers into one format in Sheets?
In a helper column, strip non-digits with REGEXREPLACE, remove a leading 1 from 11-digit US numbers, then rebuild the format with LEFT, MID and RIGHT. Keep the original column unchanged.