Schweiz AHV Rechner
Validate and Generate an Schweiz AHV Number - Easily and Quickly
This is an Schweiz AHV Number Rechner 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 Schweiz AHV Number Rechner?
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.
Schweiz AHV Number Rechner Generation and Validation?
The Schweiz AHV Number Rechner 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 the check digit is calculated
The last digit of an AHV number is not arbitrary — it is derived from the twelve before it using the EAN-13 scheme, the same checksum used on retail barcodes. This is what makes local validation possible without contacting any registry.
The calculation, step by step
Take the first twelve digits and work left to right:
- Multiply the digits in odd positions (1st, 3rd, 5th …) by 1.
- Multiply the digits in even positions (2nd, 4th, 6th …) by 3.
- Add all twelve results together.
- The check digit is whatever must be added to reach the next multiple of ten.
A worked example
Take 756.7538.5284.04. The first twelve digits are 7 5 6 7 5 3 8 5 2 8 4 0.
- Odd positions — 7, 6, 5, 8, 2, 4 — sum to 32.
- Even positions — 5, 7, 3, 5, 8, 0 — sum to 28, tripled gives 84.
- Total: 32 + 84 = 116.
- The next multiple of ten is 120, so the check digit is 4 — which matches the number above.
What a passing checksum proves
Only that the number is internally consistent. The checksum catches typos and transpositions, which is exactly what it was designed for — but it says nothing about whether the number was ever issued to anyone. Roughly one in ten random thirteen-digit strings beginning with 756 will pass by chance.
Treat validation as a formatting check on input, not as verification of identity.