1. Clean the input
Remove spaces, parentheses and hyphens while preserving the digits and country context.
+91 test data
Generate India phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.
| Calling code | +91 |
|---|---|
| National pattern | xxxxx xxxxx |
| E.164 example | +919876543210 |
| Typical length | 10 mobile digits |
Remove spaces, parentheses and hyphens while preserving the digits and country context.
Keep the 10-digit mobile number and add +91; do not add a trunk prefix.
Use +919876543210 for machine storage and format it for display at the edge of your application.
| Case | Fixture | Expected test behavior |
|---|---|---|
| National display | xxxxx xxxxx | Accept punctuation, then normalize. |
| Valid E.164 structure | +919876543210 | Accept for format testing; do not infer reachability. |
| Invalid length | +91987654321 | Reject before storing or sending to an API. |
Manually reviewed country notes
The mobile fixture on this page uses ten national digits and begins with a digit commonly used by Indian mobile ranges. Add +91 to the full national value; do not invent or retain a domestic trunk zero.
India does not provide a general fictional mobile block for this dataset. A structurally plausible value can belong to a subscriber, so use it only in systems where outbound delivery is disabled.
Keep all ten mobile digits after +91.
Reject the fixture when it begins outside the supported mobile-shaped range.
Do not confuse a structurally possible value with an active line.
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 |
|---|---|---|
98765 43210 | +919876543210 | Add +91 to ten national digits |
+91 98765 43210 | +919876543210 | Normalize an international input |
09876543210 | +919876543210 | Remove a presentation-only domestic zero cautiously |
987654321 | Reject | One digit short |
+919876543210 | Structure only | Do not infer carrier, reachability or ownership |
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.
+91 is the international country calling code for India. 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 India Department of Telecommunications 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.
Advertisement