1. Clean the input
Remove spaces, parentheses and hyphens while preserving the digits and country context.
+1 test data
Generate United States phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.
| Calling code | +1 |
|---|---|
| National pattern | (NPA) NXX-XXXX |
| E.164 example | +12025550123 |
| Typical length | 10 national digits |
Remove spaces, parentheses and hyphens while preserving the digits and country context.
Keep all 10 national digits and add +1. Do not add a trunk zero.
Use +12025550123 for machine storage and format it for display at the edge of your application.
| Case | Fixture | Expected test behavior |
|---|---|---|
| National display | (NPA) NXX-XXXX | Accept punctuation, then normalize. |
| Valid E.164 structure | +12025550123 | Accept for format testing; do not infer reachability. |
| Invalid length | +1202555012 | Reject before storing or sending to an API. |
Manually reviewed country notes
United States fixtures use the North American Numbering Plan: a three-digit area code, three-digit central-office code and four-digit line number. E.164 keeps all ten national digits after +1; there is no domestic trunk zero to add or remove.
The generated 202-555-01xx examples stay inside the NANPA 555-0100 through 555-0199 block reserved for entertainment and advertising. That makes this page useful for repeatable UI and documentation tests without presenting a subscriber lookup.
Require an explicit US region when a national value has no +1 prefix.
Keep exactly ten national digits for this fixture contract.
Do not use a leading zero as a substitute for missing country context.
These cases document the fixture contract used by GetPhoneNum. They test parsing and normalization only; they never prove that a subscriber exists.
| Input | Expected result | Reason |
|---|---|---|
(202) 555-0123 | +12025550123 | Normalize a punctuated US fixture |
+1 202 555 0123 | +12025550123 | Normalize an international input |
202555012 | Reject | One national digit short |
02025550123 | Reject | The NANP fixture has no trunk zero |
+12025550123 | Reserved fixture | Structure does not imply an active line |
Reviewed by GetPhoneNum Editorial Team · Last reviewed August 11, 2026
Test empty input, pasted punctuation, a missing country code, one digit too few and one digit too many. Avoid using a single global regex for every country.
Test a JavaScript regexStore a normalized E.164 value and keep display formatting separate. Try the E.164 formatter or structural validator.
Numbering plans change. Use a maintained numbering library and treat carrier, line type and reachability as separate checks.
Browse calling-code referencesRelated generators and tools
They are generated test fixtures, not verified subscriber lines. Even a structurally valid value may coincide with an assigned number unless it comes from an officially reserved fictional range.
+1 is the international country calling code for United States. In E.164 format it appears after the leading plus sign and before the national number.
No capability is provided or verified. Do not call, text or use generated values for account verification.
Numbering rules can change. Check the North American Numbering Plan Administrator before enforcing production rules.
Create up to 100 local fixtures in the browser, download the open dataset, or use the API design reference to define a deterministic contract for automated test suites.