What are the main Spain IDs?
In Spain, several acronyms refer to key identification numbers used for everyday admin and tax procedures:
- DNI is the mandatory national ID card for Spanish citizens (generally from age 14) and has 8 digits plus a letter;
- NIE is the personal ID number assigned to foreigners who need to work, study, buy or rent property, open a bank account, or handle most official paperwork, and it usually starts with X, Y, or Z, followed by 7 digits and a letter;
- TIE (Tarjeta de Identidad de Extranjero), on the other hand, is a physical residence card for foreign nationals who are legally staying in Spain under the general immigration regime (commonly, non-EU citizens with authorization for longer stays): it’s the document that proves your legal status and identity in Spain, and it normally includes key details such as your NIE and biometric data.
- NUSS (Número de la Seguridad Social) is your Social Security number, the Spanish Social Security system uses to identify you in your dealings with Social Security, and you typically need it when you start work for the first time (it later coincides with your NAF, the affiliation number), as well as to access benefits and, in many cases, to be registered for healthcare through your autonomous community.
- NIF is the tax identification number used with the Spanish tax agency, and for individuals it’s simply the same as their DNI (Spaniards) or NIE (foreigners), while for companies it’s a letter + 7 digits + a control character;
- CIF was the old company tax code, but it has been officially replaced by the company NIF since 2008, even though many people still say “CIF” in daily conversation.
What Spanish IDs are used by foreigners?
For foreign citizens in Spain, the IDs you can typically be assigned are:
- NIE: This is the core identifier for foreigners for most admin, tax, and economic procedures.
- NIF (individual): In practice it’s your NIE used as your tax number. (Spaniards use their DNI as NIF; foreigners use their NIE as NIF.)
- NUSS (Social Security number): Foreigners can be assigned a NUSS when they need to be registered with Social Security (commonly for work, contributions, and certain benefits/health coverage pathways).
- TIE: For non-EU/EEA/Swiss nationals who have authorization to live in Spain (usually stays over 6 months). The TIE is the physical card, and it includes your NIE. EU citizens generally do not get a TIE; they register as EU residents instead and still use their NIE.
And the ones that are not for foreign citizens (as individuals):
- DNI: It’s for Spanish citizens only, a foreigner would only get a DNI after becoming a Spanish citizen.
- CIF: Not applicable to individuals (and it’s obsolete terminology). For companies, the equivalent is the company NIF, which a company can obtain regardless of the owners’ nationality if it’s properly registered in Spain.
What is the NIE?
The NIE (Número de Identificación de Extranjero) is the absolute starting point for every foreigner in Spain.
- What is it? The NIE is a unique identification number. It is personal, permanent, and will be assigned to you for life. Think of it as your unique identifier within the Spanish administrative system, similar to a Social Security Number in the US or a National Insurance Number in the UK. Its format is a letter (X, Y, or Z), followed by seven digits, and a final verification letter (e.g., Y-1234567-B).
- What is NOT? The NIE is not a physical card in itself, nor is it a visa or residence permit. Possessing a NIE number does not, on its own, grant you the legal right to live in Spain. It is purely an administrative number for identification.
Who needs it? Every foreigner who has economic, professional, or social dealings in Spain. This includes:
- EU and non-EU citizens planning to live in Spain.
- Non-residents who want to buy property.
- Anyone who needs to file taxes, start a business, or inherit assets in Spain.
The NIE is the number. The following documents are the physical, legal proofs of your status, and your NIE will be printed on them.
What is the NIE number used for?
In practical terms, a foreigner uses the NIE to handle the key steps of life in Spain, such as residency and immigration paperwork, signing an employment contract, registering with Social Security, opening a bank account, buying or renting property, signing before a notary, and paying or filing taxes (for many foreigners, the NIE also functions as their tax ID/NIF in day-to-day dealings).
The NIE issued to foreigners does not give legal status to live in Spain.
Residency proof for EU citizens in Spain: Green certificate
If you are a citizen of the European Union, European Economic Area, or Switzerland and you plan to live in Spain for more than three months, you must register as a resident.
- Official Name: Certificado de Registro de Ciudadano de la Unión.
- Common Name: The "Green NIE" or NIE Verde.
- What it is: This is the document that proves your legal right to reside in Spain as an EU citizen.
- Physical Format: A small, credit-card-sized green paper certificate. Crucially, it does not have a photo. For this reason, it is only valid as proof of residency when presented alongside your valid passport or national ID card from your home country.
- Does it expire? The certificate itself does not have an expiry date, but it reflects your residency status. After five years of continuous legal residence, you can apply for a permanent version.
Residency proof for non-EU citizens: TIE card
If you are a non-EU citizen who has been granted a visa to live in Spain for a period longer than six months, you are required to obtain a TIE.
- Official Name: Tarjeta de Identidad de Extranjero.
- Common Name: The TIE card.
- What it is: This is your physical, biometric residence permit card. It is the definitive proof of your legal residency status in Spain and the conditions of that residency (e.g., permitted to work, student, etc.).
- Physical Format: A plastic, credit-card-sized ID card containing your photo, fingerprints (biometric data), signature, address, your NIE number, and the type of residency you hold.
- Does it expire? Yes. The TIE card has a validity period that matches your residence authorization. You must renew your authorization first, and then renew your TIE card before it expires.
How to obtain a foreigner identity card in Spain?
To obtain a Foreigner Identity Card in Spain (TIE: 'Tarjeta de Identidad de Extranjero'), you generally must:
- Already have a visa or residence authorization that allows you to stay more than 6 months (or long-term residence), and then
- Complete the in-person police process where your fingerprints are taken and the card is issued.

















