Portugal Validador NIF (Digit de verificació del número fiscal)

Paste Portuguese tax numbers to check the check digit, see whether each belongs to a person, a company or another entity, and get the VAT form.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Pegar els números

    One NIF or NIPC per line, with or without PT.

  2. 2
    Llegeix els resultats

    Cada NIF mostra si la seva xifra de verificació mod 11 coincideix.

  3. 3
    Verifica el tipus

    Mira si el número pertany a una persona, empresa o altra entitat.

  4. 4
    Correcció d'errors tipogràfics

    Utilitza la xifra de verificació esperada per als números que fallen.

  5. 5
    Exportació

    Descarrega els resultats com a CSV.

Sobre aquesta eina

The NIF (número de identificação fiscal) is used in almost every transaction in Portugal: invoices, contracts, bank accounts, utility bills and every purchase where you want the expense to count for your IRS. Companies have a NIPC with the same format. It has nine digits, and the last is a check digit calculated with the modulo 11 method, so most typing errors can be detected. The first digits show the type of holder: 1, 2 or 3 for individuals, 5 for companies, 6 for public bodies, 9 for condominiums and other entities, and specific prefixes for non-residents and estates. For VAT within the EU, the number is preceded by PT. This validator checks lists of numbers and shows the type and the VAT form.

Who this is for

Businesses issuing invoices, accountants checking supplier and customer records, developers of invoicing software, and anyone who needs to confirm a number before signing a contract.

The check digit

The first eight digits are multiplied by 9, 8, 7, 6, 5, 4, 3 and 2 and added. The remainder of the sum divided by 11 is subtracted from 11. If the result is 10 or 11, the check digit is 0. For 123456789, the weighted sum is 156, the remainder is 2, and 11 minus 2 is 9, which matches the last digit.

What the first digits mean

- 1, 2 and 3: individuals; 3 is the newest range. - 45: non-resident individuals without a Portuguese tax number history. - 5: companies and other legal persons (NIPC). - 6: public administration. - 70, 74 and 75: estates of deceased persons (herança indivisa). - 71: non-resident companies. - 72: investment funds. - 77: numbers assigned ex officio by the tax authority. - 79: exceptional regime. - 8: former sole trader numbers. - 90 and 91: condominiums and irregular companies. - 98: non-residents without a permanent establishment. - 99: civil companies without legal personality.

Invoices and e-fatura

Invoices issued to individuals should carry their NIF if they ask for it, so that the expense appears in e-fatura and counts for IRS deductions. Business invoices must carry the buyer's NIPC. A wrong number means the invoice is lost for the buyer's deductions or VAT recovery.

VAT numbers

The Portuguese VAT number for intra-EU trade is PT followed by the NIPC or NIF. Check that a VAT number is active in the European Commission's VIES system before applying reverse charge.

Batch use

Paste a column of numbers, with or without PT and spaces. Each line shows valid or invalid, the expected check digit for failures and the holder type for valid numbers. Export the table as CSV.

Test numbers

The sample button creates valid-looking numbers for software tests. They may coincide with real people or companies, so never use them on real invoices.

Limits

A valid check digit does not prove that the number was issued or who holds it. Only the tax authority can confirm that.

Exemple resolt

123456789 és vàlida: la suma ponderada 156 deixa un residu de 2, així que el dígit de verificació és 11 menys 2, que és 9.

En resum

Preguntes freqüents

Quantes xifres té un NIF portuguès?

Nou dígits, l'últim dels quals és un dígit de comprovació.

Com es calcula la xifra de control?

Posa 9 a 2 en els primers vuit dígits, mòdul 11; un resultat de 10 o 11 es converteix en 0.

Com sé si un NIF és una empresa?

Els números de les empreses (NIPC) normalment comencen amb 5; els individus comencen amb 1, 2 o 3.

What is the Portuguese VAT number?

PT followed by the nine digits of the NIF or NIPC.

L'eina em pot dir el nom del titular?

Només comprova el format i el tipus; no consulta cap registre.

Els números han estat carregats?

No, estan comprovats en el teu navegador.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes