Validador y decodificador de número personal sueco (Luhn Check)
Para comprobar el número de Luhn, se pega personnummer o samordningsnummer sueco y se lee la fecha de nacimiento, edad, sexo y el formato normalizado de 12 dígitos.
Se ejecuta en tu navegador. Tus archivos nunca salen de tu dispositivo. Cómo comprobarlo
…
Cómo hacerlo
- 1Pegar los números
Un número de persona o número de orden por línea.
- 2Lee los cheques
Cada línea muestra válida o no con el motivo.
- 3Mira los detalles
Véase el tipo, la fecha de nacimiento, el sexo, la edad y el formulario de doce dígitos.
- 4Corrige los errores
Utilice el dígito de verificación esperado para los números que fallan.
- 5Exportación
Descarga los resultados como CSV.
Sobre esta herramienta
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.
Ejemplo práctico
811228-9874 es válido: nacido el 28 de diciembre de 1981, noveno dígito 7 así hombre, y 19811228-9874 en la forma de doce dígitos.
Datos rápidos
- Categoría: Legal y administración
- Funciona en tu navegador, sin registro y sin subir nada.
- Lo que introduces se queda en tu dispositivo.
- Disponible en inglés.
- Contenido revisado por última vez:
- Fuente oficial: Skatteverket, structure of the personal identity number and coordination number (SKV 704 and SKV 707)
Preguntas frecuentes
¿Cómo se calcula el dígito de verificación del número de persona?
Con el algoritmo de Luhn sobre los primeros nueve dígitos, el mismo método utilizado para las tarjetas bancarias.
¿Qué es un número de orden?
Número de coordinación para personas no registradas en Suecia; el día del nacimiento tiene 60 añadidos.
¿Qué significa un signo más?
Que la persona ha cumplido 100 años; reemplaza el guión en la forma de diez dígitos.
¿Cómo se muestra el sexo?
El noveno dígito es impar para los hombres e incluso para las mujeres.
¿La herramienta acepta 12 dígitos?
Yes. It accepts YYYYMMDD-NNNN and shows the twelve-digit form for every valid number.
¿Se han enviado los números a algún lado?
No, el cheque se ejecuta solo en tu dispositivo.
