+34 test data

🇪🇸 Spain phone number generator

Generate Spain phone number examples for development, QA, input masks and documentation. Results are not live subscriber lines.

Generate an example

International display+34612345678
Do not call or text generated values. Spanish mobile examples normally begin with 6 or 7. Generated values are structural, not subscriber lookups.

Spain format reference

Calling code+34
National pattern6xx xxx xxx
E.164 example+34612345678
Typical length9 national digits

Convert a Spain number to E.164

1. Clean the input

Remove spaces, parentheses and hyphens while preserving the digits and country context.

2. Apply the trunk rule

Keep all 9 national digits and add +34; Spain does not use a domestic trunk zero for this mobile format.

3. Store one canonical value

Use +34612345678 for machine storage and format it for display at the edge of your application.

Spain phone test cases

CaseFixtureExpected test behavior
National display6xx xxx xxxAccept punctuation, then normalize.
Valid E.164 structure+34612345678Accept for format testing; do not infer reachability.
Invalid length+3461234567Reject before storing or sending to an API.

Manually reviewed country notes

What makes Spain phone input different

This Spanish mobile fixture uses a closed nine-digit national value beginning with 6. Add +34 without removing a trunk zero; the leading mobile digit is part of the subscriber number.

The CNMC numbering register is an allocation reference, not a fictional-number guarantee. The generated fixture may coincide with an assigned value and is restricted to development and QA.

Check 1

Keep all nine national digits after +34.

Check 2

Do not remove the leading 6 as if it were a trunk prefix.

Check 3

Classify 6- and 7-prefixed mobile ranges with current metadata.

Reviewed Spain normalization cases

These cases document the fixture contract used by GetPhoneNum. They test parsing and normalization only; they never prove that a subscriber exists.

InputExpected resultReason
612 345 678+34612345678Add +34 to nine national digits
+34 612 345 678+34612345678Normalize punctuation
0034 612 345 678+34612345678Convert an access prefix
0612 345 678Reject or reviewThis fixture has no domestic trunk zero
612 345 67RejectOne digit short

Reviewed by GetPhoneNum Editorial Team · Last reviewed August 11, 2026

Frontend checks

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 regex

Production validation

Numbering plans change. Use a maintained numbering library and treat carrier, line type and reachability as separate checks.

Browse calling-code references

Related generators and tools

Continue testing international phone formats

Spain phone number FAQ

Are these Spain phone numbers real?

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.

What does the +34 calling code mean?

+34 is the international country calling code for Spain. In E.164 format it appears after the leading plus sign and before the national number.

Can generated numbers receive calls, SMS or verification codes?

No capability is provided or verified. Do not call, text or use generated values for account verification.

Official numbering reference

Numbering rules can change. Check the CNMC numbering register before enforcing production rules.

Need repeatable Spain fixtures?

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.