Spanish NIF
NIE vs NIF in Spain: what you actually need
NIE, NIF and CIF sound interchangeable but they are not. Here is what each one means, and why a foreign company selling into Spain needs a NIF, not an NIE.
28 Jun 2026 · 6 min read
If you are trying to sell into Spain from abroad, you have probably run into three acronyms that seem to mean the same thing: NIE, NIF and CIF. They do not. Mixing them up is one of the most common reasons a compliance task stalls, because people request the wrong number and then wait weeks for something they were never going to be able to use. This guide sorts out the difference between NIE and NIF, explains where CIF fits in, and answers the question most foreign businesses are really asking: is it an NIE or a NIF that a company needs?
Why the confusion happens
The three terms overlap in everyday speech, and even people in Spain use them loosely. In practice a landlord, a bank clerk and a supplier might each ask you for a different one of these while meaning roughly the same thing. The rules underneath, though, are precise: one of these numbers identifies a foreign person, one is the umbrella tax identifier, and one is an old label that no longer officially exists. Once you see how they relate, the choice becomes obvious.
What is an NIE
The NIE is the Numero de Identidad de Extranjero, the identity number for a foreigner. It belongs to a physical person, a human being, not to a company. Spain issues an NIE so that a foreign individual can be identified in the country for personal matters.
Typical reasons an individual needs an NIE include:
- Applying for or holding residency in Spain
- Buying or selling property in your own name as a private person
- Taking up employment or being registered as a worker
- Opening a personal bank account or signing personal contracts
The key point for businesses: an NIE identifies you as a person. It is not a tax identifier for a legal entity, and it will not let a foreign company invoice, register products or meet its obligations in Spain. If you are here to trade as a company, the NIE is almost certainly not the number you are looking for.
What is a NIF
The NIF is the Numero de Identificacion Fiscal, the tax identification number. This is the umbrella tax ID that every taxpayer in Spain has, and it comes in a few flavours depending on who you are.
- A Spanish individual: their NIF is simply their DNI, the national identity number.
- A foreign individual: their NIF is their NIE. In other words, for a foreign person the NIE doubles as the tax number.
- A company or legal entity: it gets its own dedicated NIF, separate from any individual.
So the NIF is the wider concept, and the DNI or the NIE sits underneath it for individuals. If you want the full picture on the entity side, see what a NIF number is and how a foreign company gets its NIF. The important takeaway is that a company always has a NIF of its own, and that NIF is what makes it visible to the Spanish tax authorities.
Where does CIF fit in
CIF stands for Codigo de Identificacion Fiscal, and for years it was the name used for a company's tax number. You will still hear suppliers, invoicing software and older forms ask for a "CIF". Here is the thing to remember: the CIF was retired as a separate category some time ago, and a company's tax number is now simply its NIF. If someone asks a business for its CIF today, they are asking for its NIF. There is no practical distinction anymore, only habit. So when you compare CIF in Spain against NIF, you are really comparing an old label with its current name.
NIE or NIF for a company: the practical answer
This is the question that matters most, and it has a clean answer. Your company needs a NIF, not an NIE. A foreign business with no permanent establishment in Spain is assigned a specific type of NIF: the N98, also written as NIF-N, the tax number reserved for non-resident foreign entities. This is the number that lets you register for Extended Producer Responsibility, sign up with a compliance scheme, and appear correctly on invoices and product registrations.
Ordering an NIE for this purpose would be a mistake. The NIE identifies a person, so it cannot stand in for a company's tax number, and requesting one will not move your EPR compliance forward. If you are not yet sure why any of this applies to you, what EPR is explains the obligation that pushes most foreign sellers to get a Spanish tax number in the first place. At EPRNIF we issue the N98 (type N) NIF for foreign companies digitally, usually within 12 to 24 hours, with no notary and no apostille.
When a director might also need an NIE
For a pure EPR case, where a foreign company simply needs to be tax-identified so it can comply and keep selling, an individual NIE is usually not required at all. The company's N98 NIF does the job. There are narrower situations where a founder or director might want an NIE personally, for example if that individual intends to live in Spain, buy property in their own name, or take a role that ties them to the country beyond the company. Those are personal matters, separate from the company's tax number. Cases that involve a permanent establishment or a Spanish subsidiary (an SL) are heavier and work differently, and that is territory for a tax adviser rather than a fast N98.
Quick reference
- NIE: identity number for a foreign individual (a person), used for residency, personal property, employment and personal banking. Not a company tax ID.
- NIF: the umbrella tax identification number. For a Spanish person it is the DNI, for a foreign person it is the NIE, and for a company it is a dedicated NIF.
- CIF: the old name for a company tax number. Today it is just the company's NIF.
- Foreign company with no permanent establishment: needs an N98 (NIF-N), not an NIE.
The right next step for foreign sellers
If you are a foreign company that needs to trade or comply in Spain, the number you want is the N98 NIF, and you can start the process now. Begin an application, check the price, or read through common questions if you want to confirm the details first. None of this is legal or tax advice, and unusual cases deserve a professional look, but for the standard scenario the path is straightforward: skip the NIE, get your company its NIF.