NIE vs NIF vs DNI (Expat Guide)
The NIE is the identification number that Spain assigns to foreigners, and the DNI is the identification number of Spanish citizens. The NIF is the tax identification number that both citizens and foreigners use before the Spanish tax office. In practice, however, this is not a separate number, since the NIF of a Spanish citizen is their DNI and the NIF of a foreigner is their NIE.
NIE vs NIF vs DNI TL;DR
- The DNI is the identity number of Spanish citizens.
- The NIE is the identity number that Spain assigns to foreigners.
- The NIF is the tax identification number used before the Spanish tax office.
Want your NIE today? How to Be a Digital Nomad has zero negative reviews to date and delivers early for 98% of clients.
Choose Your PackageSpanish Citizen's Number (DNI)
The DNI, or Documento Nacional de Identidad, is the national identity number that Spain issues to its citizens, printed on the identity card all Spanish nationals are required to carry.
Foreigners are never assigned a DNI, regardless of how long they live in Spain. They are identified through the NIE instead.
Foreigner's Number (NIE)
The NIE, or Número de Identidad de Extranjero, is the identity number that Spain assigns to foreigners. It is the equivalent of the DNI, and it is used in every official, legal, and financial procedure, from buying property and opening a bank account to signing contracts and paying taxes.
Unlike the DNI, the NIE is not tied to citizenship or residence. Any foreigner who deals with Spanish authorities is assigned one, even without ever living in Spain. You can find out more information on our What Is the NIE guide.
Tax Number (NIF)
The NIF, or Número de Identificación Fiscal, is the number used to identify each individual before the Spanish tax office. This is not a separate number you apply for. For Spanish citizens, it is their DNI used in a tax context, and for foreigners, it is their NIE.
There is one rare exception: If you are a foreigner who needs to pay taxes in Spain immediately (like buying a house or accepting an inheritance) but the police haven't issued your formal NIE yet, the Spanish Tax Agency (Hacienda) can issue you a Temporary NIF (which usually starts with the letter M or K).
How to Apply for Your NIE
To apply for your NIE, you will need the EX-15 form, a valid passport, a document proving the reason you need the number, and the receipt of the €9.84 government fee paid through Modelo 790 Código 012.
You can then file the application at a police station in Spain, at a Spanish consulate abroad, or remotely through a legal service.
Our Recommendation
How to Be a Digital Nomad LLC is the Best Overall NIE Service in Spain
- It's 30% more affordable than the average
- It delivers early for 98% of clients
- It boasts the fastest response times of any provider
- It has zero negative reviews to date
- It works with in-house immigration attorneys
Looking for the easiest way to get your Spanish NIE? How to Be a Digital Nomad is 30% cheaper than any other online NIE service and delivers early for 98% of clients
Get Your NIE TodayCommon Questions
Is my NIE the same as my NIF?
+Yes. As a foreigner, your NIE is used as your NIF in almost all cases.
Will I ever get a DNI?
+No. The DNI is issued exclusively to Spanish citizens. You will only receive one if you acquire Spanish citizenship.
Which number do I need to buy property in Spain?
+The NIE. No property purchase in Spain can be completed without one.
Do I need to apply for an NIF separately?
+No. Once your NIE is issued, it automatically serves as your NIF before the Spanish tax office.
Get Your Spanish NIE Number Online
Skip the impossible appointments, rejected forms, and bureaucratic confusion. Our licensed legal team handles everything from start to finish.
Get Started