Flat Spain

Getting a Digital Certificate and Cl@ve in Spain as a Foreigner: The Two Keys to Every Online Procedure

Updated 7 November 2026 · 7 min read

Quick answer

Flat Spain's guide: almost every Spanish online procedure, from tax returns and residence renewals to padrón certificates and appointments, asks you to identify with either a digital certificate or Cl@ve. Anyone with a NIE can get the FNMT's personal digital certificate free of charge: request it online with your NIE, surname and email, prove your identity in person at a registration office (a tax-agency or social-security office, many town halls, or a Spanish consulate abroad) with your NIE document and passport, then download it on the same computer. Cl@ve, the government's login by PIN or mobile app, is registered in person with the same documents, or online where your documents allow it. Get the certificate first: it is the stronger of the two and can sign documents.

Certificate or Cl@ve

Spain's two digital identities for foreign residents, 2027
AspectFNMT digital certificateCl@ve
What it isA certificate installed in your browser, issued by the Royal Mint (FNMT)The government's login, by PIN or the Cl@ve app
CostFreeFree
What you needA NIE, a valid NIE document and passport, and an email addressA NIE and the same documents
Signs documentsYesOnly through its cloud-signature option
Best forEverything, including companies, notifications and signingQuick logins to tax, social security and appointments

Spain's two digital identities for foreign residents, 2027

Getting the FNMT certificate

  1. 1On the FNMT's website, request the personal certificate 'without DNIe' with your NIE, first surname and email; you receive a request code
  2. 2Book and attend a registration office to prove your identity: a tax-agency or social-security office, many town halls, or a Spanish consulate if you are abroad
  3. 3Bring the request code, your NIE document (TIE or EU registration certificate) and your passport
  4. 4Download the certificate from the same computer and browser you used to request it, within the deadline in the email
  5. 5Export a backup copy with a password, and install it on your other devices

Registering for Cl@ve

  • In person at a tax-agency or social-security office, with your NIE document and passport
  • Online, by video identification or with a letter sent to your tax address, where your documents and records allow it
  • Once registered, use the Cl@ve app or a PIN sent to your phone for each login

What they unlock

  • Your income-tax return and tax data
  • Residence permit applications and renewals online
  • Social security records, your social security number and healthcare procedures
  • Appointments, the padrón certificate in many towns, and traffic (DGT) procedures
  • Official electronic notifications, which self-employed people must receive this way

Do it early

Registration offices have their own appointment queues, so book the identity check as soon as you have your NIE document. With a certificate, renewing a residence card, filing a tax return or changing your padrón address becomes something you do from home rather than a morning in a queue. Flat Spain's guides link the procedures that need it.

Frequently asked questions

Can a foreigner get a digital certificate in Spain?

Yes. Anyone with a NIE can request the FNMT's personal certificate free of charge online, prove their identity in person at a registration office or a Spanish consulate, and then download it.

Do I need a TIE to get a digital certificate?

You need a NIE and a document showing it, such as the TIE or the EU registration certificate, together with your passport, when you prove your identity.

What is Cl@ve in Spain?

The government's online login, using a PIN or the Cl@ve app. It is registered in person, or online where your documents allow, and gives access to tax, social security and many other procedures.

Can I get a Spanish digital certificate from abroad?

Yes: request it online and prove your identity at a Spanish consulate, which acts as a registration office.

Let Flat Spain do the searching for you

Describe your ideal home in plain English. Flat Spain automatically searches five platforms at once, puts every listing through the Flat Spain Scam Screen, and delivers a ranked shortlist, usually in minutes.

Start my search