A CIF is a 9‑character alphanumeric code: one letter (A–H, J, N, P–S, U–W) + 7 digits + a check digit (number or letter). This Código de Identificación Fiscal checker validates both format and the modulo‑23 control digit.
Valid examples: B12345678 (LLC), A12345674 (corporation), P4622000J, N1234567C.
The CIF (Código de Identificación Fiscal) is the corporate tax identification number assigned by the Spanish Tax Agency to legal entities registered in Spain – companies, partnerships, foundations, etc. It is essential for filing taxes, issuing invoices, and customs clearance. The CIF consists of 9 characters: a leading letter (indicating the entity type) + 7 digits + a check digit (number or letter). For instance, a limited liability company uses B12345678, while a public corporation uses A12345674.
It is worth noting that since 2010 the CIF has been officially replaced by the corporate NIF (Número de Identificación Fiscal). However, in everyday commercial and trade practice – especially on invoices and customs documents – the term "CIF" is still widely used. So whenever you see "please enter your CIF", you can safely fill in your corporate NIF. [reference:0][reference:1]
Three simple steps to verify whether your CIF number is correctly formed:
You can try the example numbers to see how the tool works. If you enter an invalid code (wrong length, invalid leading letter, or incorrect check digit), you will receive a clear error message.
This Código de Identificación Fiscal checker is completely free, no registration required – ideal for cross‑border sellers, Spanish business owners, and accounting professionals.
This tool validates the syntactic correctness and the modulo‑23 checksum of the CIF. A "valid" result means the number is structurally sound. To check whether the company is actively registered, you must consult official Spanish registers, such as the AEAT VAT verification service or the EU VIES system. [reference:2]
CIF was the old corporate tax identifier used before 2010. NIF is the current unified taxpayer identification number for both individuals and legal entities in Spain. For corporations, the corporate NIF uses exactly the same structure as the old CIF – the only change is the name. Many people still say "CIF number", but the official tax ID for companies is now the NIF. [reference:3]
NIE (Número de Identificación de Extranjero) is a combined identity and tax number issued to foreign nationals residing in Spain. It is used for personal tax registration, opening bank accounts, etc. The NIE format starts with X, Y, or Z, followed by 7 digits and a check letter (e.g., X1234567L). CIF is for legal entities; NIE is for foreign individuals – they are not interchangeable. [reference:4]
Common reasons: the length is not exactly 9 characters; the first letter is not allowed (valid letters: A, B, C, D, E, F, G, H, J, N, P, Q, R, S, U, V, W); the input contains invalid characters; or the modulo‑23 check digit does not match the computed value. Double‑check your entry, or test with one of the provided examples to ensure the tool is working correctly. [reference:5]
This page is designed for single checks. For bulk validation, you can integrate our API endpoint at /iso-checker with parameters type=cif&number=your_number. Feel free to contact us for more details.
Absolutely – no payment required. OkeyTool is committed to providing handy online utilities for everyday use.
If you have further questions or encounter any issues with this Código de Identificación Fiscal checker, please reach out via the contact info at the bottom of the page. Thank you for using our tool!