Spain Expat Toolkit
All guides

Get a digital certificate and Cl@ve

Your FNMT digital certificate (Certificado de Persona Física, issued by Spain's Royal Mint) and Cl@ve login unlock nearly every online government portal in Spain: fast-track UGE-CE permits, Mercurio, Beckham (Modelo 149), annual tax returns (Renta), padrón downloads, and Social Security. Get the free FNMT certificate first, then activate Advanced Cl@ve online in 2 minutes.

The worked examples use Madrid. Other provinces differ in small ways.

Start step 1

Prerequisite
TIE card, EU certificate, or official NIE sheet + passport
Official cost
Free in person (€2.99 Video ID is Spanish DNI only)
Validity
4 years (renewable online in the final 60 days)
Your time
45 minutes + 1 brief AEAT or town hall visit
Unlocks
UGE-CE, Mercurio, Beckham Modelo 149, Renta & Padrón

FNMT digital certificate vs Cl@ve: which one should you get?

Your situation Recommended credential
Filing permits (UGE-CE, Mercurio), Beckham (Modelo 149), autónomo (RETA), or holding only a white-paper NIE
FNMT Digital Certificate (free in person)

Follow Steps 2 to 5 below, then unlock Advanced Cl@ve in Step 6.

Quick phone/QR sign-in for annual Renta taxes, Import@ss Social Security, and town halls
Advanced Cl@ve (Cl@ve Móvil)

Activate online in 2 minutes in Step 6 once your FNMT certificate is installed.

Holding a TIE card or green EU certificate, with no personal computer
In-person Advanced Cl@ve registration (Registro en Cl@ve at Spain's tax agency, AEAT)
No NIE yet (only a passport or consular visa sticker)
Get your TIE card, green EU certificate, or EX-15 NIE first
Not sure if you are ready? Check 3 quick prerequisites
Do you already hold a TIE card, green EU registration certificate, or official A4 NIE assignment document?
Are you using your own personal computer (Windows, Mac, or Linux) that you will keep access to?
Are you requesting a personal citizen certificate (rather than a company director or legal representative certificate)?
Step 1 of 6: Check your documents and computer Next

How to get a digital certificate and Cl@ve (6 steps)

  1. Check your documents and computer · 5 minutes

    Confirm you have your passport, your TIE/EU certificate/official NIE sheet, and a personal computer you will keep using through Step 5.

  2. Install Configurador FNMT-RCM · 10 minutes

    Download and install the official Configurador FNMT-RCM helper app on your computer before opening the request form.

  3. Request your Código de Solicitud online · 10 minutes

    Submit your NIE, first surname, and email on the FNMT request form, create a local password in Configurador FNMT, and receive your 9-digit code by email.

  4. Verify your identity in person (free) · 30 minutes in person

    Book a quick free accreditation slot at an Agencia Tributaria (AEAT) tax office or municipal OAC and show your Código de Solicitud, passport, and NIE document.

  5. Download your certificate and save a .p12 backup · 10 minutes

    Back on the same computer, open Descargar Certificado, enter your Step 3 code and password, and export an encrypted .p12/.pfx backup copy.

  6. Activate Advanced Cl@ve online in 2 minutes · 5 minutes

    Use your newly installed FNMT certificate on clave.gob.es to activate Nivel Avanzado (Cl@ve Móvil) immediately with an SMS code.

What you need before starting

Have these four items ready before starting Step 2:

  • A personal computer (Windows, Mac, or Linux) that you will keep using without resetting between Step 3 and Step 5.
  • Valid original passport (or EU national ID card for EU citizens).
  • Accepted NIE document: your TIE card, green EU registration certificate, or official A4 NIE assignment certificate (a visa sticker alone is not on FNMT's accepted list).
  • Email address (plus an SMS-capable mobile number if activating Cl@ve in Step 6).

What unlocking adds to each step

Free overview (above)

Step 3 of 6: Request your Código de Solicitud online

Step title, plain-English summary, and direct official links.

Unlocked step-by-step guide

Step 3 of 6: Request your Código de Solicitud online

FNMT · Solicitud de Certificado de Ciudadano explained box by box (6 numbered boxes: what to fill in, tick, leave blank or avoid), plus portal screenshots and checklists.

Arrival Pack or Relocation Pass

Unlock the step-by-step guide

Above are the steps and official links. Unlocking gives you every step in detail with portal screenshots, short videos and box-by-box form help:

  • Every step in detail, with official links, portal screenshots and short videos
  • Your ticked progress saved in this browser as you go

See prices

The blank official forms are free from the Spanish government. Visa route overviews, guide overviews, Which visa fits me?, My plan, and the calculators stay free.

Relocation Pass

Unlock the Relocation Pass

The blank official forms are free from the Spanish government. The Pass pays for step-by-step form filling, full guides, AI document checks (fair use), and the Letter Explainer. Visa and guide overviews, Which visa fits me?, My plan, and the calculators stay free.

  • Everything in the Arrival Pack
  • Digital Nomad Visa (MI-T & MI-F), Non-Lucrative (EX-01), EU family (EX-19) and Spanish family (EX-24 + Anexo I) application forms, filled in and ready to sign
  • Beckham regime (Modelo 149 opt-in and opt-out), first Spanish tax return (Renta), Modelo 720, Social Security number and public health card guides
  • AI document checks (fair use) across all supported routes and procedures, plus the Letter Explainer (Hacienda, Extranjería, Social Security)
  • Every full step-by-step walkthrough and guide (checked against official sites on 14 November 2026)
Arrival Pack €49 one-off · 6 months 6 months of access for your arrival paperwork in Spain: step-by-step guides for padrón, NIE, EU registration certificate, TIE, and digital certificate or Cl@ve, plus EX-15, EX-17, EX-18 and padrón form fillers and AI document checks for those steps.
Relocation Pass €99 one-off · 12 months 12 months of access. Unlocks the full step-by-step walkthroughs and guides, filled-in PDF forms (EX-15, EX-17, EX-18, EX-19, EX-24, EX-01, padrón, Digital Nomad Visa application MI-T & MI-F), AI document checks (fair use) and the Letter Explainer. Visa route overviews, My plan and the calculators stay free.

Immediate digital access · One-off payment by Stripe · No auto-renewal · 7-day unused refund policy. Terms & refunds

Form box colour key

Blue: fill in · Green: tick or choose · Grey: leave blank · Red: not this one.

Key Spanish terms
Certificado digital FNMT
A cryptographic identity file stored on your computer/browser (and exportable to your phone) for signing in and signing forms across Spanish portals.
Configurador FNMT-RCM
The official desktop helper app installed in Step 2 that generates your private key locally.
Código de Solicitud
The 9-digit request code emailed to you in Step 3, shown at your in-person check and entered again when downloading.
Copia de seguridad (.p12 / .pfx)
An encrypted backup file containing your certificate and private key so you can install it on other computers or mobile devices.
Cl@ve Móvil / Nivel Avanzado
Spain's mobile QR/PIN login system; activating it with your FNMT certificate immediately grants high-security Nivel Avanzado.

Where this fits in your journey

You need a NIE first (on your TIE card, green EU certificate, or white paper NIE). Once your digital certificate and Cl@ve are active, you can file taxes, Beckham Modelo 149 and online applications from home.

  1. Get your TIE card (non-EU)
  2. Get your EU registration certificate
  3. Get a paper NIE (EX-15)
  4. Get a digital certificate and Cl@ve (you are here)
  5. Opt in to the Beckham regime (Modelo 149)
  6. File your first tax return (Renta)
  7. Register on the padrón

Common problems and how to fix them

The FNMT request page says Configurador FNMT-RCM is not running

Quit and reopen your browser after installing Configurador FNMT-RCM, avoid incognito/private windows, and stay on the same computer and user account.

I forgot the password I created inside Configurador FNMT

FNMT cannot recover that local key password. Submit a fresh request in Step 3 to generate a new Código de Solicitud and verify again.

AEAT booking rejects my brand-new NIE ("No ha sido posible identificar el NIF introducido")

Police-issued NIEs are not automatically added to the AEAT tax census (Modelo 030), so AEAT's Para quién screen may reject a brand-new NIE. Book Option B instead (a town hall citizen office, OAC, or Social Security office on the FNMT map): town halls do not require AEAT tax-census registration to verify your FNMT certificate.

AEAT booking shows "Sus Citas" instead of open calendar slots

You already hold an active AEAT appointment for this service (limit 1 at a time). Click Modificar to reschedule or Anular to cancel.

FNMT download shows "No existe solicitud de certificado para los datos que ha introducido"

Either a newer request replaced that code or the NIF/surname does not match Step 3. Submit a fresh request in Step 3 and use the newest code.

My browser never prompts me to pick my certificate when signing in

Antivirus HTTPS scanning (such as Avast or AVG) frequently blocks client-certificate prompts. Disable HTTPS connection scanning in your antivirus, and restart your browser.

A government portal rejects my Cl@ve sign-in with Error (66)

Your Cl@ve account is at basic security (Nivel Básico, from a postal letter). Upgrade to Nivel Avanzado in the Cl@ve app (Gestiones → Mis datos en Cl@ve → Obtener un nivel de seguridad superior con certificado) or at an AEAT desk.

Cl@ve says my white-paper NIE has no "número de soporte"

White A4 EX-15 NIE sheets have no support number. Complete Steps 2 to 5 for your FNMT certificate first, then use that certificate in Step 6 to activate Cl@ve online without a support number.

I requested a second FNMT certificate and my existing one stopped working

FNMT allows only one active citizen certificate per person: issuing a new certificate permanently revokes the previous one.

My certificate expired or Cl@ve rejects it (Error 23718246)

Online renewal is open during the 60 days before expiry (once per in-person verification). Once expired or revoked, repeat Steps 3 to 5 with a fresh in-person check.

Stuck, or does your case look different from the standard steps? That's the point to speak with a licensed specialist. Everything up to there you can handle yourself.

Official sources

Your progress and answers are saved on this device only.

Pass member feedback

Report an improvement

Help us keep every step accurate and easy to follow. Your current page and step are attached automatically.

What is this about?

This goes straight to our editorial inbox to improve the toolkit. We can't give personal legal or tax advice.