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.

Setting it up

  1. Add a Short answer question. Not paragraph — phone numbers are one line, and paragraph invites people to add notes.
  2. Open the ⋮ menu at the bottom right of the question and choose Response validation.
  3. Set the dropdowns to Regular expression and Matches.
  4. Paste your pattern.
  5. 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 casePatternAccepts
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:

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:

PartMeaning
^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

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:

InputUS forgiving patternInternational permissive pattern
5551234567PassPass
(555) 123-4567PassPass
555.123.4567PassPass
+1 555 123 4567Fail (use the +1 variant)Pass
+44 7700 900123FailPass
555-1234 (7 digits)FailPass
call meFailFail
555-123-4567 ext 12FailFail

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:

  1. Section 1 — Student: Student name (Short answer), Grade (Dropdown), Teacher (Dropdown).
  2. 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).
  3. Section 3 — Secondary contact: Same questions, with the phone number optional.
  4. 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."
  5. 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:

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:

Our overview of Google Forms data privacy in the U.S. covers sharing and access settings for sensitive fields like this one.

Accessibility notes

More in our Google Forms accessibility guide.

Troubleshooting

Phone number or email: which should you ask for?

SituationBetter choiceWhy
Sending a confirmation or receiptEmailGoogle Forms can send respondents a copy of their response by email; it can't text them.
Same-day logistics (pickups, events, deliveries)PhonePeople see texts and calls faster than email.
Sales or lead follow-upBoth, phone optionalMaking phone optional keeps completion up while still giving you a call list.
Anonymous feedbackNeitherAny contact field undermines anonymity; see anonymous surveys.
Emergency contactsPhone, requiredThe 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.

Related guides