Write a Spanish telephone number as +34 followed by the closed 9-digit national number. There is no trunk 0 to drop. Mobile numbers use prefix 6 and 71–74; 70 is a personal number, not a mobile prefix. Store +, not an outbound prefix such as 00.

Spain's country code is 34. The Secretaría de Estado de Telecomunicaciones e Infraestructuras Digitales states that in its official PRESENTATION OF E.164 NATIONAL NUMBERING PLAN, COUNTRY CODE 34 - SPAIN, updated 18 February 2021. The ITU-T list of E.164 assigned country codes (position on 15 December 2016) also lists 34 for Spain.

A well-shaped number is not proof that the line is in service, that it will ring, or who will answer. That boundary is explained in A well-shaped number. An unanswered question.. The 2021 presentation is dated; we do not treat it as a 2026 reissue. Current operator-level assignments are pointed from that document to the CNMC numbering site, which we do not reproduce here. How to split the country code from the national number is in Store the country code and the national number as separate fields.

A closed 9-digit plan

A ministry note, El Plan nacional de numeración telefónica, dated November 2016, describes the national plan (approved by Royal Decree 2296/2004) as "un plan cerrado a 9 cifras": callers always dial all 9 digits of the complete number, wherever they are, so abbreviated local dialling is not possible. It also states that there is no national prefix (historically the digit 9 had that role in an open plan). The international prefix is 00, "Al igual que en el resto de la Unión Europea."

The 18 February 2021 presentation agrees on length: for mobile services, personal numbers, special-rate services and geographic numbers, the national (significant) number length is given as 9 (maximum and minimum). ITU-T E.164 (02/2026) says the destination's trunk prefix must not be dialled in the international form. For Spain that is straightforward: the stored international form is +34 plus the same 9 digits that are dialled nationally. There is no leading 0 to drop, unlike the UK, Ireland, France, Germany or Australia.

Written nationally International form E.164 (stored, no spaces)
612 345 678 (example shape) +34 612 345 678 +34612345678
91 123 45 67 (example shape) +34 91 123 45 67 +34911234567

The subscriber digits in that table are a shape, not official drama numbers. The 2021 presentation does not publish a reserved drama range in the pages we extracted.

Mobiles, personal numbers and geographic numbers

From the 18 February 2021 presentation:

  • 6, length 9 — "Mobile services", shared by several operators.
  • 7X with X=1,2,3,4, length 9 — "Mobile telephone service."
  • 70, length 9 — "Personal numbers," listed separately from mobile services.
  • 51, length 9 — nomadic services, non-geographic.
  • 590, length 13 — machine-to-machine.
  • Geographic numbers are also length 9, under leading digits 8 and 9 (for example 91x Madrid, 93x Barcelona, in the presentation's PATS rows). Some 8xx ranges are noted as shared between the telephone regulated service and nomadic services, or as nomadic only.

The 2016 note says the same in summary form: mobile services have numbers beginning with 6 and with 71, 72, 73 and 74; provincial codes begin with 9 and 8.

A rule that treats every 7 number as a mobile will mislabel 70 personal numbers. A rule that strips a trunk 0 that is not there will corrupt the number. For the general prefix problem, see international dialling prefixes and the plus sign.

Special-rate ranges in the 2021 presentation include 800 and 900 (freephone), 803, 806 and 807 (premium rate), and 901, 902 and 905. Those are not mobile numbers.

What should you record?

Store +34 and the 9-digit national number, with no extra 0 and no leftover 00. Format is not liveness, carrier, porting or ownership. If you need the current assignment of a particular prefix to an operator, that is a CNMC registry question, not a format check.

How to keep phone numbers intact in Excel and Google Sheets covers the spreadsheet-damage side of the same problem.

Where does Trigonomic fit?

Trigonomic's planned phone step is a local format assessment only, where a phone field is available. It does not test whether a number is in service, reachable, or who answers it.

Trigonomic is in development. The public site is an introduction and interactive design preview with synthetic data. It has no account creation and no list upload, and it runs no live checks.

Explore the workflow preview

Frequently asked questions

How long is a Spanish national number?

The official E.164 presentation dated 18 February 2021 lists length 9 for mobile services, personal numbers and geographic numbers. A 2016 ministry note on the national plan describes it as a closed 9-digit plan: callers always dial all 9 digits, and there is no national trunk prefix.

Which prefixes are mobile?

The 18 February 2021 presentation lists leading digit 6, length 9, as mobile services, and leading digits 7X with X=1,2,3,4, length 9, as mobile telephone service. Leading digits 70, length 9, are personal numbers, not mobile.

What is the country code?

The same 2021 presentation is titled with country code 34. The ITU-T E.164 assigned country-code list dated 15 December 2016 also lists 34 for Spain. The international prefix for outbound calls is 00.

Does a well-shaped +34 number mean the line is in service?

No. This page is about how the number is written and which published range the digits match. It does not test whether a number is in service, reachable, or who answers it.