Pemvalidasi dan Pengdekod Nombor Peribadi Sweden (Luhn Check)
Letakkan personnummer atau samordningsnummer Sweden untuk memeriksa digit Luhn dan baca tarikh lahir, umur, jantina dan format 12 digit yang standard.
Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya
…
Cara melakukannya
- 1Letakkan nombor
Satu nombor orang atau samordningsnummer setiap baris.
- 2Baca cek.
Setiap baris menunjukkan sah atau tidak sah dengan sebab.
- 3Lihatlah perinciannya.
Lihat jenis, tarikh lahir, jantina, umur dan bentuk dua belas digit.
- 4Membetulkan kesilapan
Gunakan digit pemeriksaan yang dijangkakan untuk nombor yang gagal.
- 5Pengeksportan
Muat turun hasil sebagai CSV.
Tentang alat ini
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.
Contoh berselesaian
811228-9874 adalah sah: lahir 28 Disember 1981, digit kesembilan 7 jadi lelaki, dan 19811228-9874 dalam bentuk dua belas digit.
Ringkasnya
- Kategori: Undang-undang & kerajaan
- Berjalan dalam pelayar, tanpa pendaftaran, tanpa muat naik.
- Maklumat yang anda masukkan kekal pada peranti anda.
- Tersedia dalam bahasa Inggeris.
- Kandungan disemak kali terakhir:
- Sumber rasmi: Skatteverket, structure of the personal identity number and coordination number (SKV 704 and SKV 707)
Soalan lazim
Bagaimana digit pemeriksaan nombor orang dikira?
Dengan algoritma Luhn di atas sembilan digit pertama, kaedah yang sama digunakan untuk kad bank.
Apakah nombor samordningsnummer?
Nombor penyelarasan bagi orang yang tidak didaftarkan di Sweden; hari lahir ditambah 60.
Apa maksud tanda tambah?
Orang itu telah berusia 100 tahun; ia menggantikan garis dalam bentuk sepuluh digit.
Bagaimana seks ditunjukkan?
Angka kesembilan adalah ganjil untuk lelaki dan juga wanita.
Adakah alat ini menerima 12 digit?
Yes. It accepts YYYYMMDD-NNNN and shows the twelve-digit form for every valid number.
Adakah nombor dihantar ke mana-mana?
Tidak, cek itu hanya berjalan pada peranti awak.
