NIE by e-residence
NIE vs NIF vs TIE vs DNI: Spanish ID Numbers Compared
NIE vs NIF vs TIE vs DNI: Spanish ID Numbers Compared

NIE, NIF, TIE and DNI

TL;DR

  • The NIE is the identification number for foreigners; the DNI is the identity number and card of Spanish citizens. Nobody holds both.
  • For individuals the NIF (tax ID) is not a separate number: a Spaniard’s NIF is their DNI number, a foreigner’s NIF is their NIE.
  • The TIE is a physical card that displays a non-EU resident’s NIE — the card expires with the permit, the number never does.
  • Formats at a glance: NIE = X/Y/Z + 7 digits + check letter; DNI = 8 digits + check letter; NUSS (social security) = 12 digits.
  • Only the NIE assignment costs €9.84; the TIE card has its own fees (€16.08 first issue, €19.30 renewal).

Facts verified 9 August 2026 against the Sede Electrónica de la Policía Nacional and its official fee schedule

Spanish identification numbers compared side by side: NIE, NIF, DNI, TIE, NUSS and CIF

Spain runs on identifiers, and five of them look confusingly alike: NIE, NIF, DNI, TIE, NUSS — plus the CIF that companies used to carry. Some are numbers, some are cards, some are the same digits with a different purpose. This page puts all six side by side once, so you can stop guessing which one a bank, employer or notary is actually asking for.

Updated 10 August 2026


All six identifiers in one table

Full name Issued by Who gets it Format What it’s for Expires?
NIE Número de Identidad de Extranjero Dirección General de la Policía Foreigners with economic, professional or social ties to Spain X, Y or Z + 7 digits + check letter Identifies a foreigner in every official dealing; doubles as their tax ID Never — the number is for life
NIF Número de Identificación Fiscal Agencia Tributaria (derived automatically for individuals) Everyone who pays Spanish tax = DNI number for Spaniards; = NIE for foreigners; entities: letter + 7 digits + control character Tax identification Never
DNI Documento Nacional de Identidad Dirección General de la Policía Spanish citizens only 8 digits + check letter National identity number and card The card is renewed periodically; the number is for life
TIE Tarjeta de Identidad de Extranjero Policía Nacional Non-EU citizens with Spanish residence authorisation A physical card displaying the holder’s NIE Proves residence status; carries photo and fingerprints Yes — with the underlying permit
NUSS Número de Usuario de la Seguridad Social Tesorería General de la Seguridad Social Anyone who works or interacts with social security 12 digits Social security contributions and benefits Never
CIF (historic) Código de Identificación Fiscal — today the entity NIF Agencia Tributaria Companies and other legal entities Letter + 7 digits + control character Corporate tax identification Never, while the entity exists

No comparison table needs memorising once you see the logic: the Policía issues identity (NIE, DNI, TIE), the tax agency issues fiscal identity (NIF, the old CIF), and social security issues its own number (NUSS). One person never needs all six.


Number versus card: NIE vs TIE

The single most expensive confusion in Spanish paperwork is number versus card. The NIE is a number on a white A4 certificate. It costs €9.84 (tasa 790/012), never expires, and is not a residence permit. The TIE is a card — the Tarjeta de Identidad de Extranjero — issued to non-EU citizens who already hold residence authorisation. The card shows your NIE on its face, carries your photo, and expires together with the permit behind it.

That is why the fees differ: the TIE has its own lines on the same 790/012 form — €16.08 for first issue, €19.30 for renewal. Paying a TIE fee does not get you a NIE, and holding a NIE does not entitle you to a TIE; the card requires a residence permit first. The full fee table, line by line, is in NIE documents, forms and the fee.


Same digits, different purpose: NIE vs NIF

For individuals, the NIF is not a number you apply for — it is a role your existing number plays. The moment a Spaniard deals with the Agencia Tributaria, their DNI number acts as their NIF; the moment a foreigner does, their NIE acts as their NIF. Same digits, different purpose. There is no separate "NIF application" for a person, no second card, and no extra fee.

The exception is legal entities: companies identify with an entity NIF (letter + 7 digits + control character) issued by the Agencia Tributaria. That identifier was historically called the CIF, and the old name survives in everyday speech and in bank forms long after the law merged it into the NIF.


DNI: the citizens’ counterpart

The Documento Nacional de Identidad is what Spanish citizens carry: 8 digits plus a check letter, issued by the Dirección General de la Policía, on a card that is renewed periodically while the number stays for life. A foreigner never receives a DNI — the NIE is the foreigner’s equivalent, one digit longer and prefixed with a letter. X-series NIEs are exhausted; Y has been issued since 2008 and Z since 2022, so all three prefixes remain valid in circulation.


NUSS: the outsider on the list

The Número de Usuario de la Seguridad Social — 12 digits, issued by the Tesorería General de la Seguridad Social — identifies you to the social security system, not to the police or the tax agency. You need it the first time you work in Spain or register for benefits, and it lives for life alongside your NIE or DNI without replacing either. Employers routinely ask for the NIE and the NUSS together; they are different numbers from different administrations.


Which one do you actually need first?

For almost every newcomer the answer is the NIE: banks, notaries, employers and the tax agency all key their records to it, and it works as your NIF from day one. How to request it — including without travelling, via a consulate or a power of attorney — is covered step by step in the NIE number in Spain guide and in getting a NIE from the UK, Ireland or the US.


⚠ Scams to avoid

  • "Buy your separate NIF here." For individuals no separate NIF exists: your NIE (or DNI) is your NIF. A service selling a personal "NIF application" is selling a number you already have.
  • "Upgrade to the TIE fee for a stronger NIE." €16.08 and €19.30 pay for the card procedures, not a better number. Paying a higher concept on the 790/012 gets your proof of payment rejected.
  • "Your NIE has expired — renew now." NIE numbers never expire. Only the TIE card and the underlying permit have renewal dates; "NIE renewal" offers trade on the confusion between number and card.

FAQ

Is the NIE the same as the NIF?

For individuals, yes in practice: once you have a NIE, it functions as your tax identification number (NIF). Companies have a separate CIF-style NIF.

Is the TIE the same as the NIE?

No. The NIE is a lifetime number on a paper certificate; the TIE is a physical residence card that displays that number and expires with the permit behind it.

Can a foreigner get a DNI?

No. The DNI (8 digits + letter) is issued to Spanish citizens only. The foreigner’s equivalent is the NIE; non-EU residents additionally carry the TIE card.

Do I need a NUSS if I already have a NIE?

Yes, if you work in Spain. The NUSS (12 digits) comes from the Tesorería General de la Seguridad Social and identifies you to social security; the NIE does not replace it.


Sources:

Sede Electrónica de la Policía Nacional — Asignación de NIE a instancia del interesado and official fee schedule (tasa 790/012 — NIE €9.84; TIE €16.08 first issue / €19.30 renewal), retrieved 9 August 2026; Orden INT/2058/2008 (NIE letter series); Real Decreto 557/2011 (Reglamento de Extranjería).

Reviewed by the Happy Residence S.L. team. Every figure on this page is checked against the official source on the date shown above; we re-verify after each annual fee order.

We are an administrative assistance service, not a public administration.


We Are Online