1. Clean the input
Remove spaces, parentheses and hyphens while preserving the digits and country context.
+81 test data
Generate Japan phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.
| Calling code | +81 |
|---|---|
| National pattern | 0x0-xxxx-xxxx |
| E.164 example | +819012345678 |
| Typical length | 10 mobile digits including domestic prefix |
Remove spaces, parentheses and hyphens while preserving the digits and country context.
Remove the leading domestic 0 before adding +81.
Use +819012345678 for machine storage and format it for display at the edge of your application.
| Case | Fixture | Expected test behavior |
|---|---|---|
| National display | 0x0-xxxx-xxxx | Accept punctuation, then normalize. |
| Valid E.164 structure | +819012345678 | Accept for format testing; do not infer reachability. |
| Invalid length | +819012345 | Reject before storing or sending to an API. |
Manually reviewed country notes
Japanese mobile display commonly uses a 090 prefix. For international storage, remove the first domestic zero, add +81 and preserve the following ten national digits, giving +81 90 1234 5678.
The ITU dialing reference supports the conversion rule but does not reserve this mobile-shaped value for testing. It may be assigned, so the fixture must never be dialed or used for OTP flows.
Convert domestic 090 to international +81 90.
Keep both four-digit subscriber groups after the mobile prefix.
Do not treat formatting as proof of allocation or user control.
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 |
|---|---|---|
090-1234-5678 | +819012345678 | Remove the domestic trunk zero |
+81 90 1234 5678 | +819012345678 | Normalize punctuation |
0081 90 1234 5678 | +819012345678 | Convert an access prefix |
+81 090 1234 5678 | Reject or repair | The trunk zero follows +81 |
090-1234-567 | 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.
+81 is the international country calling code for Japan. 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 ITU dialing procedures registry 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.