What is the NIF in Spain?
The NIF, or Número de Identificación Fiscal, is Spain’s official tax identification number. It is the number used by the tax authorities to identify individuals and entities for tax purposes.
In simple terms, the NIF is the number that connects you to the Spanish tax administration. It appears in tax filings, official registrations, and many procedures that have tax significance.
For most people, the NIF is not an extra number issued on top of everything else.
For Spanish citizens
For Spanish citizens, the NIF usually corresponds to the DNI.
For foreign individuals
For most foreign individuals, the NIF usually corresponds to the NIE, which is the foreign identity number used in Spain.
For special cases
If a foreigner needs to carry out a tax-related operation in Spain but does not yet have a NIE, the Spanish Tax Agency may assign a NIF M.
For companies and entities
If the applicant is a legal person, such as a company or another entity, the NIF is the tax number assigned to that entity for its official and tax-related activity in Spain.
















