🇪🇸 Spain Phone Number Format

Spanish numbers are 9 digits with no trunk prefix — what you dial in Madrid is exactly what follows +34 from abroad. Mobiles start with 6 or 7, landlines with 9 (or 8), so +34 612 345 678 is instantly recognisable as a mobile and +34 912 345 678 as a Madrid landline.

Spanish Number Formats Compared

Here is how one Spain number is written in each of the four standards:

FormatExampleUse for
E.164 +34612345678 Databases, SMS APIs (Twilio, WhatsApp), CRMs
International +34 612 34 56 78 Display to a global audience, business cards
National 612 34 56 78 Domestic display inside Spain
RFC3966 tel:+34-612-34-56-78 Clickable tel: links on websites

1998: The Year Spain Abolished the Trunk Prefix

Spain made a decision in 1998 that most countries still haven’t: it folded the area code into the number itself and abolished the trunk zero. Madrid’s old “91” code is now simply the first two digits of every Madrid landline. One number, one form, dialable identically from a Madrid café or a Tokyo hotel — just add +34 abroad.

The first digit carries the whole type system: 6 and 7 are mobile, 9 and 8 fixed (8 mostly for newer allocations and some regions), 900 freephone, 80x premium. Combined with the fixed nine-digit length, Spanish numbers are among the easiest in the world to validate — a gift for form designers.

Display conventions differ by type: mobiles are usually grouped 3-2-2-2 (612 34 56 78) while landlines read 3-3-3 (912 345 678). libphonenumber applies the right grouping automatically, which is what this site’s formatter outputs.

First-Digit Rules: 6/7 Mobile, 8/9 Fixed

TypePrefixesDigitsExample
Mobile 6, 7 9 612 34 56 78
Madrid landline 91 9 912 345 678
Barcelona landline 93 9 932 345 678
Other landlines 8, 9 9 942 345 678
Freephone 900 9 900 123 456

Calling Spain: No Zero to Drop

Calling fromDial
Within Spain 612 34 56 78 — No trunk prefix — dial all 9 digits.
From the US 011 34 612 345 678
From any mobile +34 612 345 678
  1. Enter + or your country’s exit code.
  2. Add the Spanish country code 34.
  3. Dial all 9 digits — Spain has no leading 0 to drop.

Spanish Numbering Facts

  • Spain abolished its trunk prefix in 1998 — there is no leading 0 to drop, a frequent point of confusion for callers used to UK/DE/FR rules.
  • The first digit encodes the type: 6/7 mobile, 8/9 fixed, 900 freephone, 80x premium.
  • Spanish convention groups mobiles 3-2-2-2 (612 34 56 78) and landlines 3-3-3 (912 345 678).
  • In E.164 every Spanish number is exactly +34 plus 9 digits — fixed length makes validation simple.

Format a Spanish Number

Nine digits in, four standard formats out — no trunk-zero guesswork, with the type detected from the first digit.

Enter phone number with country code or select country below.

Try:

Spain Phone Format FAQ

How do I write a Spanish phone number internationally?

Just add +34 in front of the 9 digits: 612 34 56 78 becomes +34 612 34 56 78 (+34612345678 in E.164). Nothing is dropped — Spain has no trunk 0.

Do Spanish numbers have a leading 0?

No. Spain eliminated the trunk prefix in 1998. You dial the same 9 digits domestically and after +34 internationally.

What do Spanish mobile numbers start with?

Spanish mobiles start with 6 or 7. Numbers starting with 9 or 8 are landlines; 900 is freephone.

How many digits does a Spanish phone number have?

Exactly 9 digits in all cases — mobile or landline — making Spanish numbers among the easiest in Europe to validate.

Other Country Formats