Social Insurance Number Switzerland

Validate and Generate a Swiss National Identification Number (AHV/AVS) Easily and Quickly


This is an Social Insurance Number Switzerland 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.

756.7538.5284.04
✕ Invalid Swiss SSN

What is Social Insurance Number Switzerland?

On July 1, 2008 the old grey AHV card with an 11-digit number was replaced by a new standard credit card sized document containing 13 digits. The new number is generated randomly and is completely anonymous, thereby fulfilling current data protection requirements. Insured persons retain the same number throughout their lives and no longer need to replace it in the event of a name change due to marriage or divorce. If you still have an 11-digit AHV number, you can request for a new 13-digit AHV number through your employer who happens to be the one responsible for ordering the card.

Social Insurance Number Switzerland Generation and Validation?

The AHV Number 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.

How Switzerland's number compares

Most countries issue some national identifier, but the design choices differ, and Switzerland's is a deliberate outlier in one respect: it encodes nothing.

  • Sweden's personnummer begins with the holder's date of birth and encodes gender.
  • Italy's codice fiscale is derived from name, birth date, gender and birthplace — it can largely be reconstructed from public facts.
  • Switzerland's AHV number is random after the fixed 756 prefix. Nothing about the holder can be read out of it, and nothing about it can be calculated from personal details.

The trade-off is that a Swiss number cannot be sanity-checked against a person's details the way a codice fiscale can. Structural validation is all that is possible offline — format and check digit, nothing more.

What it is not

The AHV number is a social insurance identifier, not a general-purpose national ID. It is not a passport number, not an identity card number, and not a residence permit number. It does not by itself establish nationality or right of residence, and it is issued to people who work or reside in Switzerland regardless of citizenship.

Why the 2008 change mattered

The 11-digit predecessor encoded personal details, which caused two problems: it leaked information wherever it was quoted, and it had to be reissued when someone's circumstances changed. The 13-digit replacement fixed both at once — a lifelong identifier that reveals nothing.

Related Swiss AHV/AVS tools