Skip to main content

EnterSpain provides general information and tools, not legal, tax, or immigration advice.

EnterSpain
Cl@ve & digital certificate
Immigration and residency · Guide

Cl@ve and the electronic certificate

Spanish public bodies identify you online through one of two systems, and they are often confused. If you hold a NIE, this guide explains what each one does, which fits your situation and how to get it. It covers individuals only, not company or representative certificates.

Use Cl@ve as your everyday login for services such as the Agencia Tributaria and Social Security. Get the FNMT certificate when you need to sign documents electronically, or when a service asks for more than your Cl@ve registration offers. You can hold both.

Holding a NIE changes how you get them. When we checked in November 2026, video identification for both systems was open only to holders of a valid Spanish DNI. With a NIE, you register for Cl@ve in person, by an invitation letter sent to your tax address, or online with a certificate. The FNMT certificate needs an identity check in person.

Two different systems for proving who you are

Cl@ve is the shared sign-in system of the Spanish public administration. You register once against your DNI or NIE and a mobile number, and you then use that registration on the public services that accept it. Nothing is installed on your computer. You sign in with an app, a code sent to your phone or a password, so it goes wherever your phone goes.

An electronic certificate is a digital file issued in your name that you install on your own computer or phone. Most individuals use the free citizen certificate (certificado de persona física) from FNMT-RCM, Spain's national mint. It identifies you to online services, and you can also use it to sign documents and official forms electronically. Other accredited providers issue certificates too, on their own terms and prices. This guide covers FNMT only.

One term matters throughout. A Cl@ve registration has a level, either basic or advanced. A basic registration comes from an invitation letter or automatic video identification, and it opens many services but not all of them. An advanced registration comes from visiting an office, from using a certificate or DNIe (the Spanish electronic ID card), or from a video that a public employee has reviewed. Procedures that need more security require it. The level belongs to your registration, not to any one sign-in method, so Cl@ve PIN is not a "basic" product and Cl@ve Permanente is not an "advanced" one.

Both systems assume that you already have your number. If you do not have a NIE yet, sort that out first.

Which should you use?

Neither system is better in every case, and the trade-off is mostly convenience against reach. Cl@ve is quick to use from any device but depends on your phone number. The certificate takes more effort to set up and needs care with the file, but it does not rely on your phone and it can sign.

What to weigh
Cl@ve
FNMT certificate
What it is
Cl@veA login linked to your NIE and your mobile number
FNMT certificateA file installed on your computer or phone
Getting it with a NIE
Cl@veIn person, by invitation letter to your tax address, or online with a certificate
FNMT certificateOnline request, identity check in person, then download
Video identification with a NIE
Cl@veNot available at present: Spanish citizens with a valid DNI only
FNMT certificateNot available at present: valid DNI only
Cost
Cl@veThe official registration pages list no fee
FNMT certificateFree
Signing in
Cl@veApprove in the app, or use a code by SMS, or a password
FNMT certificateChoose the certificate on a device where it is installed
How long it lasts
Cl@veThe official pages set no general expiry for the registration. A Cl@ve Permanente password lasts two years
FNMT certificateFour years, with one online renewal in most cases
Signing documents
Cl@veOnly through Cl@ve Firma, which not every registration qualifies for
FNMT certificateYes
What can go wrong
Cl@veYou lose access to the mobile number on your registration
FNMT certificateYou change computer without a backup, or the certificate expires before you renew it

What decides it in practice is what you already have: a tax record, a usable address, a Spanish DNI, or the need to sign. These are the common situations.

You have just arrived and have no Spanish tax record

Register for Cl@ve in person. The invitation letter goes to the tax address the Agencia Tributaria holds for you, so it is unlikely to be an option until you have one. A visit also gives you the advanced level straight away.

Your tax address is up to date and you can wait for the post

The invitation letter saves you an office visit. It gives you a basic registration, which the Agencia Tributaria warns other bodies may not accept for everything. You can move up to the advanced level later.

You need to sign documents or forms electronically

Get the FNMT certificate. It signs on its own, whereas Cl@ve Firma has extra conditions on how you registered and needs its own certificates to be requested.

You want both, with one office visit

Get the FNMT certificate first, then use it to register for Cl@ve online. That gives you an advanced Cl@ve registration without a second visit.

You want an adviser to deal with the tax office for you

This does not automatically mean a certificate. The Agencia Tributaria's online power of attorney (apoderamiento) can be granted and accepted with either a certificate or Cl@ve. Other public bodies have their own rules, so check with the body concerned.

You live outside Spain

FNMT accepts the identity check at Spanish consular offices abroad, and it publishes a list of those offices. Cl@ve accepts a foreign mobile number. Check with the consulate before you travel, as this route has its own paperwork.

You hold a valid Spanish DNI

Video identification is open to you for both systems. For Cl@ve it runs in the app and gives you a basic registration immediately. The FNMT video service costs 2.99 euros plus taxes, while the certificate itself stays free.

How Cl@ve sign-in works today

Once you are registered, there are three ways to sign in. Which ones appear depends on the service, so look at the options on its sign-in page.

Cl@ve Móvil is the newest method and the one the official site now puts forward. You install and activate the Cl@ve app. On the service's sign-in page you either scan a QR code with the app, or enter your NIE and support number and confirm the request in the app. You then confirm with your phone's unlock, such as a fingerprint or pattern. There is no password to remember.

Cl@ve PIN is a code that works once and expires after a few minutes. It has not been withdrawn: in June 2026 the Agencia Tributaria confirmed that the SMS option stays, and we found no end date for it. It may not appear as a separate option any more. On the Agencia Tributaria's site you choose Cl@ve Móvil, continue without the QR code, wait for the short countdown and then follow the link to receive the PIN by SMS. After you sign in, the session lasts until you log out or close the browser. Request the code when you are ready to use it.

Cl@ve Permanente is a password. Your username is your DNI or NIE. You activate it once using the activation code you received when you registered and an SMS code, and then you choose a password of at least eight characters that mixes upper and lower case, digits and symbols. A password of sixteen characters or more has no such restrictions. It expires after two years, and you renew it the next time you sign in. A service that needs more security also asks for a one-time SMS code, which requires an advanced registration. Keep your activation code safe: if you lose it or enter it wrongly more than five times, you may have to generate a new one or register again.

Cl@ve Firma is the signing option, separate from these sign-in methods. It keeps certificates for you centrally, so you can sign from any device, but you have to request those certificates and activate Cl@ve Permanente. It needs an advanced registration, and one that came from a letter, a video or a different certificate does not qualify. If you have not visited a registration office or used a DNIe for more than five years, you are asked to renew the registration before you can keep signing.

Registering with a NIE

A NIE alone is not enough to register. The system also asks for your support number (número de soporte), which is printed on your NIE document and proves that you hold it. There are five routes, and with a NIE only three are open to you at present.

Route
With a NIE
Level
What to expect
In person at a registration office
With a NIEYes
LevelAdvanced
What to expectYou must go yourself. Nobody can attend for you, even with a power of attorney
Invitation letter
With a NIEYes, if the Agencia Tributaria holds your current tax address
LevelBasic
What to expectA 16-character code arrives by post, and you have 60 days to use it
Online with a certificate or DNIe
With a NIEYes, once you have a certificate
LevelAdvanced
What to expectYou complete it online and receive a PDF with your activation code
Automatic video identification in the app
With a NIENot at present
LevelBasic
What to expectDescribed as temporarily limited to Spanish citizens with a valid DNI
Video reviewed by a public employee
With a NIENot at present
LevelAdvanced
What to expectA later review of the same video, so the same limit applies

Where to find your support number

On a foreigner's identity card (TIE) it is on the front: eight digits after the letter E, such as E87654321. On an EU citizen's registration certificate it is on the back of the card. Put a C in front and add zeros to reach eight digits, so 9999999 becomes C09999999. On older full-page certificates it is at the top right of the front. The official help does not explain where to find one on a white NIE certificate. If that is your only document, ask a registration office before you rely on the letter route.

For the in-person route, take your NIE document, your passport or travel document, your mobile phone and an email address. You can book at the Agencia Tributaria by phone on 91 333 5 333 or through its online appointment service, under Identificación electrónica and then Registro en Cl@ve. Other public offices also register people, and the government's general access point has an office finder.

For the letter route, you request the letter in your own name on the Agencia Tributaria's site with your NIE and support number. When it arrives, you go back to the same page and enter the code from the letter. The address must be up to date before you ask, because the letter goes only to your tax address. If the 60 days pass, you can request another letter or switch route.

Your mobile number can be Spanish or foreign, with the country prefix. Each registration has one number, and a number can serve only one person. If you register a number already linked to someone else, the system disables Cl@ve access for that other person, so a couple sharing one phone number cannot both use it. After registering, you receive a welcome SMS and can start using Cl@ve Móvil or activate Cl@ve Permanente. Keep the receipt that shows your activation code.

Getting the FNMT certificate with a NIE

Anyone aged 18 or over, or an emancipated minor, who holds a DNI or NIE can apply. The certificate is free. With a NIE, you can start the request from a computer or from FNMT's official app, but not from a phone's browser, and you always confirm your identity in person. The steps have to be done in this order.

  1. Install the software FNMT specifies under Configuración previa. The request will not work without it.

  2. Submit the request online. You set a password, which you will need later and which cannot be recovered, and FNMT emails you a request code (código de solicitud).

  3. Take that code and your documents to an identity accreditation office, which you can find with FNMT's office locator. Offices of the Agencia Tributaria and Social Security, among others, require an appointment.

  4. About an hour later, download the certificate with your request code. Use the same computer and the same user account as for the request, and enter your details exactly as you did then.

  5. Make a backup copy of the certificate. You can use it to install the certificate on another computer or phone, and it protects you if your computer fails.

At the office you need the request code and one of the combinations below. Take your passport in any case. For EU citizens, a national identity card from your home country also works as the second document.

Foreigner's identity card (TIE)

With passport

A card showing your NIE, normally with your passport. FNMT accepts a card on its own only if that type of card also proves identity.

EU citizen's registration certificate

With passport or ID

The certificate showing your NIE, with your passport or national identity card.

Official document granting your NIE

With passport

For example a white NIE certificate, with your passport (or national identity card for EU citizens). FNMT uses this to confirm that you hold a NIE, whatever the validity of the document itself. It is meant for people who have never held a card, or whose NIE was issued for administrative, economic, professional or social reasons.

The certificate lasts four years. You can renew it online from 60 days before it expires, as long as it has not been revoked. Once it has expired, renewal is no longer possible. Renewal online is limited: if the certificate was already renewed once, or was obtained with another certificate or a DNIe, you have to confirm your identity in person again for a new one. So even if you renew on time, expect another office visit by the end of the second four-year term, and put the renewal date in your calendar. Each person can hold only one citizen certificate, and requesting a new one through the app automatically revokes the old one. Treat the file as you would a signature: it signs in your name, so avoid installing it on a shared computer.

Related tools

Our two services cover the practical steps above, and the portal link takes you straight to the official site. If you do not yet have a NIE or a tax record, the other guides cover what comes first.

Want hands-on help?

If you have read this guide and want support with the next steps, our team can help, from documents and forms to appointments.

This guide is general information, not legal advice. Requirements differ between offices and change over time, so confirm the details with the relevant institution before you rely on them. EnterSpain is a relocation consultancy and is not a certified legal practice.