The three layers of validation
| Layer | Question | How to check |
|---|---|---|
| 1. Format | Is it 10 digits in a valid pattern? | Rules or a regular expression |
| 2. Plausibility | Could this number be assigned at all? | Reserved and fictional ranges |
| 3. Line type | Is it mobile, landline or VoIP, and which carrier? | A lookup against number allocation data |
Most web forms only check layer 1. Sales and call-center teams need layer 3, because a perfectly formatted number can still be an office switchboard or a disconnected landline.
Format rules for US numbers
US numbers follow the North American Numbering Plan. A number has 10 digits, written NXX-NXX-XXXX:
- Area code (3 digits): the first digit is 2–9. It can never start with 0 or 1.
- Exchange or prefix (3 digits): the first digit is also 2–9.
- Line number (4 digits): any digits.
- Country code:
+1or a leading1is optional. Strip it, then check the 10 remaining digits.
Formatting characters don't matter. (201) 202-1234, 201.202.1234 and +1 201 202 1234 are the same number once you remove everything that isn't a digit.
Numbers that look valid but can't be real
- N11 codes: 211, 311, 411, 511, 611, 711, 811 and 911 are service codes. They can't be used as an area code, and in most of the country they aren't used as a prefix either.
- 555-0100 to 555-0199: reserved for fiction (films, TV, examples). A lead with one of these numbers is fake.
- Repeated or sequential digits: 123-456-7890, 000-000-0000 and 999-999-9999 are classic fake form entries.
- Unassigned area codes: a number can pass the pattern but use an area code that isn't in service. Only a lookup against allocation data catches this.
- Toll-free codes: 800, 833, 844, 855, 866, 877 and 888 are valid, but they're business toll-free lines, not someone's cell phone.
Layer 3: line type and carrier
A number can pass every format rule and still be the wrong kind of number for your campaign. To find out whether it's a cell phone, a landline or VoIP, and which carrier it was assigned to, you need to look up the block it belongs to. That's what Cellphone Validator does: try a free lookup, or upload a CSV to validate a whole list. Invalid and duplicate numbers are flagged at the same time.
For the background on line types, read how to tell a cell phone from a landline. If you want to see which carriers and cities an area code covers, browse the area code pages.
A regular expression to start with
This pattern checks layer 1 for a US number after you strip formatting. It doesn't catch the reserved ranges above or tell you the line type.
^1?([2-9][0-9]{2})([2-9][0-9]{2})([0-9]{4})$
Run it on digits only, for example after value.replace(/\D/g, '') in JavaScript.
Frequently asked questions
What makes a US phone number valid?
It has 10 digits (plus an optional leading 1), the area code and the prefix both start with a digit from 2 to 9, and it isn't in a reserved range such as 555-0100 to 555-0199.
Can a valid number still be fake?
Yes. A number can follow every format rule but use an area code or prefix that was never assigned, or belong to someone else. Format checks only rule out the obviously impossible ones.
Is validating a number the same as verifying it?
No. Validation checks the number could exist and what kind of line it is. Verification proves a specific person controls it, usually with a one-time code sent by text or call.