Switzerland AHV Validator

Check the EAN-13 check digit of a Swiss AHV / AVS number instantly.

Ad placeholder (leaderboard)
Enjoying the tools? Go Pro for £4.99 (one-time) and remove all ads — forever, on this device. Remove ads — £4.99

The Swiss AHV number (AVS in French and Italian) is the country’s social-security identifier. Since 2008 it is 13 digits beginning with 756 and ending with an EAN-13 check digit. This validator confirms both the country prefix and the check digit so you can catch a mistyped number.

How it works

Because the modern AHV number is randomly assigned and carries no birth date or gender, only two parts are machine-checkable:

  1. Prefix. The first three digits must be 756, the ISO numeric code for Switzerland.
  2. EAN-13 check digit. Over the first 12 digits, each digit is weighted alternately by 1 and 3, the weighted values are summed, and the check digit is (10 − total mod 10) mod 10. It must equal the 13th digit.

Example

For 756.1234.5678.97, take the 12 leading digits 756123456789:

  • Weighting alternately by 1 and 3 and summing gives a total whose last digit determines the check.
  • The validator computes the expected 13th digit and compares it with the 7 you entered, reporting valid or showing the expected digit on mismatch.
PartExampleRule
Prefix756Must be Switzerland’s code
Body1234.5678.9First 12 digits overall
CheckCEAN-13 over the 12

It runs entirely in your browser, so the number you type is never uploaded. A structurally valid AHV number is not guaranteed to be one that has actually been issued.

Ad placeholder (rectangle)