Guides
NIF for foreigners in Spain: what it is, NIE, CIF, and how to apply
If a Spanish form asks for your NIF, first work out whether it means your existing NIE, an AEAT-assigned personal NIF, or an entity's tax ID.
Last updated
Which NIF does a foreigner use in Spain?
Check whether you already have a NIE
For a foreign individual, the NIF is the NIE assigned under Spain's foreigner-identification rules. If you already have a NIE, do not assume a tax form is asking you to create a second personal number.
https://sede.agenciatributaria.gob.es/Sede/censos-nif-domicilio-fiscal/solicitar-nif/nif-persona-fisica.html →If you have no NIE, use AEAT's individual route
A foreign individual without a NIE must request an AEAT-assigned NIF when carrying out a transaction with tax significance. AEAT says this covers both a temporary situation when the person is required to obtain a NIE and a definitive one when they are not. The current individual route uses Modelo 030 and is separate from applying for a NIE.
https://sede.agenciatributaria.gob.es/Sede/censos-nif-domicilio-fiscal/solicitar-nif/nif-persona-fisica.html →Keep personal and entity NIFs separate
Legal entities and other organisations use the separate AEAT entity route and Modelo 036. People still say "CIF" in everyday business language, but the official identifier for a company or other legal entity is a NIF.
https://sede.agenciatributaria.gob.es/Sede/censos-nif-domicilio-fiscal/solicitar-nif/nif-persona-juridica-entidad.html →Do not confuse format with census or VAT status
A letter or checksum can show that a number has a plausible format. It cannot prove who owns it, whether it is current in AEAT's census, or whether an entity is registered for EU VAT. AEAT's third-party census check and the EU VIES service answer different, narrower questions.
https://ec.europa.eu/taxation_customs/vies/ →
Before you apply for or check anything
This page separates a foreign individual's personal NIF from an entity NIF and from the old CIF label. It does not turn a format check into proof of identity, census status, or VAT registration.
Read the exact field or request first. A bank, invoice, tax form, and EU VAT check can use similar words while asking different questions.
- Identify whether the field concerns you personally, a legal entity, or EU VAT registration.
- If you already have a NIE, start from the official rule that this is your personal NIF.
- Do not paste an identifier into an unknown third-party checker; use the official service for the named task.
Common questions about NIF and CIF
What is the difference between NIF and CIF?
What is my NIF if I am a foreigner in Spain?
Why do some forms still say CIF?
How does a non-resident get a NIF in Spain?
What is the format of a Spanish NIF?
Official sources
- Agencia Tributaria — NIF de persona física
- Agencia Tributaria — Trámites censales que afectan a no residentes: NIF
- Agencia Tributaria — NIF de persona jurídica y entidad
- Agencia Tributaria — Comprobación de un NIF de terceros a efectos censales
- European Commission — VAT Information Exchange System (VIES)
- BOE — Real Decreto 1065/2007, de 27 de julio, por el que se aprueba el Reglamento General de las actuaciones y los procedimientos de gestión e inspección tributaria
This is general information, not legal advice. Guiri is not a lawyer or gestor. Always check the official portal linked above, and consult a professional for your specific case.