Validatore e decodificatore di numeri personali svedesi (Luhn Check)

Inserire il numero di persona o samordningsnummer svedese per controllare la cifra Luhn e leggere data di nascita, età, sesso e formato standardizzato a 12 cifre.

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

…

Come si usa

  1. 1
    Incolla i numeri

    Un numero di persona o samordningsnummer per riga.

  2. 2
    Leggi gli assegni .

    Ogni riga mostra valida o non valida con il motivo.

  3. 3
    Guarda i dettagli.

    Vedi tipo, data di nascita, sesso, età e formula a dodici cifre.

  4. 4
    Correggere gli errori

    Utilizzare la cifra di controllo prevista per i numeri che non funzionano.

  5. 5
    Esportazione

    Scarica i risultati in CSV.

Informazioni su questo strumento

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.

Esempio svolto

811228-9874 è valida: nato il 28 dicembre 1981, nono numero 7 quindi maschile, e 19811228-9874 nella forma a dodici cifre.

In breve

Domande frequenti

Come si calcola la cifra di controllo del numero di persona?

Con l'algoritmo Luhn sulle prime nove cifre, lo stesso metodo usato per le carte bancarie.

Che cos'è un samordningsnummer?

Numero di coordinamento per le persone non registrate in Svezia; il giorno della nascita è 60 più.

Cosa significa un segno più?

Che la persona ha compiuto 100 anni; sostituisce il trattino nella forma a dieci cifre.

Come si mostra il sesso?

La nona cifra è strana per gli uomini e anche per le donne.

Lo strumento accetta 12 cifre?

Si, accetta YYYYMMDD-NNNN e mostra la forma a dodici cifre per ogni numero valido.

I numeri sono stati inviati da qualche parte?

No, il controllo funziona solo sul tuo dispositivo.

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