Cl@ve (often typed “Clave”) is Spain's official electronic identification system: one registration that lets you log in to the online services of the Tax Agency, Social Security, the traffic authority (DGT), every regional government and most town halls. A foreign resident with an NIE can register in three ways: online with an invitation letter posted to your tax address, online with a digital certificate, or in person at a registration office. Registration by video in the Cl@ve app is, for now, only offered to Spanish citizens with a valid DNI.
Living in Spain Police and paperwork
How To Obtain A Cl@ve PIN For Secure Online Services In Spain
For many foreign residents in Spain, the first real shock is not the sunshine, the paperwork, or even the opening hours. It is discovering that a huge amount of Spanish administration now happens online, and that you need the right digital identification before you can get very far. That is where Cl@ve comes in. It allows individuals to identify themselves securely when dealing with government bodies such as the Tax Agency, Social Security, regional administrations, town halls and other public services.
Cl@ve PIN is the name most people still use for the everyday login. The official sites now call it Cl@ve Móvil (Cl@ve Mobile on their English pages). The Cl@ve app is how the system confirms it is you: you scan a QR code or approve a request on your phone. If you cannot use the app, the system can still send a six-digit PIN by SMS to your registered mobile number.
If you live in Spain, Cl@ve can save you a lot of time. It can be used for tasks such as checking tax information, filing a Spanish income tax return, viewing Social Security records, accessing some residency-related procedures, checking notifications, updating certain personal details and completing forms that would otherwise require an in-person appointment.
For expats, students, remote workers, retirees and self-employed people in Spain, Cl@ve is not just a technical extra. It can quickly become part of everyday life. Once you have your Spanish NIE number, your padrón, tax address and other basic paperwork in place, registering for Cl@ve is one of the next practical steps worth taking.

What Is Cl@ve PIN?
Cl@ve PIN is a temporary electronic identification method used in Spain to access official online services. Instead of relying only on a permanent password, the system allows you to request a temporary PIN or confirm your identity through the Cl@ve app.
In practical terms, it helps prove that the person trying to access an online public service is really you. This matters because many of the procedures connected to Cl@ve involve sensitive information, including tax records, personal identification data, Social Security information and official communications from Spanish public bodies.
Cl@ve is designed for people who need to interact with Spanish public administrations electronically. Spanish citizens use it, but it is also useful for foreign residents with an NIE or TIE who need to deal with tax, employment, healthcare, residency or municipal procedures online.
It is important to understand that Cl@ve PIN, Cl@ve Mobile and Cl@ve Permanente are connected but not exactly the same thing. Cl@ve Mobile (Cl@ve Móvil) is the temporary login described above: you confirm each access in the Cl@ve app, which has replaced the old Cl@ve PIN app, or you receive a six-digit PIN by SMS. Each request, and each PIN, lasts five minutes. Cl@ve Permanente is a username (your DNI or NIE) and a password you choose yourself, meant for people who log in often. For services that need a higher level of security it adds a one-time code sent by SMS.
Why Expats In Spain Often Need Cl@ve
You may need Cl@ve when dealing with Spanish tax matters, checking your draft income tax return, accessing Social Security records, downloading certain certificates, receiving official notifications, completing some online forms, or checking information held by public bodies.
For example, someone who is self-employed in Spain may use Cl@ve or a digital certificate for Spain to manage tax and Social Security procedures. A retiree may use it to check official records or notifications. A foreign student or worker may need it later when dealing with residency, appointments or administrative updates.
Cl@ve is also useful because getting appointments in Spain can be slow. If you can complete a procedure online, you may avoid queues, missed appointments, travel time and the usual “come back with another photocopy” routine that seems to have been designed by someone with a personal grudge against printers.
Who Can Register For Cl@ve?
Cl@ve is available to people who can properly identify themselves through the registration process. Spanish citizens usually register with their DNI. Foreign residents normally register using their NIE and the support number shown on their residence document, TIE card, EU certificate or other accepted identification document.
If you are a foreigner in Spain, make sure the details on your documents are correct before starting. You will usually need your NIE, the support number from your document, a mobile phone number and an email address. A foreign mobile number is accepted: you enter it with its country prefix, and the phone must be able to receive SMS messages sent from Spain.
One important rule is that only one DNI or NIE can normally be associated with the same mobile phone number. This can catch couples and families out if they try to use the same phone number for several people. If the mobile number is already linked to another person, the system sends an access code to that phone and, once it is entered, the person who was linked to the number before is automatically blocked from Cl@ve.
If you do not yet have your NIE, read our guide on how to get your NIE number in Spain first. If you are unsure how DNI, NIE, NIF and CIF differ, our guide to Spain's tax codes is a useful place to start.
The Main Ways To Register For Cl@ve
There are several ways to register for Cl@ve. The best option depends on whether you already have a digital certificate, whether you can attend an office in person, and whether you hold a Spanish DNI or a foreigner's NIE.
The official Cl@ve site lists these routes: online with an invitation letter (basic level), online with a digital certificate or electronic DNI (advanced level), in person at a registration office (advanced level), and video identification in the Cl@ve app, which for now is only offered to Spanish citizens with a valid DNI. The older registration by video call with a public employee is shown on the official site as “Service temporarily disabled”.
For many foreign residents who do not yet have a digital certificate, the invitation letter route remains one of the most common options. It is not the fastest method because you must wait for a letter to arrive at your tax address, but it is often the most realistic route for people who are still getting their Spanish paperwork in order.
If you already have a Spanish digital certificate, registration is usually much faster. This is one reason many foreign residents eventually choose to get both Cl@ve and a digital certificate. They overlap in some areas, but a digital certificate can still be more powerful for certain formal procedures.
Registering Online Without A Digital Certificate
If you do not have a digital certificate or electronic DNI, you can register online by requesting an invitation letter. This letter is sent by post to the tax address held for you by the Spanish Tax Agency.
Step 1: Go To The Official Cl@ve Registration Page
To begin, go to the official Tax Agency Cl@ve registration page and choose the option to register in Cl@ve. You will be asked to enter your DNI or NIE. If you enter a DNI, the system may ask for the validity date or issue date. If you enter an NIE, it will usually ask for the support number shown on your foreigner document.
Step 2: Request The Invitation Letter
After your details are validated, the system should offer the option to request an invitation letter. This is normally worded along the lines of sending the letter to your tax address. If you accept, the Tax Agency records the request and sends the letter to the address it has on file.
This is where many expats run into problems. If your tax address is out of date, the letter may go to the wrong place. If you have moved recently, or if you are not sure what address the Tax Agency has for you, it is worth sorting that out before relying on the postal letter route.
You may also find that your padrón address, tax address and actual living address are not always the same in different systems. Spain does love a database, but sadly the databases do not always talk to each other like civilised adults.
Step 3: Use The Secure Verification Code
Once the invitation letter arrives, look for the Secure Verification Code, known in Spanish as the CSV. This is a 16-character code made up of numbers and capital letters.
You then return to the same Cl@ve registration option online. Enter your DNI or NIE again, together with the requested validity date, issue date or support number. This time, select the option confirming that you already have an invitation letter.
Step 4: Add Your Mobile Number And Email Address
Enter the 16-character CSV from the letter and continue. If the code is accepted, you will then provide your mobile phone number and email address, read and accept the conditions, and submit the registration.
There is an important time limit. The CSV code in the invitation letter is valid for 60 days. If you do not use it within that period, it expires and you will need to request a new letter or use another registration method.
After completing registration, you should receive confirmation and may be able to download proof of registration. Keep this document safe, especially if it includes information connected to activating Cl@ve Permanente.
Registering With A Digital Certificate Or Electronic DNI
If you already have a valid digital certificate or electronic DNI, you can register in Cl@ve online without waiting for an invitation letter. This generally gives you an advanced registration level, which may be needed for some procedures.
During the process, you identify yourself using the certificate or electronic DNI, provide the requested document support number, enter your mobile phone number and email address, accept the terms and submit the registration.
For foreign residents, the digital certificate route can be very useful once it is set up. If you are going to live in Spain long term, work here, run a business, file regular tax returns, or deal with frequent administrative procedures, it is worth considering a digital certificate as well as Cl@ve.
Proof of cover for your residency
Pick up your Sanitas quote
You will be asked to show private health cover before your registration goes through. Qualifying plans from €61,40 a month.
Your saved quote is ready whenever you are. Compare plans and finish in minutes.
- No co-payments
- Accepted for visa and residency
Registering In Person
You can also register for Cl@ve in person at an authorised registration office. These include offices of the Tax Agency, Social Security, the State Public Employment Service (SEPE) and the government delegations, plus many regional and town hall offices. The official Cl@ve site has an office finder. You must go yourself: nobody can register on your behalf.
In-person registration can be useful if the online route fails, if you cannot receive the invitation letter, if your mobile number needs updating, or if you need a higher level of registration for certain services.
Many offices require an appointment, so book before going. Take your valid passport and the document that shows your NIE (your TIE or EU registration certificate), and have your mobile number and e-mail address to hand, because both are recorded at the desk. Requirements can vary slightly depending on the office, so it is sensible to check the appointment page or office instructions before attending.
Can You Register For Cl@ve By Video Identification?
Not at present, if you register with an NIE. The video identification built into the Cl@ve app is, for now, only offered to Spanish citizens with a valid DNI. The older registration by video call with a public employee, which ran on weekday mornings from 9am to 2pm and did accept an NIE, is shown on the official Cl@ve site as “Service temporarily disabled”.
So for a foreign resident the routes that work today are the invitation letter, a digital certificate or a registration office. This is a temporary restriction, so check the official Cl@ve page at the time you register in case it has changed.
How To Use Cl@ve Once Registered
Once registered, you can use Cl@ve on public administration websites that support it. When you access a procedure, look for the Cl@ve identification option. In many cases, this may appear as Cl@ve Mobile, which includes Cl@ve PIN.
Using The Cl@ve App
If you use the Cl@ve app, the website may show a QR code. You open the app, scan the QR code, check that the verification code and organisation match, and confirm the request on your phone. You may then need to unlock your device using fingerprint, face recognition, PIN, pattern or another security method.
Using Cl@ve Without Scanning A QR Code
If you cannot scan the QR code, there may be an option to continue without QR reading by entering your DNI or NIE and the requested verification data. Depending on the procedure, you may then confirm through the app or receive a PIN by SMS.
Each request, and each PIN sent by SMS, is valid for five minutes, so do not start the process and then wander off to make coffee. Have your phone nearby and make sure you can access your SMS messages or the Cl@ve app before beginning. Only confirm a request that you started yourself on an official website: public bodies never ask for your PIN or codes by phone, e-mail or text message.
Common Cl@ve Problems And How To Avoid Them
You Do Not Receive The SMS PIN
One of the most common problems is not receiving the SMS with the PIN. If this happens, first check that the last digits of the phone number shown on screen match your current mobile number. The phone number used to receive the PIN must be the same one registered in the Cl@ve system.
If the number is correct but the SMS still does not arrive, try again, check your mobile signal, restart your device, make sure your inbox is not full and check whether your phone provider is blocking this type of message. Some antivirus or filtering apps may also interfere with SMS delivery.
The Tax Agency's own guidance points to the Cl@ve app as the way round SMS problems, because the login request then arrives in the app instead of by text message.
You Have Changed Your Mobile Number Or Lost Access
A Cl@ve registration does not expire and does not need renewing, as long as the details you registered with stay the same. The mobile number is specially protected: you can only change it online with a digital certificate or electronic DNI, or in person at a registration office. Your e-mail address can be changed online once you have logged in. If you forget your Cl@ve Permanente password, you can set a new one with the activation code shown on your registration receipt. If you have lost that code too, you can generate a new one on the Tax Agency's website or at a registration office.
The Support Number Is Entered Incorrectly
Another common issue is entering the support number incorrectly. On foreigner documents, the support number can be easy to confuse with other numbers. Use the help links on the official registration page if you are not sure where to find it on your TIE, EU certificate or residence document.
The Invitation Letter Has Expired
The CSV code in the invitation letter is valid for 60 days. If you try to use it after that period, it will no longer work. In that case, you will need to request a new invitation letter or register using another method.
The Mobile Number Is Already Linked To Another Person
Each DNI or NIE should normally have its own mobile number linked to Cl@ve. If a couple or family tries to use the same mobile number for several registrations, the system may block access or disable the previous user's registration.
The Procedure Requires A Higher Registration Level
You may also have problems if the procedure you are trying to access requires an advanced registration level rather than a basic one. This can happen even if your Cl@ve registration itself works correctly.
Basic Registration Versus Advanced Registration
Not all Cl@ve registrations are equal. Registration by invitation letter usually gives a basic registration level. Most online services accept this, but some require advanced registration, and with a basic registration you cannot use Cl@ve Firma, the system's electronic signature.
Advanced registration is usually obtained through in-person registration, registration with a digital certificate or electronic DNI, or certain reviewed video identification routes where available. This distinction matters because some users successfully register for Cl@ve but later find that a specific procedure still blocks access.
If that happens, the issue may not be your PIN. It may be that the public body requires a higher identity assurance level. In that case, you may need to upgrade your registration method, register in person, or use a digital certificate.
Cl@ve PIN Or Digital Certificate: Which Is Better?
For everyday identification, Cl@ve is often easier. It is especially useful for checking records, accessing tax information, confirming identity and completing common procedures.
A digital certificate can be more powerful for signing documents, filing certain forms, dealing with business administration, or completing procedures where formal electronic signature is required. Many long-term residents in Spain eventually use both.
If you only need to check the odd record or access the Tax Agency once a year, Cl@ve may be enough. If you are self-employed, running a company, dealing with immigration paperwork, buying property, submitting regular tax forms or managing official matters frequently, a digital certificate is strongly worth considering.
Useful Tasks You May Be Able To Complete With Cl@ve
Once registered, Cl@ve can help with many Spanish administrative tasks. These may include accessing Renta Web for income tax, checking Social Security information, viewing official notifications, accessing some municipal or regional services, downloading certain certificates, checking tax data and managing selected procedures online. The official Cl@ve site says it works for all central government online services, in every autonomous community and in most town halls. The examples it gives are your Citizen Folder (Carpeta Ciudadana), your income tax return and tax data, your clinical information, the points on your driving licence at the DGT and your working life report (vida laboral).
For example, if you need to file a return, read our guide on how to file an income tax return in Spain. If you are registering locally or need proof of address for other procedures, our guide to empadronamiento in Spain may also help.
If you are working in Spain or planning to become self-employed, Cl@ve may also be useful when dealing with Social Security. You can read more in our article on getting a Social Security number in Spain.
Final Thoughts
Cl@ve PIN is one of the most useful digital tools for anyone living in Spain. It will not remove every bit of bureaucracy from your life, but it can make many official procedures faster, safer and easier to manage from home.
If you are new to Spain, the best approach is to get your basic paperwork in order first: NIE, address registration, tax address, mobile number and email. Once those details are stable, registering for Cl@ve becomes much easier.
For most foreign residents without a digital certificate, the invitation letter route remains a practical starting point. Just remember that the CSV code expires after 60 days, your mobile number must be correct, and some procedures may require a higher registration level.
Once everything is working, Cl@ve can save you repeated office visits and help you stay on top of Spanish administration. In a country where the right login can sometimes be as valuable as the right appointment, that is no small thing.
Private Health Insurance For Life In Spain
If you are applying for residency, moving to Spain, studying here, working remotely or already living in Spain, having the right private health cover can make the administrative side of life much easier. HealthPlanSpain offers Sanitas health insurance options for visa applications, residency, students, families, self-employed people and long-term residents.
Quick guide to Sanitas health insurance in Spain
Sources
Tax Agency guide to Cl@ve registration with CSV
How to request the Cl@ve invitation letter
More in Police, scams and official paperwork 17 guides and 1 article
Read next
Reviewed by Sean Guy, authorised Sanitas agent (agent code 22395) and DGSFP-registered insurance mediator (C0320X5769518Z), Marbella.
Written by the HealthPlan Spain team: English-speaking Sanitas health insurance specialists, helping expats in Spain get the right cover since 2011. Authorised and regulated by the DGSFP.