Check whether a Spain number is valid, detect its line type, and convert it to E.164, international, or national format — instantly and free. Powered by Google's libphonenumber.
| Country | Spain (ES) |
| Country calling code | +34 |
| Example number (international) | +34 612 34 56 78 |
| National format | 612 34 56 78 |
| E.164 format | +34612345678 |
| RFC 3966 (tel: URI) | tel:+34612345678 |
| Example line type | mobile |
To dial a Spain number from abroad, start with the country code +34 followed by the national subscriber number. In E.164 — the format every SMS gateway, CRM, and payment provider expects — the same number is stored as +34612345678: a leading +, the country code, and the national number with no spaces or separators.
The interactive tool above runs entirely in your browser. For server-side validation at scale — sign-up forms, lead cleaning, SMS routing — call the API. One GET request, no SDK, works in any language.
# Validate a Spain number via the API curl "https://phone-validation-and-formatting.p.rapidapi.com/v1/validate?number=%2B34612345678" \ -H "X-RapidAPI-Key: YOUR_KEY" \ -H "X-RapidAPI-Host: phone-validation-and-formatting.p.rapidapi.com"
Get a free API key → · 1,000 free requests/month, no credit card.
The country calling code for Spain is +34. A full number in international (E.164) form looks like +34612345678.
A typical Spain mobile number is written +34 612 34 56 78 internationally, 612 34 56 78 nationally, or +34612345678 in E.164 format.
Send one GET request to the Phone Validation API with the number and country code "ES". The response tells you whether it is valid, the line type, and every standard format. A free tier is available.
Validity, line-type detection, and every format from a single endpoint — 240+ countries, sub-50ms from the edge.
Start free →