Validador de número AHV (número suíço da segurança social, verificação EAN-13)
Coloque um ou vários números AHV para verificar o comprimento, o prefixo de país 756 e o dígito de verificação EAN-13, obtendo cada número no formato oficial.
Roda no seu navegador. Seus arquivos nunca saem do seu dispositivo. Veja como conferir
…
Como fazer
- 1Coloque os números
Coloque um número AHV por linha, com ou sem pontos.
- 2Leia o resultado.
Cada linha mostra válido ou inválido com o motivo.
- 3Corrigir erros de digitação
Utilize o dígito de verificação esperado mostrado para números falhados.
- 4Exportação
Faça o download da tabela como CSV ou copie os números válidos.
- 5Gerar dados de ensaio
Use o botão de amostra apenas para testes de software.
Sobre esta ferramenta
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.
Exemplo prático
756.9217.0769.85 é válido: a soma ponderada dos primeiros doze dígitos é 125, portanto, o dígito de verificação é 5.
Resumo rápido
- Categoria: Jurídico e governo
- Funciona no seu navegador, sem cadastro e sem envio de arquivos.
- O que você digita fica no seu dispositivo.
- Disponível em inglês.
- Conteúdo revisado pela última vez:
- Fonte oficial: ZAS / BSV, structure of the 13-digit AHV number (AHVN13, EAN-13 check digit, prefix 756)
Perguntas frequentes
Quantos dígitos tem um número AHV?
13 dígitos desde 2008, normalmente escritos como 756.XXXX.XXXX.xx
O que significa 756?
É o código numérico ISO 3166 para a Suíça, utilizado como prefixo de cada número AHV.
Como é calculado o dígito de verificação?
Com o método EAN-13: os pesos 1 e 3 alternam-se nos primeiros doze dígitos, e o dígito de verificação arredonda a soma até um múltiplo de dez.
O número revela o meu aniversário?
Ao contrário do antigo número de 11 dígitos, o atual não contém informações pessoais.
A ferramenta pode confirmar o dono de um número?
Não, só verifica o formato.
Os números foram carregados?
Não, são verificados no seu navegador e nunca saem do dispositivo.
