Personnummer i Sverige

Validate and Generate a Swedish National Identification Number Easily and Quickly


This is a Personnummer i Sverige validation tool, you can enter the appropriate value to get the verification results, for the convenience of use, the tool provides a generator, you can use the generator to test the results.

What is Personnummer i Sverige?

The Personnummer i Sverige composed of 10 digits and a hyphen. The first 6 digits correspond to the person's birthdate, in YYMMDD format. They are followed by a hyphen, and four final digits. People over the age of 100 replace the hyphen with a plus sign. Among the four last digits, the first three are a serial number. The last digit of these three represents gender. An odd number is assigned to males and an even number to females. The last digit of SSN is the checksum which is calculated using Luhn algorithm.

SSN Generation and Validation?

The SSN Generator is designed to developers in need of randomly generated data for testing cases. The SSN validation validates the numbers pattern for a given state area code. Therefore, if a SSN passes this tool validation, it doesn't mean that it really exists, only that it's code, for the given pattern, is possible. This is the same validation that guarantees the basic authentication, of generated ssn's, for forms under development, as they merely checks for a possible pattern. Generated SSN's aren't real, and shouldn't be used on attempt of any illegal activity.

Who receives a personnummer

A personal identity number is assigned by the Swedish Tax Agency (Skatteverket) on registration in the population register. That covers anyone born in Sweden, and anyone moving there who intends to stay for at least one year.

The number follows a person for life. It does not change on marriage, on a change of name, or on moving abroad.

Samordningsnummer: the shorter-stay alternative

People who deal with Swedish authorities but do not qualify for population registration — shorter assignments, some students, certain cross-border workers — may instead receive a samordningsnummer, a coordination number.

It looks almost identical, with one deliberate difference: 60 is added to the day of birth. Someone born on the 15th gets 75 in that position. Since no month has a 75th day, the two kinds of number can never be confused, and the coordination number stays visibly distinct while remaining the same length and passing the same checksum.

This is worth knowing if you are writing validation code. A day-of-month check that only accepts 01–31 will reject every coordination number it sees.

A number that used to say where you were born

Until 1990, part of the birth number encoded the county of registration. That practice ended, so the geographic information is only present in numbers issued before then — another reason not to infer anything from the digits beyond date and sex.

Why it appears everywhere

Sweden uses the personnummer as a shared key across public services, healthcare, banking and employment, which makes administration unusually seamless. The trade-off is concentration: a single identifier opening many doors is a single identifier worth protecting. Treat it as sensitive even though parts of it are formally public.

Related Swedish personnummer tools