1. Clean the input
Remove spaces, parentheses and hyphens while preserving the digits and country context.
+31 test data
Generate Netherlands phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.
| Calling code | +31 |
|---|---|
| National pattern | 06 xxxxxxxx |
| E.164 example | +31612345678 |
| Typical length | 9 national digits after +31 |
Remove spaces, parentheses and hyphens while preserving the digits and country context.
Remove the leading domestic 0 from 06 before adding +31.
Use +31612345678 for machine storage and format it for display at the edge of your application.
| Case | Fixture | Expected test behavior |
|---|---|---|
| National display | 06 xxxxxxxx | Accept punctuation, then normalize. |
| Valid E.164 structure | +31612345678 | Accept for format testing; do not infer reachability. |
| Invalid length | +3161234567 | Reject before storing or sending to an API. |
Manually reviewed country notes
Dutch mobile numbers use domestic 06. International normalization removes that initial trunk zero and stores +31 followed by nine national digits, including the mobile 6.
ACM's guidance describes Dutch number use but does not make this generated 06 value fictional. A plausible fixture can be assigned, so never send calls, SMS or verification traffic to it.
Convert domestic 06 to international +31 6.
Keep eight subscriber digits after the mobile 6.
Do not confuse a format pass with a current allocation check.
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 |
|---|---|---|
06 12345678 | +31612345678 | Remove the domestic trunk zero |
+31 6 12345678 | +31612345678 | Normalize an international input |
0031 6 12345678 | +31612345678 | Convert an access prefix |
+31 06 12345678 | Reject or repair | The trunk zero follows +31 |
06 1234567 | Reject | One digit short |
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.
+31 is the international country calling code for Netherlands. 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 ACM telephone-number guidance 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.