1. Clean the input
Remove spaces, parentheses and hyphens while preserving the digits and country context.
+65 test data
Generate Singapore phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.
| Calling code | +65 |
|---|---|
| National pattern | 9xxx xxxx |
| E.164 example | +6591234567 |
| Typical length | 8 national digits |
Remove spaces, parentheses and hyphens while preserving the digits and country context.
Keep all 8 national digits and add +65; there is no domestic trunk prefix.
Use +6591234567 for machine storage and format it for display at the edge of your application.
| Case | Fixture | Expected test behavior |
|---|---|---|
| National display | 9xxx xxxx | Accept punctuation, then normalize. |
| Valid E.164 structure | +6591234567 | Accept for format testing; do not infer reachability. |
| Invalid length | +659123456 | Reject before storing or sending to an API. |
Manually reviewed country notes
Singapore uses an eight-digit national plan without a domestic trunk prefix. This mobile-shaped fixture begins with 9, and E.164 simply adds +65 before all eight digits.
IMDA's national numbering scheme is a structural source and does not designate this fixture as an unassigned subscriber number. Use it only for input, storage and display tests.
Keep all eight national digits after +65.
Do not invent or strip a leading zero.
Use the first digit as a range hint, not proof of carrier or reachability.
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 |
|---|---|---|
9123 4567 | +6591234567 | Add +65 to eight national digits |
+65 9123 4567 | +6591234567 | Normalize punctuation |
0065 9123 4567 | +6591234567 | Convert an access prefix |
09123 4567 | Reject or review | This fixture has no domestic trunk zero |
9123 456 | 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.
+65 is the international country calling code for Singapore. 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 IMDA national numbering scheme 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.