Επαλήθευση και αποκωδικοποίηση προσωπικού αριθμού της Σουηδίας (Luhn Check)

Για να ελέγξετε το ψηφίο Luhn, προσθέστε τον σουηδικό αριθμό προσωπικού ή του samordningsnummer και διαβάστε την ημερομηνία γέννησης, την ηλικία, το φύλο και τη τυποποιημένη μορφή 12 ψηφίων.

Εκτελείται στο πρόγραμμα περιήγησής σας. Τα αρχεία σας δεν φεύγουν ποτέ από τη συσκευή. Δείτε πώς να το ελέγξετε

…

Πώς γίνεται

  1. 1
    Προσάρμοσε τους αριθμούς

    Ένας αριθμός ατόμου ή αριθμός samordningsnummer ανά γραμμή.

  2. 2
    Διάβασε τις επιταγές.

    Κάθε γραμμή δείχνει έγκυρη ή άκυρη με το λόγο.

  3. 3
    Κοίτα τις λεπτομέρειες.

    Βλέπε τύπο, ημερομηνία γέννησης, φύλο, ηλικία και δώδεκα ψηφίων.

  4. 4
    Επεξεργασία σφαλμάτων

    Χρησιμοποιήστε το αναμενόμενο ψηφίο ελέγχου για αριθμούς που αποτυγχάνουν.

  5. 5
    Εξαγωγή

    Κατεβάστε τα αποτελέσματα ως CSV.

Σχετικά με αυτό το εργαλείο

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.

Λυμένο παράδειγμα

811228-9874 ισχύει: γεννήθηκε στις 28 Δεκεμβρίου 1981, το ένατο ψηφίο 7 ως άνδρας και 19811228-9874 στην δώδεκαψήφια μορφή.

Με μια ματιά

Συχνές ερωτήσεις

Πώς υπολογίζεται το ψηφίο ελέγχου του αριθμού ατόμου;

Με τον αλγόριθμο του Λουχν πάνω από τα πρώτα εννέα ψηφία, η ίδια μέθοδος που χρησιμοποιείται για τις τραπεζικές κάρτες.

Τι είναι ο αριθμός συνταξιοδότησης;

Αριθμός συντονισμού για άτομα που δεν είναι εγγεγραμμένα στη Σουηδία, με την ημερομηνία γέννησης να έχει 60 προστιθέμενα.

Τι σημαίνει το σύμβολο συν;

Ότι το άτομο έχει συμπληρώσει τα 100; αντικαθιστά την παύση στη μορφή των δέκα ψηφίων.

Πώς δείχνει το σεξ;

Το ένατο ψηφίο είναι περίεργο για τους άνδρες και ακόμη και για τις γυναίκες.

Το εργαλείο δέχεται 12 ψηφία;

Δέχεται YYYYMMDD-NNNN και εμφανίζει τη μορφή δώδεκα ψηφίων για κάθε έγκυρο αριθμό.

Τα τηλέφωνα έχουν σταλεί κάπου;

Ο έλεγχος τρέχει μόνο στην συσκευή σου.

Εντελώς δωρεάνΧωρίς χρέωση, χωρίς εγγραφή
Τα αρχεία μένουν ιδιωτικάΌλα εκτελούνται στο πρόγραμμα περιήγησής σας
Εύκολο στη γλώσσα σαςΔιαθέσιμο σε πολλές γλώσσες