Validador i decodificador de números personals suecs (Luhn Check)

Posa el personnummer o samordningsnummer suec per comprovar la xifra de Luhn i llegir la data de naixement, l'edat, el sexe i el format normalitzat de 12 dígits.

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

    Un número de persona o samordningsnummer per línia.

  2. 2
    Llegeix els assegnes

    Cada línia mostra vàlida o no amb el motiu.

  3. 3
    Mira els detalls.

    Veure tipus, data de naixement, sexe, edat i el formulari de dotze xifres.

  4. 4
    Corregeix errors

    Utilitza el dígit de verificació esperat per als nombres que fallen.

  5. 5
    Exportació

    Descarrega els resultats com a CSV.

Sobre aquesta eina

Everyone registered in Sweden has a personal identity number (personnummer) of ten digits: the birth date as YYMMDD, a three-digit birth number and a check digit. The ninth digit is odd for men and even for women. People who are not registered but need an identity number for tax or social insurance get a coordination number (samordningsnummer), which adds 60 to the day of birth. The separator is a dash, or a plus sign once the person has turned 100. Systems often store the twelve-digit form with the century. This validator checks the Luhn check digit on a whole list, decodes each valid number and shows the twelve-digit form, so you can clean registers and catch typos.

Who this is for

HR and payroll staff, school and healthcare administrators, developers testing forms, and anyone who handles Swedish identity numbers.

The structure

A number such as 811228-9874 means born on 28 December 1981, birth number 987, check digit 4. The birth number was once linked to the county of birth for people born before 1990, but this no longer has any meaning. The ninth digit, here 7, is odd, so the person is registered as male.

The Luhn check

The check digit is calculated over the first nine digits with the Luhn algorithm: digits in odd positions are doubled, digits of the products are added, and the check digit makes the total a multiple of ten. The same algorithm is used for bank cards and Swedish organisation numbers. It catches single-digit errors and most swaps of neighbouring digits.

Coordination numbers

For samordningsnummer, 60 is added to the day: 701063-2391 refers to a person born on 3 October 1970. The tool marks these as coordination numbers.

Century and the plus sign

With ten digits, the century is not written. The tool assumes the most recent possible century; a plus sign means the person is 100 or older and moves the year back one century. The twelve-digit form, for example 19811228-9874, removes the ambiguity, and the tool accepts it as input too.

Interim and reserve numbers

Healthcare and some authorities use their own reserve numbers for patients without a personnummer. These follow other patterns and are not checked here.

Privacy

Identity numbers are personal data. The validator runs in your browser and nothing is uploaded.

Test numbers

Use the sample button to create random numbers with valid check digits for software tests. Skatteverket also publishes official test numbers for developers. Never use random numbers in real records.

Limits

A valid check digit does not mean the number exists or belongs to a given person. Only the population register can confirm that.

Exemple resolt

811228-9874 és vàlida: nascut el 28 de desembre de 1981, novè dígits 7 així que masculí, i 19811228-9874 en la forma de dotze dígits.

En resum

Preguntes freqüents

Com es calcula el dígit de verificació del número de persona?

Amb l'algoritme Luhn sobre els primers nou dígits, el mateix mètode utilitzat per a targetes bancàries.

Què és un samordningsnummer?

Un número de coordinació per a persones no registrades a Suècia; el dia del naixement té 60 afegits.

Què significa un signe més?

Que la persona ha complert 100 anys; substitueix el guió en forma de deu xifres.

Com es mostra el sexe?

El novè dígiter és impar per als homes i fins i tot per a les dones.

L'eina accepta 12 dígits?

Sí, accepta YYYYMMDD-NNNN i mostra la forma de dotze xifres per a cada nombre vàlid.

Els números s'han enviat a algun lloc?

No, el control funciona només en el teu dispositiu.

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