Skip to content

+34

Spain phone numbers

612 34 56 78

International +34 612 34 56 78, E.164 +34612345678

The numbering plan of Spain: formats, lengths, the regular expression for each line type and the prefix blocks allocated to each carrier, as ITU publishes it. A pattern says what a number looks like and where it was allocated; whether it is in service, and who serves it today, is a different question (below).

At a glance

Country code
+34
Exit code
00
Trunk prefix
none
Mobile digits
9
Fixed-line digits
9
Number portability
yes
Carriers on record
42

How to dial a number in Spain from anywhere: the dialling helper.

Mobile numbers start with:567
Mobile prefix blocks by operator
Yoigo
69
Movistar
48
Vodafone
38
Orange
32
Lebara
17
37 other operators
95

prefix blocks allocated, from the published records; a block is a prefix at the plan's allocation length

Check a number

Valid mobile number in Spain.

+34
country code
612
network code
345678
subscriber number
CountrySpain numbering plan
Line typeMobile
Carrier the block was allocated toSyma
E.164+34612345678
International+34 612 34 56 78
National612 34 56 78
RFC 3966tel:+34-612-34-56-78

Source: National numbering plans, ITU-T E.164 (ITU)

Test a pattern

Tick the line types you accept, copy the combined pattern, and paste numbers to see which range each one falls in. Numbers are reduced to their national digits first (no spaces, no +34, no trunk prefix); nothing leaves your browser.

Line types to accept
^(?:96906(?:09|10)\d\d|(?:590(?:10[0-2]|600)|97390\d)\d{3}|(?:6\d|7[1-48])\d{7}|96906(?:0[0-8]|1[1-9]|[2-9]\d)\d\d|9(?:69(?:0[0-57-9]|[1-9]\d)|73(?:[0-8]\d|9[1-9]))\d{4}|(?:400|8(?:[1356]\d|[28][0-8]|[47][1-9])|9(?:[135]\d|[268][0-8]|4[1-9]|7[124-9]))\d{6})$
NumberNational digitsMatches
612 34 56 78612345678Mobile
810 12 34 56810123456Fixed line
800 123 456800123456not in the ticked types
901 12 34 56901123456not in the ticked types

Need another country, or the pattern as code in your language? Open the regex builder.

Walk the prefixes

Type the first digits of a number in national form, or tap them: the operators holding blocks under those digits, then the block a full prefix falls in. 299 blocks held by 42 operators are on record.

Type the first digits of a number in national form.

In full

Cheat sheet

Country code+34
International exit code (dialling out)00
Trunk prefix (national dialling)none
Mobile number length (national digits)9
Fixed-line number length (national digits)9
E.164 example+34612345678
RFC 3966 (tel: URI)tel:+34-612-34-56-78
Mobile number portabilityYes

Line types and their regular expressions

Match each pattern against the national significant number: digits only, without the trunk prefix and without +34. The patterns follow the national numbering plan and are anchored here.

Line typeNational digitsExample, nationalExample, E.164
Mobile9612 34 56 78+34612345678
Fixed line9810 12 34 56+34810123456
Toll-free9800 123 456+34800123456
Shared cost9901 12 34 56+34901123456
Premium-rate9803 12 34 56+34803123456
Personal number9701 23 45 67+34701234567
UAN9511 23 45 67+34511234567

Mobile, 9 digits

^(?:96906(?:09|10)\d\d|(?:590(?:10[0-2]|600)|97390\d)\d{3}|(?:6\d|7[1-48])\d{7})$

Fixed line, 9 digits

^(?:96906(?:0[0-8]|1[1-9]|[2-9]\d)\d\d|9(?:69(?:0[0-57-9]|[1-9]\d)|73(?:[0-8]\d|9[1-9]))\d{4}|(?:400|8(?:[1356]\d|[28][0-8]|[47][1-9])|9(?:[135]\d|[268][0-8]|4[1-9]|7[124-9]))\d{6})$

Toll-free, 9 digits

^(?:[89]00\d{6})$

Shared cost, 9 digits

^(?:90[12]\d{6})$

Premium-rate, 9 digits

^(?:80[367]\d{6})$

Personal number, 9 digits

^(?:70\d{7})$

UAN, 9 digits

^(?:51\d{7})$

Carrier prefix blocks

The operator each prefix block was allocated to, in national form, from the published allocation records for +34. Numbers are portable, so this is the original allocation, not necessarily the carrier serving a number today.

OperatorLine typePrefix blocksRanges
YoigoMobile69613, 622, 633, 698, 6024–6026, 6031–6033, 6041–6043, 6112–6113, 6122, 6124–6125, 6230–6231, 6816, 6882–6884, 6919, 6932, 6935, 6937–6939, 6944–6946, 7121–7128, 7221–7228, 62529, 63529, 64529, 65229, 69301–69306, 69336–69337, 69345–69349, 69367–69369
MovistarMobile48606, 608–609, 616, 618–620, 626, 628–630, 636, 638–639, 646, 648–650, 659–660, 669, 676, 679–680, 682–683, 686, 689–690, 694, 696, 699, 5901, 6212, 6345, 6810–6815, 6840–6843, 6845, 7170, 7177
VodafoneMobile3867, 600–601, 605, 607, 610, 617, 627, 634, 637, 647, 661–664, 666–667, 687, 697, 5906, 6034–6038, 6218, 6682–6683, 6989, 7111, 7117, 7171, 7277, 60300–60304
OrangeMobile3265, 615, 625, 635, 640, 644–645, 665, 675, 685, 691–692, 695, 6016, 6018–6019, 6040, 6045, 6110, 6685, 6931, 6942, 7112, 7115, 7477–7478, 60220, 60223, 60226–60228, 69329
LebaraMobile176027, 6039, 6044, 6046–6049, 6340–6341, 6725, 6728–6729, 60305–60309
DIAMobile166029, 65329, 65429, 65529, 65729, 65829, 69340–69344, 69360–69364
CarrefourMobile106927, 6933, 68529, 69198–69199, 69229, 69320–69321, 69365–69366
LycamobileMobile6631–632, 6020–6021, 6023, 6028
Republica MovilMobile6611, 6210–6211, 6213–6214, 6216
DigiMobilMobile5614, 624, 641–643
PepePhoneMobile56889, 71770–71771, 71777, 72261
EuskaltelMobile46848, 6886–6888
30 more operators
MasMovilMobile469190, 69300, 69310, 72260
Aire NetworksMobile36215, 68445, 74448
AlaiMobile37440, 7449, 74449
YouMobileMobile36880–6881, 6885
BTMobile268443–68444
PTVMobile27442, 7446
ParlemMobile26686, 6688
SarenetMobile26126, 68883
AltecomMobile16236
BluePhoneMobile168442
BoutiqueMobile160229
Carrier EnablerMobile16343
DeionMobile174442
EuronaMobile168440
InfoVOIPMobile174443
Ion mobileMobile160221
JetnetMobile174447
LemonvilMobile168441
NethitsMobile168448
OceansMobile160224
OpenMovilMobile168870
QuattreMobile168447
RMobile16981
Suma MovilMobile17172
SymaMobile1612
TelecableMobile16846
TruphoneMobile16681
VozTelecomMobile160225
VozeliaMobile160222
ZinniaMobile17110

Questions developers ask

How many digits does a phone number in Spain have?
Mobile numbers have 9 national digits. Fixed line numbers have 9 national digits. That is the national number, without the country code +34.
What is the country code for Spain?
+34. From abroad, dial your own exit code, then 34, then the national number. From inside Spain, the exit code for international calls is 00.
Which prefixes are mobile numbers in Spain?
Mobile numbers start with 5, 6 or 7 in national form; the mobile regular expression on this page gives the exact ranges (example: 612 34 56 78). The carrier table shows which prefix blocks were allocated to which operator.
Can a mobile number in Spain be ported to another carrier?
Yes. Spain has mobile number portability, so a prefix tells you the carrier a number was originally allocated to, not necessarily the one serving it today. Only a live carrier lookup (an HLR or MNP query) answers that.