Validador de número AHV (número suís de la seguretat social, comprovació EAN-13)
Posa un o diversos números AHV per verificar la longitud, el prefix del país 756 i l'EAN-13 dígits de verificació, i obtenir cada número en el format oficial.
S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho
…
Com es fa
- 1Pegar els números
Posa un número AHV per línia, amb o sense punts.
- 2Llegeix el resultat
Cada línia mostra vàlida o no amb el motiu.
- 3Correcció d'errors tipogràfics
Utilitza la xifra de verificació esperada mostrada per als números que fallen.
- 4Exportació
Descarrega la taula com CSV o còpia els números vàlids.
- 5Generar dades de proves
Utilitza el botó de mostra només per a proves de programari.
Sobre aquesta eina
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.
Exemple resolt
756.9217.0769.85 és vàlida: la suma ponderada dels primers dotze dígits és 125, així que el dígit de verificació és 5.
En resum
- Categoria: Jurídic i administració
- S'executa al navegador, sense registre, sense pujar res.
- La informació que introdueixes es queda al dispositiu.
- Disponible en anglès.
- Contingut revisat per última vegada:
- Font oficial: ZAS / BSV, structure of the 13-digit AHV number (AHVN13, EAN-13 check digit, prefix 756)
Preguntes freqüents
Quantes xifres té un número AHV?
13 xifres des de 2008, normalment escrites com 756.XXXX.XXXX.xx
Què significa 756?
És el codi numèric ISO 3166 per a Suïssa, utilitzat com al prefix de cada número AHV.
Com es calcula la xifra de control?
Amb el mètode EAN-13: les peses 1 i 3 alternen els primers dotze dígits, i la xifra de verificació arrodon la suma fins a un multiplicat de deu.
El número revela el meu aniversari?
No, a diferència de l'antic número d'11 xifres, el número actual no conté informació personal.
L'eina pot confirmar el propietari d'un número?
Només comprova el format, demana a l'oficina de compensació per confirmar-ho oficialment.
Els números han estat carregats?
No, estan registrats en el teu navegador i no surten mai del teu dispositiu.
