+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.
| 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.
| Country | Spain numbering plan |
|---|---|
| Line type | Mobile |
| Carrier the block was allocated to | Syma |
| E.164 | +34612345678 |
| International | +34 612 34 56 78 |
| National | 612 34 56 78 |
| RFC 3966 | tel:+34-612-34-56-78 |
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.
^(?: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})$| Number | National digits | Matches |
|---|---|---|
| 612 34 56 78 | 612345678 | Mobile |
| 810 12 34 56 | 810123456 | Fixed line |
| 800 123 456 | 800123456 | not in the ticked types |
| 901 12 34 56 | 901123456 | not 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 portability | Yes |
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 type | National digits | Example, national | Example, E.164 |
|---|---|---|---|
| Mobile | 9 | 612 34 56 78 | +34612345678 |
| Fixed line | 9 | 810 12 34 56 | +34810123456 |
| Toll-free | 9 | 800 123 456 | +34800123456 |
| Shared cost | 9 | 901 12 34 56 | +34901123456 |
| Premium-rate | 9 | 803 12 34 56 | +34803123456 |
| Personal number | 9 | 701 23 45 67 | +34701234567 |
| UAN | 9 | 511 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})$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.
| Operator | Line type | Prefix blocks | Ranges |
|---|---|---|---|
| Yoigo | Mobile | 69 | 613, 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 |
| Movistar | Mobile | 48 | 606, 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 |
| Vodafone | Mobile | 38 | 67, 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 |
| Orange | Mobile | 32 | 65, 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 |
| Lebara | Mobile | 17 | 6027, 6039, 6044, 6046–6049, 6340–6341, 6725, 6728–6729, 60305–60309 |
| DIA | Mobile | 16 | 6029, 65329, 65429, 65529, 65729, 65829, 69340–69344, 69360–69364 |
| Carrefour | Mobile | 10 | 6927, 6933, 68529, 69198–69199, 69229, 69320–69321, 69365–69366 |
| Lycamobile | Mobile | 6 | 631–632, 6020–6021, 6023, 6028 |
| Republica Movil | Mobile | 6 | 611, 6210–6211, 6213–6214, 6216 |
| DigiMobil | Mobile | 5 | 614, 624, 641–643 |
| PepePhone | Mobile | 5 | 6889, 71770–71771, 71777, 72261 |
| Euskaltel | Mobile | 4 | 6848, 6886–6888 |
30 more operators
| MasMovil | Mobile | 4 | 69190, 69300, 69310, 72260 |
| Aire Networks | Mobile | 3 | 6215, 68445, 74448 |
| Alai | Mobile | 3 | 7440, 7449, 74449 |
| YouMobile | Mobile | 3 | 6880–6881, 6885 |
| BT | Mobile | 2 | 68443–68444 |
| PTV | Mobile | 2 | 7442, 7446 |
| Parlem | Mobile | 2 | 6686, 6688 |
| Sarenet | Mobile | 2 | 6126, 68883 |
| Altecom | Mobile | 1 | 6236 |
| BluePhone | Mobile | 1 | 68442 |
| Boutique | Mobile | 1 | 60229 |
| Carrier Enabler | Mobile | 1 | 6343 |
| Deion | Mobile | 1 | 74442 |
| Eurona | Mobile | 1 | 68440 |
| InfoVOIP | Mobile | 1 | 74443 |
| Ion mobile | Mobile | 1 | 60221 |
| Jetnet | Mobile | 1 | 74447 |
| Lemonvil | Mobile | 1 | 68441 |
| Nethits | Mobile | 1 | 68448 |
| Oceans | Mobile | 1 | 60224 |
| OpenMovil | Mobile | 1 | 68870 |
| Quattre | Mobile | 1 | 68447 |
| R | Mobile | 1 | 6981 |
| Suma Movil | Mobile | 1 | 7172 |
| Syma | Mobile | 1 | 612 |
| Telecable | Mobile | 1 | 6846 |
| Truphone | Mobile | 1 | 6681 |
| VozTelecom | Mobile | 1 | 60225 |
| Vozelia | Mobile | 1 | 60222 |
| Zinnia | Mobile | 1 | 7110 |
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.