Spain · Taxes · NIF
What Is a Spanish NIF? — NIF vs NIE, and the NIF for Companies
Quick answer
A Spanish NIF (Número de Identificación Fiscal) is the tax identification number the Agencia Tributaria uses for every taxpayer. For people it is usually not a separate number: a Spanish citizen’s NIF is their DNI, and a foreigner’s is their NIE. Companies get their own NIF; a foreign company’s starts with N, and that is the number we obtain.
The NIF — Número de Identificación Fiscal — is the identification number of the Spanish Tax Agency (Agencia Tributaria). A foreign company cannot buy property, invoice with Spanish VAT, lease premises or complete an EPR registration in Spain until it has one. We handle the application for you 100% remotely: you send scans of your company documents, apostilled and sworn-translated into Spanish, and the number is typically issued within a few business days.
- Tax & accounting team
- 17,000+ clients
- Agencia Tributaria (AEAT)
- Handled 100% remotely
- A few business days
- 4.9/5 — Excellent on Trustpilot
What clients say
A Spanish NIF for Your Foreign Company
Foreign entities doing business in Spain — a Dutch BV, a German GmbH, a French SARL, a UK Ltd — must hold their own NIF to deal with the Agencia Tributaria: for property purchases, commercial leases and invoicing in Spain.
A foreign company receives a NIF starting with N, the letter the AEAT assigns to foreign legal entities. It identifies the company to the Spanish authorities for its activities and obligations in Spain without making it a Spanish company. Typical reasons: transactions with Spanish tax relevance, Spanish tax or VAT registration where it applies, investing in or acquiring assets in Spain, authorities or registries that require a Spanish tax ID, and regulatory registrations such as MITECO/EPR.
Complete service€499
NIF vs NIE vs DNI: Which Number Is Whose?
NIF stands for Número de Identificación Fiscal. It is the number you use in every tax procedure in Spain — from tax returns and payments to notarial deeds, business bank accounts and invoicing.
The NIF is a role more than a separate number. For people, it is usually a number they already hold: a Spanish citizen’s DNI or a foreigner’s NIE. Companies and other entities receive a NIF of their own from the Agencia Tributaria.
| Number | Who holds it | Issued by | Format (sample) | How it works as the NIF |
|---|---|---|---|---|
| DNI | Spanish citizens | Policía Nacional | 8 digits + check letter, e.g. 12345678Z | The DNI number is the citizen’s NIF |
| NIE | Foreign individuals with financial, professional or social dealings in Spain | Policía Nacional | X, Y or Z + 7 digits + check letter, e.g. X1234567L | Used as the NIF once registered with the Agencia Tributaria |
| NIF starting with M | Foreign individuals who must deal with the Tax Agency but have no NIE | Agencia Tributaria | M + 7 digits + check letter | A tax-only number |
| Company NIF | Companies and other legal entities, Spanish or foreign | Agencia Tributaria (Modelo 036) | Letter for the legal form + 7 digits + check character; foreign entities get N, e.g. N9815734J | The company’s own NIF: the number this service obtains |
Applying as an individual? This service is for companies. For most foreign individuals the NIF is their NIE: you can apply for an NIE online, then register it with the Tax Agency using Modelo 030. Our NIE vs NIF guide covers the difference in detail, and the example of the NIE document shows where the number appears.
And the CIF? The CIF (Código de Identificación Fiscal) was the old tax number for companies, abolished in favor of the NIF for legal entities in 2008. You will still hear “CIF” in everyday Spanish business speech, but a company asked for its CIF today simply provides its NIF — no additional number exists to request.
Who Needs a Spanish NIF?
When do you need a NIF?
Managing tax matters in Spain requires a NIF. The classic example is a foreign entity — a UK Ltd, a German GmbH — buying Spanish property.
I need a NIF for my foreign entity
A foreign entity, such as a UK Ltd or a German GmbH, applies for a NIF of its own. The number is required for all tax-related transactions in Spain, property purchases included.
Sales, packaging, and EPR obligations
Selling goods on the Spanish market requires a NIF for tax and legal compliance. The same number underpins Spain’s packaging rules and EPR (extended producer responsibility) framework: registering packaging materials, contributing to recycling programs, and joining waste management schemes are all tied to it.

How to Apply for a NIF, Step by Step
Your part is a single form; everything after that runs between us and the Agencia Tributaria. Step by step:
Complete the online form
Company details straight off your register extract — nothing to scan at this stage. About 2 minutes.
Send your documents and sign the Power of Attorney
After checkout, a second form collects the scans; the Power of Attorney is signed remotely while we complete the censal registration (Modelo 036) for your entity.
We file with the Agencia Tributaria
Directly with the Tax Agency, under the Power of Attorney you signed.
Receive your NIF by email
Within a few business days — ready for your notary, bank, accountant or waste-management scheme.
What Do You Need to Provide?
Two things, at two moments. The form on this page asks only for details you either know by heart or can read straight off your company register extract. The documents follow on a second form after checkout — and the Agencia Tributaria takes the corporate ones only with an apostille and a sworn translation into Spanish.
| What to submit | Notes |
|---|---|
| Extract from the Commercial Register | Of the company’s country of incorporation |
| Articles of Association | Required |
| Apostille | You obtain it in the country that issued the document |
| Sworn translation into Spanish | By a traductor jurado — a translator officially authorized by the Spanish Ministry of Foreign Affairs (MAEC); we can arrange it, billed separately |
| Power of Attorney / Power of Representation | Required when the person acting for the company is not a director or legal representative evidenced by the corporate documents |
| Identification document of the representative | A valid passport or national identity document |
| NIE of the director or legal representative | Required — we can obtain it for you |
| Company electronic certificate (FNMT) | Required — the company’s own digital certificate (certificado de representante); we can obtain it for you |
The apostille is yours to obtain, in the country that issued the document. The sworn translation you can arrange yourself, or we can do it for you, billed separately. The person representing your company — its director or legal representative — also needs a Spanish NIE and a personal FNMT digital certificate; we can obtain both.
The NIF is free — you pay only for the filing
What you pay
- Spanish NIF€499
The NIF itself is issued free of charge by the Agencia Tributaria; the €499 covers our work to obtain it and file the application on your behalf. Apostille and sworn translation costs are not included.
Included in every application
- The whole procedure runs 100% remotely
- All official forms completed for you
- Filing directly with the Agencia Tributaria
- Your NIF by email within a few business days
- English-speaking support throughout
100% money-back guarantee if we cannot deliver your NIF
Ready to Get Your Spanish NIF?
A short form is all it takes to start, and the documents follow on a second form. The NIF arrives by email within a few business days.
Apply for NIF- A short form now, the documents at the next step
- Filed directly with the Agencia Tributaria
- NIF delivered by email within a few business days
Frequently Asked Questions
What is a Spanish NIF?
The NIF (Número de Identificación Fiscal) is Spain’s tax identification number. The Agencia Tributaria uses it to identify every taxpayer in tax returns and payments, invoices, notarial deeds, bank accounts and property transactions. Individuals and companies, Spanish and foreign alike, need one. For people it is usually not a separate number: it is the DNI or NIE they already hold.
What does a Spanish NIF look like? Examples by type
The format shows who holds it. A Spanish citizen’s NIF is their DNI: eight digits and a check letter, such as 12345678Z. A foreigner’s is usually their NIE: X, Y or Z, seven digits and a check letter, such as X1234567L. A company’s NIF starts with a letter for its legal form; foreign entities get an N, like N9815734J on the sample card at the top of this page.
What is the difference between the NIF and the NIE?
The NIE (Número de Identidad de Extranjero) identifies a foreign individual in Spain and is issued by the Policía Nacional. The NIF is the tax identification number managed by the Agencia Tributaria. For a foreign individual they are normally the same number: once the NIE is registered with the Tax Agency, it is used as the NIF. Companies never use an NIE; they receive their own NIF.
Do foreigners need a separate NIF if they already have an NIE?
Usually not. A foreign individual who holds an NIE uses that number wherever a NIF is asked for, once it is registered with the Agencia Tributaria, typically through Modelo 030. A foreigner who must deal with the Tax Agency but has no NIE can be assigned a NIF starting with M. Our NIF service is for companies only; individuals start with an NIE application.
Is the DNI the same as the NIF?
For Spanish citizens, yes: the number on the DNI, the national identity card, including its check letter, is also their NIF. Spanish citizens who do not have to hold a DNI, such as those living abroad or children under 14, can instead be assigned a NIF starting with L or K by the Agencia Tributaria. Foreigners cannot get a DNI; they use an NIE.
Does my company need a NIF?
A foreign entity needs a NIF to do business in Spain — opening a bank account, purchasing or renting real estate, invoicing, or carrying out other financial and tax transactions.
What type of NIF will my company receive?
A company NIF obtained through this service starts with N98. The letter N marks a foreign entity without a permanent establishment in Spain, as on the sample card at the top of this page. The number identifies your company to the Spanish authorities without making it a Spanish company, and it stays the same unless the company changes its legal form or nationality.
How does the service work, and how long does it take?
You start on this page with your company details. After checkout, a second form collects scans of your company documents, and you sign a Power of Attorney remotely so we can act for your entity. We prepare and file the censal registration (Modelo 036) with the Agencia Tributaria. The NIF itself is free of charge, and it is typically issued and emailed to you within a few business days.
What documents does my company need to provide?
Scans of an extract from the Commercial Register of your country of incorporation and of the Articles of Association, each with an apostille and a sworn translation into Spanish; a Power of Attorney when the signer is not a director shown in those documents; and the representative’s passport or ID. The company also needs its own FNMT certificate, and its director needs a Spanish NIE and a personal FNMT certificate.
How can I verify a Spanish NIF number?
The Agencia Tributaria offers a NIF verification service in its Sede Electrónica, but accessing it requires a digital certificate. For intra-EU VAT numbers, the European Commission’s VIES database is the public alternative — note that an N-type NIF only appears in VIES once the entity has been registered for intra-EU transactions.
Reviewer and Sources
Reviewed by: E-Residence Team · Last updated:
Spanish tax registration procedures and document practices can vary by office and applicant profile. Always check official sources and obtain case-specific advice before submitting documents.
Official sources
- Agencia Tributaria — How to apply for a NIF
- Agencia Tributaria — NIF for individuals: DNI, NIE and the K, L and M numbers
- Agencia Tributaria — NIF for legal entities
- Agencia Tributaria — Modelo 036 census declaration
- BOE — Real Decreto 1065/2007, tax identification regulations
- BOE — Orden EHA/451/2008, composition of the NIF of legal entities
- European Commission — VIES VAT number validation
- Dirección General de la Policía — NIE procedures for foreign nationals