Updated 2026 · Published by e-residency (E-residency.com Inc.)

NIE vs NIF vs TIE vs DNI vs Green Certificate

Five acronyms, endless confusion. In one line: the NIE is a number, the TIE is a card, the NIF is a tax label, the green certificate proves EU residence, and the DNI is only for Spanish citizens. This guide explains each one, who needs it, and exactly how they differ.

NIEForeigner ID & tax number. White A4 certificate. Never expires.
NIFFiscal number. For a foreigner, the NIF is the NIE.
TIEBiometric card for non-EU residents. It shows your NIE.
Green certificateEU registration certificate (form EX-18).

The master comparison

One table to tell every Spanish identification document apart.

DocumentWho it’s forWhat it isPhysical formExpires?Grants residency?
NIEAny foreigner (EU & non-EU)ID + tax numberWhite A4 certificateNo (number)No
NIFEveryone in SpainFiscal numberNone (a number)NoNo
TIENon-EU residentsResidence cardPlastic, biometricYesProves it
Green certificateEU/EEA/Swiss > 3 monthsEU registrationGreen A4 (EX-18)NoProves it (EU)
DNISpanish citizensNational IDPlastic cardYesn/a

Each document, explained

NIE

NIE — the foreigner number

The NIE (Número de Identificación de Extranjero) is the number Spain assigns to every foreigner for legal, financial and tax purposes. It is issued on a white A4 certificate, the number never expires, and it does not grant the right to live or work in Spain. It is available to EU and non-EU citizens alike.

What is a NIE number · what it looks like

NIF

NIF — the fiscal label

The NIF (Número de Identificación Fiscal) is the number used for taxes, invoices and contracts. For a foreigner, the NIF is simply the NIE acting in its tax role — there is no separate application. Spanish citizens use their DNI as their NIF, and companies have their own fiscal code (historically the CIF).

NIE vs NIF, explained

TIE

TIE — the residence card

The TIE (Tarjeta de Identidad de Extranjero) is the physical biometric card issued to non-EU residents. It carries your photo, fingerprints, residence status and your NIE. It expires with your residence permit. People searching for a “NIE card” almost always mean the TIE.

Is the NIE a card? NIE vs TIE

EU

Green certificate — EU residence proof

EU, EEA and Swiss citizens staying more than three months register and receive the green certificate (Certificado de Registro de Ciudadano de la Unión, form EX-18). It is a green paper document that contains your NIE and proves your EU residence. Non-residents instead get the white NIE certificate.

Green NIE (EX-18) · white NIE

DNI

DNI — for Spanish citizens

The DNI (Documento Nacional de Identidad) is the national ID card for Spanish citizens only. Its number doubles as their NIF. Foreigners never hold a DNI — their equivalent is the NIE.

The #1 mix-up: number vs card

There is no “NIE card”. The NIE is a number on paper; the plastic card is the TIE.

NIE — a number
NIE CERTIFICATE
X1234567B

White A4 certificate · for any foreigner

TIE — a card
TARJETA DE IDENTIDAD DE EXTRANJERO
NIE: X1234567B

Biometric card · non-EU residents only

Which document do you actually need?

Match your situation to the right document.

Buying property or banking (non-resident)You need the NIE (white certificate). No residency required.
EU citizen moving for > 3 monthsRegister for the green certificate (EX-18), which includes your NIE.
Non-EU citizen with a long-stay visaYou get a NIE, then apply for the TIE card after arrival.
Just visiting as a touristNo NIE needed for a short stay.

Quick answers

Is the NIE the same as the NIF?
For a foreigner, yes — your NIE works as your NIF for taxes. NIE vs NIF
Is the NIE the same as the TIE?
No. NIE = number; TIE = biometric card that shows it. Is the NIE a card?
What about EU citizens?
EU/EEA/Swiss get the green certificate (EX-18). Green NIE
Does the NIE expire?
The number never expires. Validity explained

Explore the details

Know which document you need? Learn how to get your NIE number online without travelling to Spain.

Frequently asked questions

Is a NIE a residence permit?
No. It is only an identification and tax number; residency comes from the green certificate (EU) or a TIE/permit (non-EU).
Do EU citizens get a NIE or a TIE?
EU citizens get a NIE within the green registration certificate (EX-18), not a TIE. The TIE is for non-EU residents.
Is “NIE” and “NIE number” the same thing?
Yes. The NIE is a number, so “NIE” and “NIE number” mean the same.
Do I need a separate NIF if I already have a NIE?
No. For a foreigner the NIE already serves as the NIF for all tax purposes.
Is the “NIE card” a real document?
No. The NIE is a number on a paper certificate. The plastic card people mean is the TIE, which displays the NIE.
Can I get a NIE without living in Spain?
Yes. Non-residents can obtain a NIE, including remotely through a power of attorney, without travelling to Spain.

Sources

e-residency is operated by E-residency.com Inc. (Málaga, License 62802L). We are a private firm and not a public administration; we do not issue official documents. Information is provided for general guidance and is accurate as of 2026.