Skip to content

Updated on 25. November 2026 · 3 min read

DNI, NIE, NIF, TIE and CIF: the Spanish numbers explained simply

DNI, NIE, NIF, TIE, CIF: Spain has many abbreviations for ID documents and tax numbers. Here is what each one means and which one you need.

In Spain you quickly meet abbreviations such as DNI, NIE, NIF, TIE or CIF. Which number you need is confusing for many foreigners. Here is the overview.

All routes to the NIE at a glance: How to get a NIE number in Spain.

The overview

Abbreviation Meaning For whom? Format
DNI Documento Nacional de Identidad Spanish citizens (ID card) 8 digits + letter
NIE Número de Identidad de Extranjero Foreigners X/Y/Z + 7 digits + letter
NIF Número de Identificación Fiscal All taxpayers (umbrella term) depends on person or company
TIE Tarjeta de Identidad de Extranjero Non-EU citizens with a residence permit Plastic card showing the NIE
CIF Código de Identificación Fiscal Formerly for companies. Replaced by the NIF in 2008 Letter + 8 characters

DNI: the Spanish ID card

The DNI is the ID card of Spanish citizens. For Spaniards the DNI number is also their tax number (NIF). As a foreigner you do not get a DNI, not even if you live in Spain.

NIE: the number for foreigners

The NIE is the identification number for all foreigners who are legally or economically active in Spain: buying property, opening a bank account, inheriting or working. For you as a private individual the NIE is also your tax number. How to get one is explained on our page on how to get a NIE number.

NIF: the tax number

NIF is the umbrella term for the Spanish tax number. For Spaniards it is the DNI number, for foreigners the NIE. Companies get their own NIF, and foreign companies without a branch in Spain usually get a NIF starting with “N”. More on our page on the NIF in Spain.

TIE: the foreigner's card

The TIE is a plastic card with a photo and fingerprint issued to non-EU citizens with a residence permit. EU citizens receive the green Certificado de Registro de Ciudadano de la UE instead. The details are in NIE or TIE?

CIF: outdated

The CIF was the company tax number until 2008. Today it is officially called the NIF, but people still often say “CIF”.

Which number do I need?

  • Buying a holiday property, bank account, inheritance: NIE
  • Living in Spain (EU citizen): NIE + green certificate + padrón
  • A foreign company doing business in Spain: NIF for the company
  • Setting up a Spanish company: the company's NIF, see setting up an S.L.

Frequently asked questions

Is the NIE the same as the NIF?

For foreigners as private individuals, yes: the NIE serves as the tax number (NIF). Companies have their own NIF.

Can I get a DNI as a foreigner?

No, the DNI is only issued to Spanish citizens. As a foreigner you use your NIE.

How do I recognise a NIE?

A NIE always starts with X, Y or Z, followed by seven digits and a check letter, for example Y1234567X.

Need a Spanish tax number?

We apply for the NIF for your company or register your NIE with the tax office – online in 1–2 working days.

Go to NIF application

You might also like

All articles