DNI in Spain: what it is, what's on it and who can get one

By Brenda Lins BritoUpdated 8 min read
Spain's DNI decree (Real Decreto 255/2025) in the BOE, with the rule that the DNI is for Spanish nationals outlined

Fuente de los datos: Agencia Estatal Boletín Oficial del Estado

In a hurry? Summarise this article with the AI of your choice:

In short: the DNI is the national ID card of Spanish citizens. It's compulsory from age 14 for Spaniards who live in Spain.

As a foreigner, you get one once you become Spanish. Until then, you prove who you are with your own country's identity documents. If you live in Spain, your TIE or EU certificate shows your status, with your NIE on it.


What is the DNI in Spain?

The DNI ('Documento Nacional de Identidad') is Spain's national identity card. The Ministry of the Interior issues it, through the Police Directorate-General ('Dirección General de la Policía').

It's the only document that proves your identity on its own, and every public body and company in Spain has to recognize it.

Its chip also lets you identify yourself and sign documents online. And since 2026, the DNI can live on your phone too, in the MiDNI app.

Who has to have a DNI?

Every Spanish citizen has the right to a DNI, and it becomes compulsory at 14 for Spaniards who live in Spain.

It's also compulsory for Spaniards over 14 who live abroad and move to Spain for six months or more.

Do Spanish children need one?

No, it's optional before 14. A Spanish child can get a DNI as soon as their birth is registered at the Civil Registry ('Registro Civil').

What is a DNI number?

A DNI number is 8 digits and a letter, such as 12345678Z. The letter is a check character.

Where is the number on the card?

On the front of the card, with your name and date of birth.

The front also shows a support number ('número de soporte'). It's a different number: see our guide to the support number.

Is the DNI number also the NIF?

Yes, for Spaniards who have a DNI. Their tax number (NIF) is their DNI number followed by its letter.

Our NIF guide explains the foreigners' side.

What's printed on a DNI?

Spain's DNI decree lists what the card shows:

  • On the front: the DNI number and its check letter, your surnames and name, date of birth, sex and nationality, the issue and expiry dates, the support number, your photo and your signature.
  • On the back: your address, place of birth, your parents' names, the number of the police team that issued it, three lines of machine-readable code (the MRZ) and the chip.

The chip stores your photo, your details and two fingerprints (none for children under six), plus the certificates you use online.

Hand holding up a Spanish DNI (Documento Nacional de Identidad) card

How long is a DNI valid?

It depends on your age on the day it's issued or renewed:

Age at issue or renewal Valid for
Under 5 2 years
5 to 29 5 years
30 to 69 10 years
70 and over More than 10 years, with an expiry date on the card

In rare cases, a DNI is issued for one year only: when your fingerprints can't be taken for a while, or when a required document is missing and your details are proven another way.

Do the chip's certificates expire?

Yes, after two years, even when the card itself is valid for longer. You need these certificates to sign documents online.

Can a foreigner get a DNI?

Not while you're a foreigner. Spanish law makes the DNI the identity document of Spanish citizens, and you get one once you become Spanish.

Until then, you prove who you are with your own country's identity documents. Your status in Spain is shown by your TIE, if you're a non-EU national with a visa or permit for more than six months, or by your EU registration certificate. Your identification number in Spain, the NIE, appears on every document Spain issues you.

Our guide to the main Spanish IDs compares them all.

A form asks for your DNI and you don't have one: what do you write?

Your NIE, if you have one. It's your identification number in Spain: Spain's electronic ID certificates, for example, carry a DNI number or, for foreigners, a NIE, among other identification numbers.

For forms with a single "DNI/NIE" box, see what to write in a DNI/NIE box.

If you're only visiting Spain

Your passport is the ID you have, or your national ID card if you're an EU citizen. When a form asks for the document type, pick that one.

The guest register of hotels and holiday rentals, for example, lists DNI, passport and TIE.

When can a foreigner get a DNI?

Once you have Spanish nationality. You then get your first DNI like any other Spaniard.

How long before you can apply for nationality?

For nationality by residence, the general rule is ten years of legal residence in Spain. Spain's Civil Code sets shorter periods for some people:

  • Five years for refugees.
  • Two years for nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea or Portugal, and for people of Sephardic origin.
  • One year if you were born in Spain, or have been married to a Spaniard for a year, among other cases.

In every case, your residence must be legal, continuous and right before you apply.

What happens between nationality and your first DNI?

For nationality by residence, the steps are:

  1. Your nationality is granted.
  2. You take the nationality oath or promise ('jura' or 'promesa').
  3. Your nationality is entered in the Civil Registry.
  4. You get a literal birth certificate issued for the DNI.
  5. You book your first DNI.

If you have a TIE or EU certificate, bring it to the appointment: the police require it for a first DNI after naturalization.

Other ways of becoming Spanish can have other steps.

How to get or renew a DNI

Every DNI is done in person, at a National Police documentation office, normally with an appointment.

Booking the appointment and paying the fee

You book the appointment ('cita previa') at citapreviadnie.es or by calling 060. Offices can, exceptionally, see you without one.

A DNI costs €12, whether it's your first, a renewal or a replacement. You pay at the office, in cash or by card. For a renewal on expiry or a duplicate (lost, stolen or damaged card), you can generally also pay by card online when you book.

When is it free?

  • Renewing a DNI that's still valid because your details changed (your address, for example).
  • Any DNI for members of a large family ('familia numerosa'), with the large-family card.
  • Children under 14 in a household that applies for the minimum living income ('ingreso mínimo vital').

Documents for a first DNI

  • A literal birth certificate ('certificación literal de nacimiento') issued only for the DNI, at most six months old.
  • A recent color photo, 32 × 26 mm, on a plain white background.
  • A padrón certificate or 'volante' from your town hall, at most three months old: our empadronamiento guide explains how to get it.

Do you still need the birth certificate?

Yes, for now. The 2025 DNI decree lets the police fetch your birth record from the Civil Registry themselves.

Until the new Civil Registry is in place everywhere, though, people who have no individual record there ('Registro Individual') still bring the certificate. The police still list it among the documents for a first DNI.

Renewing your DNI

You can renew your DNI in the last 180 days before it expires. You go in person, with a recent photo and the fee, and your fingerprints are taken again.

When you move or your details change

You have to renew it, with the documents that prove the change. While your DNI is still valid, this renewal is free.

If your DNI is lost or stolen

Report it to the police as soon as you can. You then need a duplicate right away, and you need a police or administrative report to get it.

The duplicate keeps your old card's expiry date, unless that date was less than 90 days away: then it's issued like a renewal.

Getting a DNI if you live abroad

For now, only in Spain. A first DNI or a renewal is done in person at a police office in Spain.

Before the trip, ask your consulate for a literal birth certificate for the DNI (at most six months old) and a certificate of your address abroad (at most three months old).

If you can't get an appointment for the dates you're in Spain, the police say to go to an issuing office with your documents: offices try to process it during your stay.

Can a consulate issue it?

Not yet. The 2025 decree allows embassies and consulates to issue the DNI where the police have the staff and equipment, once the Interior and Foreign Affairs ministries agree on it. As of November 2026, the police say it's only done in Spain.

MiDNI: the DNI on your phone

Since April 2, 2026, public bodies and companies in Spain have to accept MiDNI, the official app of the digital DNI. It has the same legal value as the card for proving who you are.

What can you use MiDNI for?

Proving who you are in person, just as with the card: at a notary, checking into a hotel, renting a car, proving you're of age, picking up a parcel, buying named tickets or at a pharmacy. It needs a data connection.

How much does it show?

You choose one of three levels:

  • DNI Edad: your photo, your name and that you're of age.
  • DNI Simple: your photo, name, surnames, sex and the DNI's validity.
  • DNI Completo: everything on the card.

The app then shows a QR code generated by the police, valid for a short time, which the other person scans.

How do you get MiDNI?

You need a valid physical DNI, so MiDNI is for Spanish citizens.

You register on midni.gob.es, at a document update point ('Punto de Actualización de Documentación') in a police station, at a documentation office, or at one of the 300+ town halls that have one. You then activate the app with your DNI and support numbers, a password and a code sent by SMS.

Frequently asked questions

Can I travel in Europe with a DNI?

Yes, if you're Spanish. A valid national ID card is enough to travel within the EU, and to Iceland, Liechtenstein, Norway and Switzerland.

A child's DNI alone isn't an authorization to leave Spain: it has to come with the authorization of their parents or guardians.


Share this article

Share this article

Our readers also viewed

EU model of Spain's foreigner identity card (TIE), with the card's expiry date field outlined
  • DNI vs NIE
  • NIE vs NIF Spain
14/08/2025

Spain ID: NIE vs DNI vs NIF Explained & How to Get Them

Learn what “Spain ID” means, including NIE, DNI and NIF, who needs each, how they’re used for taxes, banking and residency, and the key documents to apply.

BrendaContent and Social Media Manager
EU model of Spain's TIE residence card from Regulation 2017/1954, with the card's title field outlined
  • TIE Card Spain
  • Spanish Residence Card
19/03/2026

TIE card in Spain: who needs it and how to get it

Spain's TIE is the residence card for non-EU residents. Who needs one, the one-month deadline, the documents and fee, and how to book the appointment.

BrendaContent and Social Media Manager
Join a community of 10,000+ expats
Get the weekly tips, success stories, and step-by-step guides we share with our members to make their move a success.
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
I love AnchorLess! They have been fantastic for my move to Portugal with the NIF, checking account, lawyer and tax consultation. I will be happy with when this process is over, but at least the journey has been smoother with them.
LD
Lisa D
From South Africa
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Star Trustpilot
Guilherme was the best! I had so many questions and moving parts and he was responsive, always professional, and went above and beyond to help me with everything! He is a PRO!!!!
DS
Debra Savage
From The United States
Our experts on the blog
Meet our diverse team of professionals.
Brenda.L
Content manager & expat in Portugal
Brenda knows all about the difficulties involved in obtaining a visa and shares her knowledge in our articles.
Lara.C
Spain Operations Coordinator

After years of living as an expat in over five countries and traveling extensively, Lara knows exactly what it feels like to start fresh in a new place.

Beach Portugal

Start your new life in Europe

Turn relocation stress into success with AnchorLess.

Relocating to Europe made simple.