Skip to content

What Is a NIE in Spain? NIE, TIE, NIF and DNI Explained

Updated Clara BajoClara Bajo
Cobalt blue tile scene: in the reception of a classic hotel, with its wall of key pigeonholes and a brass bell, four travellers wait in line and each holds a document of a different size, a card, a folded sheet, an open booklet; the receptionist studies the first one's

All four acronyms turn up at the same front desk. A guest announces he is giving you his NIE and hands over a card, an accountant asks for the NIF and gets a photo of a DNI, and an EU resident produces a green sheet of paper convinced it is his identity card.

Three separate misunderstandings that end in the same place: a guest report filed with the wrong document type. There is a fairly simple order underneath all of it, it just rarely gets explained in one go.

What is a NIE in Spain?

The NIE is the Número de Identidad de Extranjero, the foreigner identity number. It is a number, not a document: a leading letter (X, Y or Z depending on when it was assigned), seven digits and a check letter1.

It is assigned once and does not expire. You need it for almost any procedure with effects in Spain: opening a bank account, signing an employment contract, buying property, paying tax.

Having a NIE says nothing about your residence status. A non-resident foreigner buying a flat on the coast has a NIE. So does a long-term resident. It is an administrative label, not a permit.

What is a TIE in Spain?

The TIE is the Tarjeta de Identidad de Extranjero, the foreigner identity card. This one is a physical document, credit-card sized, printed with your NIE alongside your photograph, your details and the type of authorisation you hold2.

The current format is the European one, issued since 19 May 2020. The previous format was issued from 1 April 20113.

Front of a TIE (2020 format), as a schematicSchematic of the front of a Spanish foreigner identity card in the 2020 EU format, with sample data and the official specimen’s numbers. The support number sits at the top right, unlabelled.Front of a TIE (2020 format), as a schematicSchematic of the front of a Spanish foreigner identity card in the 2020 EU format, with sample data and the official specimen’s numbers. The support number sits at the top right, unlabelled.RegistroViajeroRegistroViajero (https://registroviajero.com)https://registroviajero.com/enCopyright RegistroViajero, https://registroviajero.com. Original schematic drawn from the official specimen data; no source imagery is reproduced.https://www.consilium.europa.eu/prado/es/ESP-HO-03001/index.htmlPortrait: "Lorelei" by Lisa Wischofsky, CC0 1.0, recoloured.ESPPERMISO DE RESIDENCIAE00000000E00000000APELLIDOS Nombres /SURNAMES ForenamesREGISTROVIAJEROCarlosSEXO /SEXMNACIONALIDAD /NATIONALITYARGFECHA NAC. /BIRTH DATE01 01 1980TIPO DE PERMISO /TYPE OF PERMITRESIDENCIAVALIDEZ TARJETA /CARD EXPIRY01 01 2020RESIDENCIA LARGA DURACIONAUTORIZA A TRABAJAROBSERVACIONES /REMARKSNIE /PERSONAL NUMBERNIE: X1234567P123456RESIDENCE PERMIT / TITRE DE SEJOUR123SCHEMATIC · REGISTROVIAJERO.COM
Schematic of the front of a Spanish foreigner identity card in the 2020 EU format, with sample data and the official specimen’s numbers. The support number sits at the top right, unlabelled.
  1. 1The support number: one E plus eight digits, top right. The card does not label it; Spanish government forms call it IXESP.
  2. 2The NIE, next to the word NIE: a letter, seven digits and a check letter. It identifies the person, not the card.
  3. 3The card’s expiry. A renewed card gets a new support number; the NIE never changes.

Original schematic based on the official specimen, with sample data. PRADO record: ESP-HO-03001

The practical difference from the NIE: the TIE accredits your identity and your residence status at the same time. It is the document you show when someone asks you to identify yourself.

One note on the Spanish article, because you will see both: “el TIE” and “la TIE” are used interchangeably. Since it is a tarjeta, a card, “la TIE” is the usual form.

NIE or NIF: how they differ

The NIF is the Número de Identificación Fiscal, the tax identification number, and the answer here depends on who you are.

If you are Spanish, your NIF is your DNI number. They are the same number under two names: DNI when talking about the document, NIF when talking about your identification to the tax authority.

If you are a foreigner, your NIF is your NIE. There are not two separate numbers: the NIE doubles as the tax identifier.

If you are a company, your NIF starts with a letter (A for public limited companies, B for private limited, and so on)4. It used to be called the CIF, a name that was officially retired in 2008 but is still in everyday use.

In short: NIF is the function, and DNI or NIE are the numbers that perform it depending on the case.

The green NIE: what the EU registration certificate is

If you are an EU citizen residing in Spain for more than three months, you do not get a TIE. You get a certificado de registro de ciudadano de la Unión, which everyone calls the green NIE. It exists as a small green card and, in older versions, as a paper sheet.

And here is the point almost nobody explains properly. According to the Policía Nacional, that certificate accredits registration in the Registro Central de Extranjeros and shows the holder’s name, nationality, address, NIE and registration date5.

What it does not do is identify its holder.

It carries no photograph. It is not an identity document. It proves you are registered in Spain, nothing more. To identify yourself you still need your national identity card or passport from your country of origin.

This surprises plenty of people who have used the certificate as an ID card for years, and quite a few front desks that accept it as identification without a second thought.

If what you are after is where its support number lives6, another classic source of headaches, that is in the NIE support number.

NIE vs TIE in Spain, side by side

NIETIEEU registration certificate
What it isA numberA physical cardA certificate, card or paper
Carries a photoNot applicableYesNo
Identifies the holder?Not applicableYesNo
Who has itAny foreigner with dealings in SpainNon-EU foreign residentsEU citizens resident in Spain
Does it expire?NoYesDepends on the type
Has a support number?Not applicableYes, as IXESPYes: on the back if it is a card, on the front if it is the paper version

Which documents identify their holder and which do not

This is worth getting straight, because it has the most practical consequences.

The DNI, the TIE, a passport and other countries’ national identity cards identify their holder. They carry a photograph and are issued to prove who you are.

The EU registration certificate does not, since it only proves a registration. Neither does the Spanish libro de familia, which proves a family relationship.

And the case people ask about most: a driving licence is not an identity document in Spain. It proves you are authorised to drive. Organic Law 4/2015 reserves the identity role for the DNI, which it defines as the only document with sufficient standalone value to accredit its holder’s identity and personal data for all purposes7. Carrying a photo does not make a licence identification, and there are procedures where it will not be accepted. In daily life plenty of shops and hotels take it without argument, but that is custom, not law.

Which document type to register in SES.HOSPEDAJES

If you manage accommodation in Spain, this is your part. Royal Decree 933/2021 requires you to collect the document type and number for every traveller8, and SES.HOSPEDAJES expects a specific type from a closed list. The web service specification is what ties the support number and the second surname to the declared type; the codes themselves are not in it, the service publishes them through its own catalogue operation9.

What the guest hands youSES typeSupport number?Second surname?
Spanish DNINIFYesYes
TIE (or another document showing a NIE)NIEYesYes
EU citizen registration certificateNIEYesYes
Passport, any countryPASNoNo
Another country’s identity cardOTRONoNo

One clarification on the middle column before going on: NIF is not a document anybody hands you. It is the code the DNI is declared under, because a Spanish national’s DNI number is also their NIF.

Three consequences worth internalising:

The green certificate has a row of its own because the system accepts it, but do not register it as the guest’s identity document, because it is not one. If they are carrying their national identity card or passport, register that one, which is what identifies them.

If the guest is Spanish, the second surname and the support number are mandatory, and those two fields sink more reports than anything else. We break that down in the DNI support number.

If a foreign guest travels on a passport, there is no support number to ask for and the report is valid all the same.

Minors have their own rules by age band, covered in minors and guest registration. And if a guest shows you their DNI on a phone, it has been valid since April 2026: see MiDNI at check-in.

At RegistroViajero the guest picks their document type and the form asks for exactly the fields that document has, so the table above is resolved by the system rather than by your front desk.

One last thing: how to book a NIE appointment, what fees apply and which papers to bring to the police station are immigration formalities, the ground of the gestorías, Spain’s immigration-paperwork specialists. For that, the Policía Nacional electronic office is the authority10.

Frequently asked questions

Is the NIE the same as the TIE? The NIE and the TIE are not the same thing. The NIE is a number identifying a foreign national. The TIE is the physical card printed with that number alongside a photo and the type of authorisation. You can hold a NIE without holding a TIE.

Is my NIE my NIF? Your NIE is your NIF if you are a foreigner: it doubles as your tax identifier. If you are Spanish, your NIF is your DNI number.

Does the green EU certificate work as an identity document? The green EU certificate does not work as an identity document. It accredits registration in the Registro Central de Extranjeros and shows the NIE, but it carries no photograph and does not identify its holder. A national identity card or passport is still required.

Does a driving licence work as a DNI in Spain? A driving licence does not work as a DNI in Spain: it is not an identity document, it proves authorisation to drive. Many establishments accept it out of habit, but some procedures will not.

Does the NIE expire? The NIE does not expire. What expires is the document carrying it, the TIE or the certificate, depending on its type.

Which document do I register if my guest is an EU citizen? If your guest is an EU citizen, you register their national identity card or passport, since those are the ones that identify. The registration certificate does not serve that purpose.

Sources

  1. Orden INT/2058/2008: NIE composition, initial letter, seven digits and a verification character.

  2. Ministerio del Interior, tarjeta de identidad de extranjero.

  3. Council of the European Union, PRADO, records ESP-HO-03001 and ESP-HO-02005: dates of the residence card formats.

  4. Orden EHA/451/2008: NIF composition for legal persons, with A for public limited companies and B for private limited ones.

  5. Sede Electrónica de la Policía Nacional, certificado de registro de ciudadano de la Unión Europea: what it accredits and what data it contains. Accessed 31 July 2026.

  6. Sede Electrónica del Catastro, “Ayuda IDESP y IXESP”: support number format on immigration documents.

  7. Ley Orgánica 4/2015, art. 8: the DNI as the only document with sufficient standalone value to accredit identity.

  8. Royal Decree 933/2021, Annex I, section A) item 3, letters e), f) and g): document number, support number and document type (DNI, pasaporte, TIE) among the guest report data.

  9. Ministerio del Interior, Secretaría de Estado de Seguridad, “SES.HOSPEDAJES. Servicio de comunicación de datos de hospedajes”, web service specification, version 3.1.2 (September 2024): the personaHospedajeType field table, p. 18, with soporteDocumento mandatory if the document type is NIF or NIE; from version 3.1.1 the code tables were withdrawn and tipoDocumento values are read from the catalogue operation of the service itself. The Ministry hands this document to whoever registers with SES.HOSPEDAJES, and it is not among those published on its sede electrónica. Consulted 14 August 2026.

  10. Sede Electrónica de la Policía Nacional, citizen services and procedures: immigration procedures with their paperwork and fees, and DNI and passport appointments. Accessed 7 August 2026.

More related guides and news on tourist accommodation

Let's talk

Got questions, or want a demo of RegistroViajero? Pick how you would like to reach us.

Or write to us here

Message sent

Thanks for reaching out. We'll get back to you as soon as possible.

We'll do our best to get back to you as soon as possible. Spanish business-hours restrictions apply.