Contains AI-generated informationMore information

Digital ID (Cl@ve) and certificates

You will know which digital ID you need, how to get it and how to keep it working.

Most dealings with Spanish authorities now happen online, and almost all of them ask for a digital ID. This section helps you choose between an online login (Cl@ve) and an electronic certificate, get one as a foreigner, fix it when it breaks, renew it, and share access with a gestor safely.

10 articlesAbout 51 min of readingIdentity numbers and local registration

Start with the first articleSee all 10 articles

Pick the article that fits your situation

  1. The digital ID options in Spain and what each one does

    Explains the online ID options Spanish public services accept: Cl@ve PIN, Cl@ve Permanente, the Cl@ve mobile app and the FNMT electronic certificate. For newcomers who need to log in to Spanish government websites and want to know which method fits.

    7 min read

  2. Do you need an online login (Cl@ve), a certificate or both?

    Start with Cl@ve for everyday logins to Spanish government websites, and add an electronic certificate only when a procedure asks for it or you must sign or file. This page helps newcomers with a NIE or DNI pick the right tool.

    3 min read

  3. Registering for your online login (Cl@ve) as a foreigner

    How to get your Cl@ve online login if you are a foreigner with a NIE or TIE: the ways to register, which one to try first, who can register you in person, and what to do if registration fails.

    8 min read

  4. Getting your online login (Cl@ve) with only an NIE and passport

    How to start your Cl@ve digital login when you have an NIE and passport but no TIE yet. For new arrivals who want to know what to do first, what works in person, and what must wait until the card arrives.

    4 min read

  5. Getting your electronic certificate (certificado digital) step by step

    The FNMT electronic certificate takes three stages: an online request, identity verification in person, and a download. This page is for foreigners in Spain with a NIF or NIE who need the certificate for online paperwork.

    4 min read

  6. Why your digital certificate does not work in your browser

    Most digital certificate failures in Spain come from the browser, the certificate store or Autofirma, and you can usually fix them yourself. This page is for anyone whose certificate will not work on a government website.

    4 min read

  7. Renewing, backing up and cancelling your digital certificate

    How to keep your FNMT digital certificate working: when you can renew it, how to save a backup copy you can move to another computer, and what to do if it is lost or compromised. For anyone in Spain who uses a software certificate.

    4 min read

  8. Regaining access to your online login (Cl@ve) after a lost phone

    How to get back into your Cl@ve online login after you forget your password, lose your phone or change your number. For anyone already registered with Cl@ve who wants to avoid starting again from scratch.

    4 min read

  9. What you can do online with a login (Cl@ve) or certificate

    One digital identity, either a Cl@ve login or an electronic certificate, opens Spain's main online services: tax, social security, traffic and your citizen folder. This page is for residents with a NIE or DNI who want to know what they can do online.

    3 min read

  10. Should you give your gestor your login (Cl@ve) or certificate?

    Don't hand your Cl@ve or digital certificate to a gestor. This page explains why, and how to give an adviser legal permission to act for you instead. It is for anyone about to hire a gestor for tax, Social Security or other paperwork.

    4 min read

About this topic

It is for anyone thinking about, planning or carrying out a move to Spain. You will know which digital ID you need, how to get it and how to keep it working.

Start with "The digital ID options in Spain and what each one does". It explains the choices in plain terms, so the later steps make sense.

Key rules

  • Certificate cost: The FNMT personal software certificate is free of charge.
  • TIE and certificates: The TIE (foreign resident ID card) has a chip but carries no usable electronic certificate for authentication or signing; if you need a digital certificate, obtain the FNMT Certificado de Persona Física or use Cl@ve instead.
  • Certificate validity: The FNMT personal software certificate is valid for 4 years from the date of issue.
  • Download window: You have 90 days after your request to download the certificate, using the same computer, user profile and browser you requested it with.
  • Renewal window: You can renew online only in the last 60 days before the certificate expires; after that you repeat the full process with in-person identity verification.
  • TIE: Your TIE cannot act as a digital certificate, so use Cl@ve or get the FNMT certificate.

Digital ID (Cl@ve) and certificates: the whole process, step by step

  • Get your NIE (see the Cl@ve with only an NIE and passport article if you have no TIE yet): First step, often together with a visa or residence application

  • Register your address at the town hall (empadronamiento): After the NIE; the padrón certificate is often needed for the TIE appointment, though not strictly for Cl@ve

  • Apply for and collect your TIE (non-EU residents; EU citizens get a registration certificate instead): Fingerprints within one month of arrival

  • Register for Cl@ve with your TIE or NIE (Registering for your online login (Cl@ve) as a foreigner): After the TIE, since most online channels accept it

  • Request the FNMT certificate online and verify your identity in person (Getting your electronic certificate step by step): Any time once you have your NIE

  • Download and install the certificate on the same computer, user profile and browser: Within 90 days after your request

  • Renew the certificate online (Renewing, backing up and cancelling your digital certificate): Only in the last 60 days before it expires; it is valid for 4 years.

  • Keep Cl@ve Permanente active: No fixed expiry, but use it regularly and confirm your registration if asked (Regaining access to your online login (Cl@ve))

Documents you may need

Identity and residence

Other documents

Each article lists the other documents it asks for, where you need them.

Digital ID (Cl@ve) and certificates: questions that cross several articles

Can Cl@ve replace the certificate completely?

No, Cl@ve cannot replace the certificate in every case, because it mainly handles login. It covers tax, Seguridad Social, traffic and your citizen folder. You still need the certificate with Autofirma to sign documents, act for another person or company, and for some registry and court filings.

Do I need Autofirma if I only use Cl@ve?

No, you do not need Autofirma if you only log in with Cl@ve, because plain Cl@ve login does not use it. Autofirma is a free desktop app for signing with a certificate. If a form asks you to sign with a certificate, see "Why your digital certificate does not work in your browser".

Which Cl@ve method should I set up?

Cl@ve Permanente (username and password plus a one-time code) and the Cl@ve app are the main methods to choose from. See The digital ID options in Spain and what each one does.

How can I register for Cl@ve as a foreigner?

You can register online with a certificate or video identification, in person at a registration office, or through an app route. A letter with an activation code is available if you have a NIE and have filed a Renta return. Read "Registering for your online login (Cl@ve) as a foreigner" and, if you only have an NIE, "Getting your online login (Cl@ve) with only an NIE and passport".

Is every service open to both Cl@ve and the certificate?

No, the main services accept both, but some actions need the certificate. Tax, Seguridad Social, traffic and your citizen folder accept both, while some actions, especially for representatives or companies, need the certificate. See "What you can do online with a login (Cl@ve) or certificate", and "Should you give your gestor your login (Cl@ve) or certificate?" if an adviser acts for you.

Explore places

Where you live changes the details. See how Spanish regions and cities compare on rent, jobs, weather, safety and healthcare.

Need certainty before you act?

For important relocation decisions, speak with a qualified human specialist.

Consult with a human specialist

For decisions that depend on your own circumstances, a qualified human professional should look at your case. Tell us what you need help with and we will reply by email.

Always verify important information with the relevant official authority or a qualified adviser before acting. This website uses large language models together with various public data sources, official government documents and other established sources. Due to the amount of data on this website, some information might be wrong. Information may also be incomplete or outdated.

What matters to me

Tell us who you are and what you care about. Fit scores and rankings across the site follow your answers.