Formats it recognises
| Document | Format | Example |
|---|---|---|
| DNI (personal NIF) | 8 digits and a control letter | 12345678Z |
| NIE (foreign residents) | X, Y or Z, 7 digits and a letter | X1234567L |
| CIF (company NIF) | Letter, 7 digits and a control (digit or letter) | B12345674 |
| EU VAT number | Country code and the number | ESB12345674, DE123456789 |
EU clients and suppliers
To invoice a business in another EU country without VAT, its VAT number must be registered in the intra-EU operators database (VIES). This tool only checks the format; Eduardo checks VIES when you issue the invoice and keeps the result.
Frequently asked questions
How is the DNI letter calculated?
The number is divided by 23 and the remainder gives the letter in the series TRWAGMYFPDXBNJZSQVHLCKE. For an NIE, X, Y or Z become 0, 1 or 2 before dividing.
Does a valid NIF mean the company exists?
No. A matching control letter or digit only means the number is typed correctly. For intra-EU transactions, check VIES.
What if I issue an invoice with a wrong NIF?
The invoice is incomplete and your client may not be able to deduct the VAT. It is corrected with a corrective invoice.