Spain
Spain uses the N煤mero de Identificaci贸n Fiscal (NIF) as the tax identifier for natural persons and for legal persons or entities. For natural persons, the NIF generally corresponds to the DNI for Spanish nationals or the NIE for foreign nationals; the Tax Administration assigns K, L, or M NIFs in specified cases where the holder does not have a DNI or NIE. Legal persons and entities without legal personality receive a separate nine-character NIF.
TIN types
6 published formats. Open a type to see examples, structure details, and official sources.
Spain NIF for Spanish Nationals (DNI)
Current
Individuals
Ministerio del Interior (Ministry of the Interior)
NIF used by Spanish natural persons when their tax identifier is their DNI number plus the control letter.
Details
Ministerio del Interior (Ministry of the Interior)
NIF used by Spanish natural persons when their tax identifier is their DNI number plus the control letter.
On the Spanish national identity document and on Spanish tax documents using the holder's NIF.
Spain NIF for Foreign Residents (NIE X/Y/Z)
Current
Individuals
Direcci贸n General de la Polic铆a (Directorate-General of Police), Ministerio del Interior (Ministry of the Interior)
NIF used by foreign natural persons when their Spanish tax identifier is their NIE.
Details
Direcci贸n General de la Polic铆a (Directorate-General of Police), Ministerio del Interior (Ministry of the Interior)
NIF used by foreign natural persons when their Spanish tax identifier is their NIE.
On the foreign identity card, residence permit, EU citizen registration certificate, or the certificate issued by the Ministry of the Interior.
Spain NIF for Minors (letter K)
Current
Individuals
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to Spanish residents under 14 who do not have a DNI and need a tax identifier.
Details
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to Spanish residents under 14 who do not have a DNI and need a tax identifier.
On the Tax Administration document assigning the NIF and related tax correspondence.
Spain NIF for Spaniards Residing Abroad (letter L)
Current
Individuals
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to Spanish nationals resident abroad who are not required to obtain a DNI and need a Spanish tax identifier.
Details
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to Spanish nationals resident abroad who are not required to obtain a DNI and need a Spanish tax identifier.
On the Tax Administration document assigning the NIF and related tax correspondence.
Spain NIF for Foreign Individuals without NIE (letter M)
Current
Individuals
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to foreign natural persons who do not have a NIE but need a Spanish tax identifier.
Details
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to foreign natural persons who do not have a NIE but need a Spanish tax identifier.
On the Tax Administration document assigning the NIF and related tax correspondence.
Spain NIF for Legal Persons and Other Entities
Current
Entities
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to legal persons, entities without legal personality, foreign entities, and qualifying permanent establishments in Spain.
Details
Agencia Estatal de Administraci贸n Tributaria (State Tax Administration Agency)
NIF assigned by the Tax Administration to legal persons, entities without legal personality, foreign entities, and qualifying permanent establishments in Spain.
On Tax Administration census or NIF assignment documents and related tax correspondence.