What is NIF?
Updated 24 November 2026
The NIF, Número de Identificación Fiscal, is the tax identifier. A company's NIF has nine characters: a letter for the legal form, seven digits and a control character.
Finn does your books in Spain
AccountsOS keeps the books for Spain businesses, tracks tax deadlines and handles invoicing, in plain English. Ask Finn about yours, no signup needed.
Current Rate (Used on every invoice, return and informative declaration.)
No rate. Form letters include A for an SA, B for an SL and J for a sociedad civil.
Example
A15075062 is a valid SA NIF, and ES followed by the NIF is the VAT number for intra-EU operations.
How NIF works in Spain
The last character is a check digit or letter. For people the identifier is the DNI, eight digits and a letter, or the NIE for foreigners. A failed check is a warning that asks the user to confirm, never a block.
Spain offers no free lookup by NIF or name, so AccountsOS asks you for the number and checks it, and the VIES service confirms a Spanish VAT number.
Confused by Spain accounting jargon?
AccountsOS explains Spain terms in plain English and applies the right rules to your books automatically.
Try Free