Cl@ve for foreigners with an NIE: how to register
This is a task we handle
Digital certificate Message us on WhatsAppA specialist will reply within 15 minutes
Related services:
Below we explain which document you will be registered with, where to find the support number (número de soporte), what level each method gives you and what to do if the system shows an error. How Cl@ve differs from an electronic certificate is covered in our article on the certificado digital. The rules were checked on 11 November 2026 against clave.gob.es, the tax office (AEAT) website and the BOE.
The FNMT electronic certificate gives you the most options: if you have a TIE card or an EU citizen certificate, registering in Cl@ve with it takes one form on the AEAT website and you get the advanced level straight away, and where Cl@ve is not enough, you log in with the certificate itself. We handle the whole process of getting it; more details on the digital certificate (firma digital) page.
In this article
Which document a foreigner is registered with
Under the Cl@ve rules (the resolution of 14 December 2015), a foreigner is registered with a valid TIE card or EU citizen certificate. The NIE is entered without spaces or hyphens (a letter, 7 digits, a letter), followed by the support number (número de soporte). Where to find it is explained in the AEAT help pages:
- TIE card or residence permit (permiso de residencia): on the front, the letter E followed by 8 digits, for example E87654321;
- EU citizen certificate in card format: on the back; the letter C is put before the number, and if there are fewer than eight digits, zeros are added on the left: the number 9999999 is entered as C09999999;
- old-style EU citizen certificate on a sheet of paper: the number is in the top right-hand corner of the front.
If all you have is the sheet assigning your NIE, with no card, the Cl@ve rules do not list this document. It is suitable for an FNMT certificate, though: the FNMT accepts the official document assigning the NIE together with your passport, and the expiry date on the sheet does not matter (question 1343 on sede.fnmt.gob.es). The difference between the NIE and the TIE is explained in our article on the NIE and TIE.
You also need a mobile phone and an email address. A foreign number works if it can receive SMS messages from abroad: it is entered with the country code, without the “+”. Each number can be linked to only one NIE or DNI (point 1.6 of Annex I to the resolution): if a family member registers with your number, the number will pass to them, and your Cl@ve will stop working until you provide a new one.
Registration methods and levels
There are two levels. The basic level opens many services, but not all, and does not give you the Cl@ve Firma cloud signature. According to the AEAT help pages, public authorities other than the tax office itself may require the advanced level for their frequently used services: the level needed is chosen by the authority that owns the service.
| Method | How it works | Level |
|---|---|---|
| Invitation letter (carta de invitación) | Request on the AEAT website or in the Cl@ve app; a letter with a CSV code arrives by post at your tax address, and registration is completed online | Basic |
| Electronic certificate or DNIe | Online on the AEAT website, or with a certificate on your phone, directly in the Cl@ve app; confirmation comes immediately after you submit the form | Advanced |
| Registration office | In person, at many offices by appointment, with a document showing your NIE and your passport; it cannot be done through a representative or with a power of attorney | Advanced |
| Video identification in the app | So far only for Spanish citizens with a valid DNI | Basic, advanced after review by a staff member |
The basic level is upgraded to advanced online with a certificate or DNIe, or at a registration office (point 1.5 of Annex I). Registration offices include AEAT, Seguridad Social and SEPE offices, citizen service points at the Delegaciones and Subdelegaciones del Gobierno, and offices of many regional governments and town halls; addresses are in the office finder on administracion.gob.es, marked Cl@ve.
The invitation letter: how to get through without unnecessary waiting
The key condition is an up-to-date tax address: if you have moved without telling the tax office, the letter will go to the old one. The AEAT offers several ways to change your address: in the Renta WEB services (“Modificar domicilio fiscal”) with a reference number or a certificate, with the Modelo 030 form (Modelo 036 if you are autónomo), or at your local office. On the reference number, see our article on the número de referencia; on the form, see our article on Modelo 030.
Cl@ve Móvil, Cl@ve PIN and Cl@ve Permanente
Cl@ve Móvil is the new way to log in after registering. It works through the Cl@ve app (Android 8 or later, iOS 15 or later): you scan a QR code on the authority's website or confirm a request that arrives in the app. Without the app, you choose to log in without a QR code and enter your NIE with the support number, and after about a minute a link appears for getting a 6-digit PIN by SMS. The request is valid for 5 minutes, and only one device can be active per NIE.
Cl@ve PIN (login with a one-time code) and Cl@ve Permanente are the older methods, which are gradually being merged into Cl@ve Móvil; for now all three work, and there is no need to register again. The old Cl@ve PIN app is being updated to the Cl@ve app, and the AEAT help pages call this login “Cl@ve Móvil (incluye Cl@ve PIN)”.
Cl@ve Permanente is a login with your NIE and a permanent password. The password, at least 8 characters long, is set on activation using the code from the registration confirmation and must be changed after 2 years. For services with enhanced security, an SMS code is added, and only at the advanced level. The AEAT does not use this login; it works on other government websites.
If registration or login fails
What the system messages mean and what to do about them, according to the AEAT help pages:
| Message | What it means | What to do |
|---|---|---|
| “Introduzca soporte válido” | The support number was entered in the wrong format | Enter it with the letter: E and 8 digits from a TIE, C and 8 digits from an EU citizen certificate |
| “Error en identificación 06” | The details did not match the document | Check the NIE (9 characters in a row) and the support number; if everything is correct, the AEAT advises going to a National Police station (comisaría) to have the document details checked and updated |
| “(66) … requiere un registro presencial o con certificado electrónico reconocido” | The service needs the advanced level, and you have the basic one | Upgrade your level online with a certificate (“Obtener un nivel de seguridad superior en Cl@ve”) or at a registration office |
| “Se ha excedido el número máximo de intentos fallidos…” | There were too many errors in one day | Try again after 00:00 |
| No SMS arrives | The number does not match the one given at registration, or the operator is blocking these SMS messages | Check the last digits of the number shown on screen; you can change the number with a certificate or DNIe, or in person at a registration office |
When it is easier to start with a certificate
An FNMT certificate is also issued on the basis of the NIE sheet, and with it you can log in to public authorities' websites without Cl@ve. If you have a TIE or an EU citizen certificate, you can use the same certificate to register in Cl@ve online, straight at the advanced level and without waiting for a letter, and later change your phone number in Cl@ve online. Where to verify your identity for the certificate is explained in our article on where to verify your identity for a certificado digital.
We handle the whole process of getting the certificate: we file the application, prepare your identity verification and accompany you to the appointment, interpreting for you, install the certificate on your computer or phone and make a backup copy. If the whole family needs certificates, we arrange them in a single visit. You register in Cl@ve yourself once you have the certificate and a TIE card or EU citizen certificate: it is one form on the AEAT website.
Sources (checked on 11 November 2026)
- Resolución de 14 de diciembre de 2015 (BOE-A-2015-14215): section IV.1 (who can register, levels) and Annex I, points 1.1–1.6;
- clave.gob.es: registration methods, video identification, registration questions, Cl@ve Móvil, the Cl@ve app, merging of login methods, Cl@ve Permanente password, logging in with Cl@ve Permanente, Cl@ve Firma, where Cl@ve works, how login works;
- AEAT, registering in Cl@ve: invitation letter and CSV, with a certificate or DNIe, at an office, in the Cl@ve app;
- AEAT, Cl@ve errors: support number, letter not received, error 06, error 66, blocking after errors, no SMS arrives, number taken by someone else, login page address (updated on 6 October 2026);
- AEAT: personal use of Cl@ve and Cl@ve questions, both pages updated on 29 April 2026; instructions for Modelo 030: who can use it to change their tax address;
- FNMT, question 1343: documents a foreigner needs for the certificate;
- administracion.gob.es office finder, marked Cl@ve.
Frequently asked questions
Can I register for Cl@ve with an NIE by video call in the app?
Where on a TIE card is the support number that Cl@ve asks for?
My husband and I share one Spanish phone number. Can we both register with it?
The invitation letter never arrived. What should I do?
How is Cl@ve PIN different from Cl@ve Móvil?
My TIE card has expired and the new one is not ready yet. Can I register for Cl@ve?
Can I ask someone else to register for Cl@ve on my behalf?
A specialist will reply within 15 minutes