Cl@ve for foreigners with an NIE: how to register

In short. A foreigner is registered in Cl@ve with a valid TIE card or EU citizen certificate (Resolución de 14 de diciembre de 2015, section IV.1), and together with the NIE the system asks for the document's support number: on a TIE this is the letter E followed by 8 digits. Video identification in the Cl@ve app is so far only open to Spanish citizens with a DNI, so without an electronic certificate the online option that remains is the invitation letter with a CSV code: the tax office (AEAT) sends it by post to your tax address, and it gives you the basic level. The advanced level comes from registering with an electronic certificate, which is done online in one go, or from a personal visit to a registration office with your document and passport. Checked on 11 November 2026 against the BOE, clave.gob.es and sede.agenciatributaria.gob.es.

This is a task we handle

Digital certificate Message us on WhatsApp

A specialist will reply within 15 minutes

Related services:

Cl@ve is the government system for logging in to Spanish public authorities' websites without an electronic certificate: it is used, for example, to file the Renta tax return and to download your employment history report (vida laboral). For a foreigner with an NIE, registering is harder than for a Spaniard: the quick video identification in the Cl@ve app has so far only been opened to Spanish citizens with a DNI.

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 withRegistration methods and levelsThe invitation letter: how to get through without unnecessary waitingCl@ve Móvil, Cl@ve PIN and Cl@ve PermanenteIf registration or login failsWhen it is easier to start with a certificateSources (checked on 11 November 2026)Frequently asked questions

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

1. Request the letter
In the “Registrarse en Cl@ve” section of the AEAT website or in the Cl@ve app, enter your NIE and support number and click “Si, envíenme una carta de invitación a mi domicilio fiscal”.
2. Wait for the letter
The letter is sent by ordinary post to the address the tax office has on record at that moment and, according to the AEAT, arrives in about 7 working days.
3. Complete registration within 60 days
In the same section, tick “Ya dispongo de una carta invitación” and enter the 16-character CSV code, your phone number and email address. You have 60 days from receiving the letter to do this; after that the code stops working, and you then request a new letter or choose another registration method.
4. Save the confirmation
The system will show an activation code and let you download a PDF confirmation. You need the code to activate Cl@ve Permanente and to recover its password if you forget it.

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
Your Cl@ve codes are for you alone. The AEAT does not allow third parties to log in with your codes, even with your consent (the tax office page was updated on 29 April 2026). Do not confirm a Cl@ve Móvil request if the login was not started on an authority's official website: for the AEAT, the login page address begins with www2.agenciatributaria.gob.es when logging in with a QR code and with www12.agenciatributaria.gob.es when logging in without a QR code.

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)

Frequently asked questions

Can I register for Cl@ve with an NIE by video call in the app?
Not yet. According to clave.gob.es and the AEAT help pages, video identification in the Cl@ve app is temporarily available only to Spanish citizens with a valid DNI. With an NIE, the app offers a letter to your tax address, registration with an electronic certificate installed on your phone, or a visit to a registration office.
Where on a TIE card is the support number that Cl@ve asks for?
On the front: it is the letter E followed by 8 digits, for example E87654321, and it is entered together with the letter. On an EU citizen certificate in card format, the number is on the back: a C is put before it, and if there are fewer than eight digits, zeros are added on the left, for example C09999999. This is how the AEAT help page “Introduzca soporte válido” describes it.
My husband and I share one Spanish phone number. Can we both register with it?
No. In Cl@ve, each mobile number can be linked to only one NIE or DNI. If a second person registers with the same number, the number passes to them, and the first person's Cl@ve stops working until they provide a new number. The number can also be a foreign one, with the country code.
The invitation letter never arrived. What should I do?
The letter is sent to the tax address the AEAT has on record and, according to the tax office, arrives in about 7 working days. If the address is out of date, you change it in the Renta WEB services with a reference number or a certificate, with the Modelo 030 form (Modelo 036 if you are autónomo) or at an AEAT office, and then request the letter again: it is sent to the address the tax office has on record at the time of the request. The code in the letter is valid for 60 days from receipt. The other routes are registering with an electronic certificate or visiting a registration office.
How is Cl@ve PIN different from Cl@ve Móvil?
Cl@ve PIN is the older login with a one-time code, which is now being merged with Cl@ve Móvil. With Cl@ve Móvil, you confirm the login in the Cl@ve app by scanning a QR code or tapping a notification, and without the app you can get a 6-digit PIN by SMS. Anyone already registered in Cl@ve does not need to register again.
My TIE card has expired and the new one is not ready yet. Can I register for Cl@ve?
Under the Cl@ve rules, the TIE card or EU citizen certificate must be valid (Resolución de 14 de diciembre de 2015, section IV.1), so an expired card cannot be used for registration. If you still have the official document assigning your NIE, you can get an FNMT certificate with it together with your passport: for the FNMT, the document's expiry date does not matter (question 1343 on sede.fnmt.gob.es). With the certificate you can log in to public authorities' websites without Cl@ve, and you can register in Cl@ve online once you receive your new card.
Can I ask someone else to register for Cl@ve on my behalf?
No. At the office, only the person themselves can be registered: it cannot be done through a representative or with a power of attorney, and the AEAT does not allow third parties to log in with your Cl@ve codes, even with your consent. What we do offer is support with getting an FNMT certificate: we prepare the application and your submission, a Krepko representative is with you at the appointment and interprets, and once you have the certificate and a TIE card or EU citizen certificate, you register in Cl@ve online yourself.
We'll arrange your FNMT digital certificate with your NIE
Tell us what document you have and what you need to log in to government services for. We will tell you whether Cl@ve is enough or a certificate is more convenient, and give you the timeframe and cost before we start.
Message us on WhatsApp

A specialist will reply within 15 minutes

This is a task we handle Digital certificate