Validatore del numero AHV (numero svizzero di previdenza sociale, controllo EAN-13)

Incollare uno o più numeri AHV per verificare la lunghezza, il prefisso del paese 756 e la cifra di controllo EAN-13, ottenendo ciascun numero nel formato ufficiale.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Incolla i numeri

    Metti un numero AHV per riga, con o senza punti.

  2. 2
    Leggi il risultato

    Ogni riga mostra valida o non valida con il motivo.

  3. 3
    Correzione di errori

    Utilizzare la cifra di controllo prevista per i numeri falliti.

  4. 4
    Esportazione

    Scaricare la tabella come CSV o copiare i numeri validi.

  5. 5
    Generare i dati di prova

    Utilizzare il pulsante campione solo per testare software.

Informazioni su questo strumento

The Swiss social security number, called AHV number in German and AVS number in French and Italian, has 13 digits since 2008. It is written as 756.1234.5678.97: the prefix 756 is the ISO country code of Switzerland, nine digits identify the person without carrying any information about them, and the last digit is a check digit calculated with the EAN-13 method also used for product barcodes. Payroll staff, pension funds, health insurers and schools handle these numbers every day, and a single wrong digit can send contributions to the wrong account. This validator checks a whole list at once, explains why a number fails, shows the expected check digit and formats valid numbers with dots, so you can clean a payroll file before you upload it.

Who this is for

Payroll and HR teams, pension fund and insurance administrators, school offices and anyone who types AHV numbers into forms and wants to catch typos.

The structure

An AHV number has three parts. The first three digits are always 756. The next nine digits are a random serial number allocated by the Central Compensation Office (ZAS); unlike the old 11-digit number, they contain no date of birth, sex or name code. The thirteenth digit is the check digit.

The EAN-13 check

Starting from the left, the first twelve digits are multiplied alternately by 1 and 3 and added. The check digit is the amount needed to reach the next multiple of ten. For 756921707698 the weighted sum is 125, so the check digit is 5 and the full number is 756.9217.0769.85. A typo in one digit, and most swaps of neighbouring digits, change the sum and are detected.

What the validator reports

For each line the tool removes dots, spaces and dashes, checks that 13 digits remain, that they start with 756 and that the check digit matches. A failing number shows the expected check digit, which helps find the typo. Valid numbers can be copied in the formatted style, and the whole table can be exported as a CSV file.

Test numbers

The make samples button generates random numbers with a correct check digit for testing software. They are not real people's numbers, but they could coincide with a real one by chance, so never use them in real records.

Privacy

AHV numbers are personal data, so the tool checks them on your own device and sends nothing to a server.

Limits

A valid check digit does not prove that a number was issued or belongs to a given person; only the compensation office can confirm that. This is not an official verification.

Esempio svolto

756.9217.0769.85 è valido: la somma ponderata delle prime dodici cifre è 125, quindi la cifra di controllo è 5.

In breve

Domande frequenti

Quante cifre ha un numero AHV?

13 cifre dal 2008, di solito scritte come 756.XXXX.XXXX.xx

Cosa significa 756?

È il codice numerico ISO 3166 per la Svizzera, utilizzato come prefisso di ogni numero AHV.

Come viene calcolata la cifra di controllo?

Con il metodo EAN-13: i pesi 1 e 3 si alternano sulle prime dodici cifre, e la cifra di controllo arrotonda la somma fino a un multiplo di dieci.

Il numero rivela il mio compleanno?

A differenza del vecchio numero di 11 cifre, il numero attuale non contiene informazioni personali.

Lo strumento puo' confermare il proprietario di un numero?

No, controlla solo il formato.

I numeri sono stati caricati?

No, sono selezionati nel browser e non lasciano mai il dispositivo.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue