Phone number input
People write phone numbers in many ways, and forms that insist on one way reject numbers that work.
The answer
Ask only if you will use it, take it in one field, and accept the number however it is written. As strong as the weakest rule behind it: moderate.
-
Ask for a phone number only if you’ll use it. Say why next to the field, and make it optional when you can.
Baymard's survey (n=1,026) and test observations, plus GOV.UK and USWDS guidance, agree. Baymard does not publish its test samples, and nothing measures the effect of the explanation, so 3.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Leave out what is not needed
- Common mistake
- Requiring a phone number without saying why. Baymard reports fake numbers and abandoned checkouts (Baymard Institute, 2025).
- User researchUser research: Phone number UX: always explain why the phone field is requiredBaymard Institute, 2025
- User research: Checkout experience: don't require seemingly unnecessary informationBaymard Institute, 2012
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
- Guidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
-
Use one field for the whole number.
GOV.UK, USWDS and Google's guidance agree. The one experiment found no difference between three fields and one masked field, so the rule is based on convention: 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Let practiced people go faster
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
- Guidance: Address form best practices codelab
- Guidance: Autofill (Learn Forms)web.dev, 2021
- Guidance: Census Bureau experiment: phone format (benefit messages study)Nichols et al., 2017
-
Accept numbers however people write them, with spaces, dashes, brackets or a plus sign, and tidy them yourself.
Consistent across GOV.UK, USWDS, NN/g and the libphonenumber maintainers, with Baymard's observation that format examples are ignored. No controlled study, so 3.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Prevent errors
- Common mistake
- Requiring one way of writing the number and rejecting the rest. Baymard reports that most test participants ignored the format example they were shown (Edward Scott, 2017). See rule 6.
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
- Guidance: Website forms usability: top 10 recommendationsNielsen Norman Group
- Guidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
- Guidance: Input masking for restricted form fields (phone, date, card)Edward Scott, 2017
- Guidance: Phone Input guidelines (Catnip)Signicat Catnip design system
The other rules
-
If you split the number anyway, give the group one label and name each part.
Required by WCAG 2.2 (3.3.2 at A, 1.3.5 at AA). Both reopened and checked. The list of telephone tokens in WCAG itself could not be fetched; the token names come from the HTML standard.
- Applies when
- The number is split across fields.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
-
Mark the field with the tel autocomplete token so browsers can fill it.
Required by WCAG 2.2 (3.3.2 at A, 1.3.5 at AA). Both reopened and checked. The list of telephone tokens in WCAG itself could not be fetched; the token names come from the HTML standard.
- Applies when
- The person is entering their own details.
- Based on
- Standard or law
- Depends on
- Whose details they enter
- Principle
- Let practiced people go faster
- StandardStandard: HTML Standard, autofill field names for telephone numbersWHATWG
- GuidanceGuidance: wcag22-1.3.5
- Guidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
-
Use the tel input type so phones show a number pad.
Convention across the HTML standard, Google and GOV.UK. The standard does not promise a keypad, and USWDS's written guidance prefers a text field with a numeric hint. Rated 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Let practiced people go faster
- StandardStandard: HTML Standard, Telephone state (type=tel)WHATWG
- GuidanceGuidance: Address form best practices codelab
- Guidance: Build an address form that follows best practice
- Guidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: Input Tel (usage)Porsche Design System
- Guidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
-
Browsers don’t check phone numbers, so check them yourself, gently. Don’t reject unusual lengths or foreign numbers you can use.
The HTML standard states the fact; the leniency advice is expert opinion from library maintainers and design systems. Rated 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Prevent errors
- Common mistake
- Trusting the browser to validate. The HTML standard says the telephone type checks nothing (WHATWG). Two vendor pages say otherwise (Build an address form that follows best practice; Porsche Design System).
- StandardStandard: HTML Standard, Telephone state (type=tel)WHATWG
- GuidanceGuidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
- Guidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: Phone field (customer account UI extensions, web components)Shopify, 2026
- Guidance: Phone Input guidelines (Catnip)Signicat Catnip design system
-
Don’t change the number after people type it, for example by adding a country code.
One GOV.UK team's observation of confused users, against a design system that reformats on leaving the field. Rated 2.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Keep people in control
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: Phone number (Jutro 10.13)Guidewire Jutro design system
-
If you accept foreign numbers, say so, and accept a country code typed or pasted with the number.
GOV.UK itself says international numbers need more research. Rated 2.
- Applies when
- Users are in more than one country.
- Based on
- Convention
- Depends on
- Where users live
- Principle
- Speak the person’s language
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
- Guidance: Phone Input guidelines (Catnip)Signicat Catnip design system
- Guidance: Contact number patternUAE Design System, 2026
-
If you offer a country list, let people search it by name or code, show full names, preselect a country you know, and don’t guess the country from the code alone.
Agreement among a handful of smaller design systems, none citing research. Rated 2.
- Applies when
- Users are in more than one country.
- Based on
- Convention
- Depends on
- Where users live
- Principle
- Let practiced people go faster
- GuidanceGuidance: International phone number input patternSalt Design System, 2026
- Guidance: Phone Input guidelines (Catnip)Signicat Catnip design system
- Guidance: Phone inputWander design system
- Guidance: Contact number patternUAE Design System, 2026
- Guidance: Phone number (Jutro 10.13)Guidewire Jutro design system
- Guidance: Phone Number FieldDubai Design System
- Guidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
-
If the number must be a certain kind, such as a mobile for texts, say so before people type.
Agreement among a handful of smaller design systems, none citing research. Rated 2.
- Applies when
- The service needs a particular kind of number.
- Based on
- Convention
- Principle
- Prevent errors
- GuidanceGuidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
- Guidance: Contact number patternUAE Design System, 2026
-
Don’t format the number as people type. If you must, never block characters, keep paste and editing working, and test with a screen reader.
Evidence points both ways and the only experiment is inconclusive. Rated 1.
- Applies when
- Always.
- Based on
- Practitioner research
- Principle
- Prevent errors
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: Input masking for restricted form fields (phone, date, card)Edward Scott, 2017
- Guidance: Bad practices on phone number form fieldsAnthony, 2018
- Guidance: USWDS input mask componentU.S. Web Design System
- Guidance: Census Bureau experiment: phone format (benefit messages study)Nichols et al., 2017
- Guidance: Phone number (Jutro 10.13)Guidewire Jutro design system
Accessibility
- WCAG 2.2 · 1.3.5 · AAA field collecting the user's own telephone number must expose that purpose in code. An autocomplete value does this; the telephone input type alone does not.
- WCAG 2.2 · 3.3.2 · AThe field needs a label. Split fields need a group label and a name for each part (failure F82).
- WCAG 2.2 · 3.2.2 · AMoving focus to the next part automatically is a change of context unless people are told first.
- USWDS reports that its own input mask component does not pass all of its WCAG 2.1 AA tests ().
Open questions
- OpenInput masks. GOV.UK says avoid them; Baymard and UX Movement recommend masks matched to the country; USWDS ships one that fails its own accessibility tests. The one experiment found no benefit, and its mask misbehaved in about 8% of entries (). No source reports a clean controlled test of a mask against free entry.
- OpenCountry choosers. No research found on whether a chooser beats typing the code, or on defaulting the country.
- OpenPeer-reviewed research on phone fields is close to absent. Nearby studies cover dates, currency and digit grouping, not phone numbers.
- OpenTelephone type versus a text field with a numeric keypad hint. USWDS guidance and its own sample markup disagree.
Sources
- User researchUser research: Phone number UX: always explain why the phone field is requiredBaymard Institute, 2025
- User research: Checkout experience: don't require seemingly unnecessary informationBaymard Institute, 2012
- StandardsStandard: Understanding SC 3.3.2 Labels or InstructionsW3C WAI
- Standard: HTML Standard, autofill field names for telephone numbersWHATWG
- Standard: HTML Standard, Telephone state (type=tel)WHATWG
- GuidanceGuidance: GOV.UK Design System, Ask users for phone numbersGOV.UK Design System
- Guidance: USWDS pattern, Create a user profile: Phone numberU.S. Web Design System
- Guidance: Falsehoods Programmers Believe About Phone NumbersGoogle libphonenumber project
- Guidance: Address form best practices codelab
- Guidance: Autofill (Learn Forms)web.dev, 2021
- Guidance: Census Bureau experiment: phone format (benefit messages study)Nichols et al., 2017
- Guidance: wcag22-1.3.5
- Guidance: Build an address form that follows best practice
- Guidance: Input Tel (usage)Porsche Design System
- Guidance: Website forms usability: top 10 recommendationsNielsen Norman Group
- Guidance: Input masking for restricted form fields (phone, date, card)Edward Scott, 2017
- Guidance: Phone Input guidelines (Catnip)Signicat Catnip design system
- Guidance: Phone field (customer account UI extensions, web components)Shopify, 2026
- Guidance: Bad practices on phone number form fieldsAnthony, 2018
- Guidance: USWDS input mask componentU.S. Web Design System
- Guidance: Phone number (Jutro 10.13)Guidewire Jutro design system
- Guidance: Contact number patternUAE Design System, 2026
- Guidance: International phone number input patternSalt Design System, 2026
- Guidance: Phone inputWander design system
- Guidance: Phone Number FieldDubai Design System
Related
- When to validate a form fieldCheck on submit, and do not show an error until people have finished the field.Answer: moderate.
- Error message contentSay which field is wrong and how to fix it, right next to the field.Answer: strong.
- One-time codesUse one field that can be pasted into and filled automatically, and do not submit by itself.Answer: moderate.
- Input modes and on-screen keyboardsShow the keyboard that matches each field, but accept the same input whatever keyboard appears.Answer: moderate.