Phone numbers · ES
Spain phone number format
Spain numbers use the country code +34. A mobile number looks like 612 34 56 78 at home and +34612345678 in international E.164 format.
| Type | Example (national) | International | E.164 | Digits |
|---|---|---|---|---|
| Mobile | 612 34 56 78 | +34 612 34 56 78 | +34612345678 | 9 |
| Landline | 810 12 34 56 | +34 810 12 34 56 | +34810123456 | 9 |
| Toll-free | 800 123 456 | +34 800 123 456 | +34800123456 | 9 |
| Premium-rate | 803 12 34 56 | +34 803 12 34 56 | +34803123456 | 9 |
| Shared-cost | 901 12 34 56 | +34 901 12 34 56 | +34901123456 | 9 |
| Personal (forwarding) number | 701 23 45 67 | +34 701 23 45 67 | +34701234567 | 9 |
| Company (UAN) number | 511 23 45 67 | +34 511 23 45 67 | +34511234567 | 9 |
- Country calling code
- +34
- National (trunk) prefix
- None
- International call prefix
- 00
- Separate VoIP range
- No
- Time zones
- Atlantic/Canary, Europe/Madrid
Validate in code
Check a Spain number.
Send the number as typed plus country: "ES". You get it back in E.164 with its line type, ready to store.
curl https://veqen-app.com/v1/phone/check \
-H "Authorization: Bearer $VEQEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"country": "ES", "phone": "612 34 56 78"}'import os, requests
r = requests.post(
"https://veqen-app.com/v1/phone/check",
headers={"Authorization": f"Bearer {os.environ['VEQEN_API_KEY']}"},
json={"country": "ES", "phone": "612 34 56 78"},
timeout=10,
)
result = r.json()
print(result["risk"]["verdict"], result["risk"]["reasons"])const res = await fetch("https://veqen-app.com/v1/phone/check", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.VEQEN_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({"country": "ES", "phone": "612 34 56 78"}),
});
const result = await res.json();
console.log(result.risk.verdict, result.risk.reasons);Questions
Spain numbers
What is the country code for Spain?
+34. Dial it after your international access code, or use +34 from a mobile phone.
How do I format a Spain phone number in E.164?
Add +34 in front of the number with no spaces, e.g. +34612345678.
How many digits is a Spain mobile number?
9 digits after the country code.
Does Spain have VoIP phone numbers?
There is no separate VoIP range in the numbering plan, so VoIP numbers look like ordinary numbers.